What you will learn
- Name the services that Choreo Cloud adds around Agent Manager, and the on-prem counterpart of each
- Say when a new organisation gets its AI gateway by itself, and when it does not
- Say how a call from AMS reaches OpenChoreo on Choreo Cloud, and what platform-api adds on the way
- Say what happens to usage and to a suspended organisation, and where
- Find the lesson that goes deeper on each new part
Before you start
- On-prem versus Choreo Cloud in one table Not started In progress Done
- Organisation, project, agent and environment Not started In progress Done
- Choreo Cloud from the ground up Not started In progress Done
On this page
Lesson L0.2.1 gave you a table of the differences between on-prem and Choreo Cloud (SaaS)The hosted Agent Manager that Choreo Labs runs for customers. People sign up and use it instead of installing it.See it in the glossary, and lesson L12.0.1 showed how the cloud itself is built. This is step two: Agent Manager on that cloud. You will see what is new around it, what happens when a customer signs up, how a call travels, and which of these things depend on the environment.
A map of what is new
Choreo Cloud wraps the open source Agent Manager service in a small Choreo Labs-only program, the agent-platform shellThe Choreo Cloud program that imports the open source Agent Manager service and adds the parts only the hosted product needs, such as billing checks.See it in the glossary. It imports the service as a library and plugs in cloud parts. Around it sit services that an on-prem install does not have. Most run on cloud-cp as OpenChoreo components.
| New part | Its job | On-prem counterpart | Goes deeper |
|---|---|---|---|
| Platform IdPChoreo Cloud's sign-in service, a private build of ThunderID. It plays the role that the platform ThunderID plays in an on-prem install.See it in the glossary | Signs people in to the Choreo Cloud consoles and issues tokens that carry the organisation. A private ThunderID build. | The platform ThunderID | L12.2.1 |
| Identity PlatformA Choreo Cloud product that gives each organisation its own ThunderID. Its control plane runs on cloud-cp, and a data plane half runs for each organisation and environment.See it in the glossary | Gives each organisation and environment its own ThunderID, built and managed by a control plane. | The ThunderID of each environment, which you install with a script | L12.2.4, L12.2.5 |
| platform-api (PAS)The Choreo Cloud service that sits between Agent Manager and OpenChoreo. It works out each caller's organisation and forwards the call to the right place.See it in the glossary | Receives calls from Agent Manager, works out the organisation and forwards them to OpenChoreo. | None. AMS calls OpenChoreo directly | L12.2.1, L12.2.2 |
| API Platform (gateway software)The software behind the Agent Manager AI gateway: controller and runtime images, the gateway-operator and the APIGateway resource. The gateway dials Agent Manager, never the reverse.See it in the glossary and the Internal gatewayAn API Platform gateway on cloud-cp for calls between Choreo Cloud services. Agent Manager reaches platform-api through it, and the orchestrator calls the provisioners through it.See it in the glossary | The software of every AI gateway, and the gateways on cloud-cp that carry service to service calls. | The same gateway software, installed by a chart | L12.2.1 |
| OrchestratorChoreo Cloud's recipe engine. A recipe is a checklist of setup steps, and a step reuses its instance if one already exists.See it in the glossary | Runs a RecipeA checklist of setup steps that the orchestrator runs for an organisation and environment. Each step reuses what already exists, so running a recipe twice does no harm.See it in the glossary, a checklist of setup steps. | None. The add-environment script does the work | L12.2.3 |
| ProvisionerA Choreo Cloud service that sets up Agent Manager for an organisation. It creates the AI gateway for each environment and registers it with AMS.See it in the glossary | Builds Agent Manager’s parts for an organisation, including the AI gateway, and registers the gateway with AMS. | The gateway bootstrap job | L12.2.3 |
| identity-platform-provisioner | Builds the identity data plane of an organisation environment. | The environment ThunderID install script | L12.2.4 |
| secret-manager-api | Keeps gateway tokens and keys in the secret store. | The secrets path of lesson L4.3.4 | L12.2.2 |
| Billing service, metering job, NATS | Hold plans, report usage and carry events. | None | later in this lesson |
| cloud-obs-proxyA Choreo Cloud service in front of OpenChoreo's observer. It sets a query's namespace to the caller's organisation. Trusted machine clients can name the organisation in a header.See it in the glossary | Pins a telemetry query to the caller’s own organisation. | None. The Agent Manager observer asks OpenChoreo’s observer directly | L12.2.2 |
A new organisation starts
This is the path on the four environments where the orchestrated gateway is switched on: dev, stage-v2, prod-v2 and prod-v2-eu.
The organisation is created
When someone signs up, the Platform IdP tells platform-api that a new organisation exists. Platform-api sets up the organisation’s own space, with a name worked out from the organisation’s id. The same id gives the same name each time. On these environments platform-api can hand this work to the orchestrator.
The first visit starts the subscription
When someone opens Agent Manager for the first time, billing activates the subscription for Agent Manager and announces it on the message bus.
The provisioner picks up the notice
The provisioner listens for Agent Manager’s notices only. It asks the orchestrator to run the agent-manager recipe. The order carries a unique key, so a repeat does not start the work twice.
The gateway is built and connects back
The provisioner tells AMS where the identity platform is and which gateway exists, then has OpenChoreo deploy the gateway on the data plane. When the gateway is built, it phones home to AMS and keeps the connection open. The gateway opens that connection, not AMS.
So “it happens by itself the first time an organisation opens Agent Manager” is true here, and only here.
On stage and prod it is different
On stage and prod, the first generation, there is no provisioner in the pinned manifests, so nothing waits for a first visit. Instead, when platform-api provisions an organisation or an environment, its own gateway hook applies the gateway objects. It registers the gateway in Agent Manager, mints its token and keeps it in a secret, and also pushes the identity settings. The call that registers the gateway and mints its token has a 10 second timeout. When the orchestrated flag is on, platform-api stands down and does none of this.
| Question | dev, stage-v2, prod-v2, prod-v2-eu | stage, prod |
|---|---|---|
| Who makes the Agent Manager gateway? | The orchestrator and the provisioner | The platform-api gateway hook |
| Is first sign-in provisioning on? | Yes | No, there is no provisioner |
| Does the orchestrator create environments? | Yes | No |
Lesson L12.2.3 follows both paths step by step.
On-prem, you set up the gateway yourself with a script. On Choreo Cloud, Choreo Labs’ services do it, by one of these two paths.
A call travels through platform-api
On-prem, AMS calls OpenChoreo as its own service account. On Choreo Cloud, AMS does not call an OpenChoreo API directly. It calls the internal gateway, which routes to platform-api, and platform-api calls OpenChoreo.
AMS calls platform-api with the caller's own token
The request carries the user’s token. Background jobs can use a service token instead, which platform-api limits to certain request types.
Platform-api finds the organisation's space
It reads the organisation from the token and turns it into a namespace name. The caller does not get to name the space.
Platform-api runs its hooks
One hook checks the request against the organisation’s plan. If you are over your quota you get a “payment required” answer, and if billing cannot be reached the request is stopped to be safe.
Platform-api swaps the token and forwards
It swaps your token for its own system token and sends the request into the organisation’s space in OpenChoreo. The system token stays inside platform-api.
On-prem there is one OpenChoreo namespace for everyone. Here there is one for each organisation.
Usage and suspension
When metering is switched on, a job counts once an hour what each organisation used: build time, evaluation time, the memory and CPU its agents reserved and trace spans. It reads these from Prometheus and posts them to billing. Each number carries a label for its hour, so sending the same hour twice is counted once. The job’s manifest defaults to zero replicas, so it does nothing until a variable switches it on.
When an organisation is suspended, for example for an unpaid plan, the platform announces it on the message bus. Whether Agent Manager reacts depends on the environment. The consumer that switches agents off is turned on only on dev, among the six branches read. There, Agent Manager switches the organisation’s agents off by changing each deployment’s state to undeployed. When the organisation is reactivated, it switches back only the ones that this suspension turned off. On the other five environments it is not switched on (stage and prod do not have the setting at all), so Agent Manager itself does not do this.
Where it runs and how change arrives
Choreo Labs’ own services run on cloud-cp. Customer work runs on four other clusters. Lesson L12.0.1 has the map.
New commits reach the dev environment automatically. Promotion to a later environment changes which commit that environment follows, and nothing is rebuilt. For stage and production environments nothing is changed directly: a CR (change request)A change request. In Choreo Cloud, stage and production environments are never changed directly: a CR is created and handed to the SRE team, who make the change.See it in the glossary (change request) is created and handed to the SRE team, who make the change. Two environments serve customers: prod-v2 for the USA and prod-v2-eu for the EU.
What to read next
| If you want to know | Read |
|---|---|
| What Agent Manager depends on, and the two platform-apis | L12.2.1 |
| Who talks to whom, and how each line is secured | L12.2.2 |
| How an environment and its gateway are created | L12.2.3 |
| How the identity data plane is created | L12.2.4 |
| How Agent Manager calls the Identity Platform | L12.2.5 |
Your turn
Open Try it. In the diagram, click platform-api and then the other Choreo Cloud services around it, and read what each one does. Then play flow F18a and find the step where the gateway connects to AMS. Who opened that connection? Play flow F37 and find the step that the orchestrated path does not have. Finish with the matcher. When you want to see how a fix reaches customers, step through the hotfix walkthrough.
Recap
- Choreo Cloud runs the same core service as on-prem, with extra services around it: Platform IdP, Identity Platform, platform-api, orchestrator, provisioners, billing, metering and cloud-obs-proxy.
- A new organisation gets its gateway by itself, from the first visit to Agent Manager, only on dev, stage-v2, prod-v2 and prod-v2-eu. On stage and prod, platform-api’s own hook makes the gateway.
- AMS reaches OpenChoreo through the internal gateway and platform-api, which finds the organisation, checks quotas and swaps the token.
- Suspension handling and metering depend on the environment’s settings. Dev changes agents on suspension, and metering needs a switch.
- Dev takes new commits automatically. For stage and production, a CR is handed to the SRE team, who make the change.
Wrap up
Recap
Tick each one when you could explain it to a colleague.
Finished?
Chapter complete. Every lesson in this chapter is done.
Progress cannot be saved in this browser, so it will be forgotten when you leave this page.
Quick check
Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)