Skip to main content
Version: 1.0-beta

Manage agents

Once your agent leaves your machine, you need a control plane to organize it into projects and environments, move it through its lifecycle, govern what it can access, and watch how it behaves. You manage agents built in WSO2 Agent Builder with WSO2 Agent Manager.

How you register the agent decides what Agent Manager manages

Every agent in Agent Manager is either platform-hosted or externally hosted. You choose the type when you create the agent, and you can't change it later.

  • Platform-hosted: Agent Manager builds the agent from its source repository, deploys it, and promotes it across environments for you.
  • Externally hosted: The agent runs on infrastructure you manage. Agent Manager doesn't build or deploy it, but it still governs and observes it.

Manage with WSO2 Agent Manager​

WSO2 Agent Manager is an open control plane for deploying, managing, and governing AI agents at scale. Platform-hosted agents run on Kubernetes, built on OpenChoreo. Agent Manager is available as a managed cloud service and as a self-hosted installation.

This is what you use when you:

  • Build, deploy, and promote agents through a deployment pipeline of environments, such as development, staging, and production.
  • Configure environment variables, secrets, endpoint security, and timeouts for each agent.
  • Route model calls through registered LLM service providers and give agents governed access to tools through MCP proxies.
  • Enforce guardrails and policies, and control who can deploy to production with role-based access control.
  • Capture traces, metrics, and logs with OpenTelemetry-based auto-instrumentation.
  • Evaluate agent behavior continuously for accuracy, safety, reasoning, and tool usage.

Platform-hosted and externally hosted agents​

CapabilityPlatform-hostedExternally hosted
Build and deployHandled by Agent ManagerHandled by you
Promote and suspendSupportedNot supported
ConfigurationInjected into the running agent automaticallyYou apply the connection details Agent Manager provides
ObservabilityAuto-instrumentationRequires you to instrument the agent
LLM providers, MCP proxies, guardrails, access control, and evaluationSupportedSupported

For details, see Internal and external agents.

Deploy an agent from WSO2 Agent Builder​

Agents built in WSO2 Agent Builder are Ballerina projects, so Agent Manager can build and host them with its Ballerina buildpack.

  1. Push your agent project to a Git repository.
  2. In your Agent Manager project, go to Agents and click Add Agent.
  3. Select Platform-Hosted Agent, and then select Source Code.
  4. Enter the repository URL, branch, and the path to your agent project.
  5. Select Ballerina as the build type, and keep auto-instrumentation turned on.
  6. Add the values your agent reads from Config.toml as environment variables named BAL_CONFIG_VAR_<KEY>, where <KEY> is the configurable name in uppercase. Mark API keys and other credentials as secrets.
  7. Click Deploy.

Agent Manager deploys the agent to the first environment in the project's deployment pipeline. When the agent is ready, click Try It to test it, and use the Observability tab to review its traces and tool calls. For a complete walkthrough, see Deploy the Ballerina leave assistant sample.

Choose where Agent Manager runs​

What's next​