Skip to main content

Sharing Agents

Xagent supports two distinct ways to expose an agent beyond its owner:
  • Published agents for authenticated internal users
  • Share links for public or guest access
These solve different problems and can be used together. Publishing makes an agent visible as a reusable asset inside your Xagent environment. Share links create a public guest entry point for a published agent, with separate authentication and runtime handling.
CapabilityPublished agentShare link
Internal reuseYesNo
Guest accessNoYes
Appears in agents listYesNo
Public token-based entryNoYes
Share links are meant for agents that are already ready for outside use. In practice, you should:
  • Finalize instructions and prompts
  • Test suggested prompts
  • Review file handling behavior
  • Confirm the agent should be publicly reachable
Owners can manage share links through dedicated endpoints:
  • Get current share-link state
  • Enable or create a share link
  • Rotate the share token
  • Disable the share link
The token itself is owner-only state and should be treated like a secret URL.

What guests can do

Guest users entering through a share link can:
  • Authenticate through the share flow
  • Upload files through share-specific upload endpoints
  • Create chat tasks against the shared agent
  • Continue the conversation over the public chat runtime
This is separate from the normal owner JWT flow.

Suggested prompts matter more here

When an agent is shared publicly, suggested prompts become more important because:
  • Guests have less context
  • They may not know the agent’s boundaries
  • Good prompts reduce misuse and confusion

Safety considerations

Before enabling a share link, verify:
  • The agent does not expose sensitive internal knowledge by default
  • Tool access is appropriate for a public audience
  • Output style is suitable for unauthenticated or external users
  • File handling is acceptable for guest sessions