Flows
Follow a request step by step
Each flow answers one question. Open a flow, then play it hop by hop on the diagram.
Sign in and access
- F1
Console sign-in and first API call
A person signs in to the console through ThunderID, receives an access token, and calls to Agent Manager then carry that token.
- F2
Every Agent Manager request, the middleware chain
Each call to the Agent Manager API passes the same ordered checks before any business code runs: safety net, correlation id, token validation, org from the token, scope check, then the handler.
- F13
AgentID, from creation to a token the agent uses
When an agent is created, Agent Manager gives it an identity in each environment's identity provider, stores the secret safely, injects four environment variables into its pod, and the agent uses them to get tokens for MCP proxies. Secrets can be rotated without changing code.
- F16
OBO token exchange (on behalf of a user)
The planned way an agent acts for a signed-in user. The agent trades the caller's token for a new token that names both the user and the agent.
- F22
Create a role, give it permissions and assign it to people
Role changes made in the console are passed on to the platform ThunderID with a system token; Agent Manager does not save the role itself in these calls. Agent Manager judges each request by the scopes inside the caller's token.
- F20
Issue, rotate and revoke an agent API key
An API key lets a caller invoke an agent through the gateway. Agent Manager mints the key, keeps only a fingerprint of it, shows the key once, and broadcasts the fingerprint to the environment gateways, which load it into the policy engine.
Build and run an agent
- F24
Create a project and its deployment pipeline
A project groups agents and points at a deployment pipeline, the ordered list of environments agents move through. Agent Manager creates the project in OpenChoreo, then tries to bind the project to every environment of its pipeline (a failure there does not fail the request).
- F31
Save a git credential and list the branches of a repository
A private repository needs a saved access token. Agent Manager hands the token to OpenChoreo, which stores it in the workflow plane and its secret store and keeps a reference. Later, when the console lists branches or commits, Agent Manager reads the token back through that reference and calls GitHub with it.
- F4
Create an internal, platform-hosted agent
Creating an agent registers it as an OpenChoreo component, stores its settings and secrets, gives it a tracing token, wires in the gateway route and starts the first build. The call returns before the build finishes.
- F28
Publish an agent as a kind and create an agent from it
An agent kind is a reusable template made from a built agent. Publishing stores a version that points at the build's image and lists the settings the kind asks for. Creating an agent from a kind skips the build: it runs that image, with the settings checked and the release cut by Agent Manager.
- F5
Create an environment and its gateway
The console prepares a command that you run in a terminal. It creates the environment through Agent Manager, installs a dedicated sign-in service for it, then installs a gateway that registers itself and connects back.
- F6
Building an agent image
A build request becomes an OpenChoreo WorkflowRun, runs as an Argo workflow in the workflow plane, pushes an image to the registry, registers it as a Workload, and its progress and logs come back through AMS polling and the observer.
- F7
Deploying and promoting an agent across environments
A deploy pins one image and one environment's settings into a ReleaseBinding in the pipeline's first environment, OpenChoreo renders it in the data plane, and a promote copies the same release into the next environment with that environment's own credentials.
- F8
Invoking an agent through the gateways
A caller reaches an agent through the data plane gateway, which hands every request to the API Platform Gateway for policy checks before it reaches the agent's Service, after the gateway has received its route and key material from Agent Manager.
- F26
Change an agent's environment variables and file mounts
Saving the configuration page replaces the variables and files of one environment. Agent Manager keeps the variables it owns, writes secret values to the secret store, and updates the environment's release binding. OpenChoreo then renders and applies the changed binding.
- F25
Suspend, resume or undeploy an agent in one environment
One route flips the desired state of an agent's release binding in a single environment between Active and Undeploy. Agent Manager records the intent, checks the caller on two axes, updates the binding in OpenChoreo and drops the stored platform agent card when the state is Undeploy. OpenChoreo then removes the rendered agent from the data plane.
- F23
Publish an A2A agent on the gateway and fetch its agent card
Deploying an A2A agent only queues its gateway publication. A background worker waits until OpenChoreo reports the agent address, writes the Agent definition, and publishes it to the gateway. A second worker then fetches the agent card the gateway now serves.
- F21
Delete an agent and clean up after it
Agent Manager deletes the agent's own secrets, then deletes the OpenChoreo component, which the code calls the commit point. Only after that succeeds does it revoke the agent's model connections and keys, delete its identities and its own records, and tell gateways to drop its published entries.
AI gateway and tools
- F19
Set up an LLM provider and a proxy, and deploy them to a gateway
An admin saves an LLM provider (the real model endpoint and its key), puts a project proxy in front of it, and deploys each to a gateway. Agent Manager stores the definitions, writes a deployment record, and publishes an event the gateway picks up.
- F27
Attach a model configuration to an agent
Attaching a model configuration gives an agent a private proxy to a chosen LLM provider in each environment. Agent Manager creates the proxy, deploys it to the environment's gateway, mints a key for it, stores the key in the secret store and writes the address and key reference into the agent's environment variables.
- F30
How the guardrail and policy lists reach the console
The list of guardrail policies you can add to an LLM provider or proxy comes from the gateways. Each gateway pushes the manifest of its installed policies to Agent Manager after it connects, Agent Manager keeps the newest one, and the console reads the list from it.
- F29
Rotate and revoke a gateway token
A gateway proves who it is with a registration token. An administrator can add a second token and revoke the old one. Agent Manager keeps only a salted hash of each token, allows two active tokens at a time, and checks the token when the gateway connects.
- F9
Agent LLM call through the AI gateway, and its trace
An agent calls an LLM through the AI gateway with a proxy key, then the spans it produces travel through the gateway to the collector, into OpenSearch, and back to the console through the observer.
- F10
MCP proxy and tool scopes
An admin puts an MCP server behind a gateway proxy and defines scopes that map to its tools. The gateway then only lets an agent call a tool when the agent holds a token from its environment's identity provider that carries the right scope.
- F11
How the gateway registers with Agent Manager and receives its config
The gateway on the data side dials OUT to Agent Manager over a secure WebSocket using a one-time registration token. Agent Manager then pushes deployment events down that socket, through a Postgres-backed event hub, and the gateway fetches the full definition and applies it.
Monitoring and secrets
- F14
Monitors and evaluation, from creating a monitor to reading scores
A monitor is saved in Agent Manager, a one-minute scheduler turns each due monitor into a workflow run on the workflow plane, the evaluation job reads the agent's traces, scores them, posts the scores back, and the console reads them.
- F15
The secrets path, from Agent Manager to a pod environment variable
Agent Manager hands a secret value to OpenChoreo (directly on-prem, through secret-manager-api on SaaS), keeps only the secret's name for this path, and the pod receives the value through an ExternalSecret that copies it from the data plane's secret store (OpenBao on SaaS development, the cloud Vault on stage and production) into a Kubernetes Secret.
Choreo Cloud (SaaS)
- F18a
SaaS onboarding, from sign-up to a running AI gateway
A new organization is created in the Platform IdP, which publishes an event. The first time someone opens Agent Manager, billing activates the subscription and announces it, the provisioner asks the orchestrator to run the agent-manager recipe, and the provisioner builds the environment's AI gateway.
- F18b
SaaS control calls, metering and suspension
In the cloud product Agent Manager reaches OpenChoreo only through platform-api, which checks quotas on the way. Platform-api also calls Agent Manager with an org-scoped token, an hourly job reports usage to billing, and a suspension event stops an organization's agents.
- F32
A merged change reaches dev
Merging to main of a source repository starts an automatic build. The build writes the new image tag into the deployment repository, and dev, which follows main, rolls it out. No further approval step is described after the merge.
- F33
Promote a tested commit to stage and production through a CR
A promotion moves one pointer, not images. A release candidate run decides which commit may go. A CR (change request) is handed to the SRE team, who run the promotion workflow. A pull request that moves the environment's pin is reviewed and merged, and Flux applies it. Production follows stage.
- F34
A hotfix reaches stage and production
A developer builds the fix on top of the commit the environment runs, tags it, and the build system makes the images. A CR (change request) goes to the SRE team, who run the hotfix workflow. A pull request moves the environment's pin, QA and a Platform Engineer approve it, and Flux applies it. Stage comes first, and the fix is backported to main afterwards.
More flows
- F35
SaaS identity data plane creation for an organization environment
The orchestrator asks the identity-platform-provisioner to build a per-organization ThunderID data plane. The provisioner applies a ResourceType, a Resource and a binding through platform-api, registers the data plane on the Identity Platform control plane, and announces the result on NATS.
- F36
SaaS environment creation and the gateway, through the orchestrator recipes
When an environment is created, platform-api hands it to the orchestrator, which replays the organization recipes. The agent-manager recipe has three steps: base, thunder through the identity provisioner, and the agent-manager step, where the provisioner builds the environment gateway.
- F37
SaaS gateway creation on stage and prod: the older platform-api hook
On the first generation environments the Agent Manager gateway is not made by the orchestrator. The platform-api hook applies the gateway objects, registers the gateway in Agent Manager and mints its token.
- F38
Agent Manager calls the Identity Platform control plane (CP_MANAGED mode)
In CP_MANAGED mode Agent Manager creates and promotes agent identities through the Identity Platform control plane under /iam/v1, with a token of its own client. In LEGACY_DIRECT mode it uses the environment ThunderID instead.