Skip to main content

amctl CLI

amctl is the command-line interface for Choreo Agent Control Plane. It signs in to Choreo Cloud in the browser and acts with your own permissions in your organization, so every command is limited to what your role allows.

Installation​

amctl is published on the amctl releases page as one archive per platform. Download the archive for your platform from the latest release.

PlatformArchive
macOS (Apple silicon)amctl_v<version>_darwin_arm64.tar.gz
macOS (Intel)amctl_v<version>_darwin_amd64.tar.gz
Linux (x86-64)amctl_v<version>_linux_amd64.tar.gz
Linux (ARM64)amctl_v<version>_linux_arm64.tar.gz
Windows (x64)amctl_v<version>_windows_amd64.zip

Each release also has a checksums.txt file with the SHA-256 checksum of every archive.

macOS and Linux​

Set VERSION to the latest release version and PLATFORM to your platform from the table, then download, extract, and install the binary:

VERSION=<version>
PLATFORM=darwin_arm64
curl -fsSLO "https://github.com/wso2/agent-manager/releases/download/amctl/v${VERSION}/amctl_v${VERSION}_${PLATFORM}.tar.gz"
tar -xzf "amctl_v${VERSION}_${PLATFORM}.tar.gz" amctl
sudo mv amctl /usr/local/bin/

Windows​

$Version = "<version>"
Invoke-WebRequest -Uri "https://github.com/wso2/agent-manager/releases/download/amctl/v$Version/amctl_v${Version}_windows_amd64.zip" -OutFile amctl.zip
Expand-Archive amctl.zip -DestinationPath $env:USERPROFILE\amctl
$env:Path += ";$env:USERPROFILE\amctl"

To keep amctl on the PATH in new terminals, add %USERPROFILE%\amctl under System Properties > Environment Variables.

Verify the Installation​

amctl version

Sign In​

Run amctl login to sign in:

amctl login

The first sign-in asks which region your organization is in:

Which WSO2 Cloud region do you want to log in to?
1) United States (--region us)
2) Europe (--region eu)
Choose 1-2 [1]:
Region--region valueAgent Control Plane API
USushttps://prod-v2-wso2cloud.gateway.cloud.choreolabs.com/agent-manager-service-agent-manager-api
EUeuhttps://prod-v2-eu-wso2cloud.gateway.eu.cloud.choreolabs.com/agent-manager-service-agent-manager-api

Press Enter at the next prompt to open the Choreo Cloud sign-in page in your browser. After you sign in, the browser returns to amctl on http://127.0.0.1:10325/callback. If amctl cannot open a browser, for example over SSH, it prints the sign-in URL to open on another machine.

amctl saves the session as the cloud context in ~/.amctl/config. When your account belongs to a single organization, that organization becomes the active one. When it belongs to several, select one with amctl context org use <org> or pass --org on each command.

Sign In Again​

amctl login with no flags signs in again to the current context and keeps its region, so the region prompt appears only on the first sign-in. To move to the other region, pass --region:

amctl login --region eu

--region also skips the prompt on the first sign-in, for use in scripts. When there is no terminal to prompt on, or --json is set, and --region is not passed, amctl signs in to the US region.

amctl login Options​

NameTypeDefaultDescription
--regionstring(none)Region to sign in to: us or eu. Implies --cloud.
--cloudboolfalseSign in to Choreo Cloud as the cloud context, even when another context is current. Keeps the stored region.
--client-idstring(none)OAuth client ID. The browser sign-in uses amctl when it is not set.
--client-secretstring(none)OAuth client secret. When set, amctl uses the client credentials grant instead of the browser sign-in. Requires --client-id.

Contexts and Organizations​

A context is a saved sign-in. The cloud context holds your Choreo Cloud session, and every command runs against the current context and its active organization.

CommandDescription
amctl context showShow the current context, organization, and linked project.
amctl context org listList the organizations your account belongs to.
amctl context org use <org>Set the active organization.
amctl context instance listList the saved contexts.
amctl context instance use <name>Switch to a saved context without signing in again.
amctl context instance remove <name>Remove a saved context. Asks you to type the name to confirm; pass --yes to skip the prompt, which is required when there is no terminal.
amctl context linkLink the current directory to an organization, a project (--project), and optionally an agent (--agent). Commands run from the directory or its subdirectories use the link. Linked directories always use the default environment.
amctl context unlinkRemove the link for the current directory.

Switching to another context clears every directory link, because links do not record which context they belong to.

Commands​

CommandDescription
amctl loginSign in to Choreo Cloud.
amctl contextView and manage contexts, organizations, and directory links.
amctl projectCreate, list, get, and delete projects.
amctl agentCreate, build, deploy, and delete agents; manage their LLM and MCP Proxy configurations and A2A agent cards; and fetch their status, logs, metrics, and traces.
amctl llm-providerCreate, list, and delete LLM Service Providers.
amctl gatewayList and inspect gateways.
amctl apiMake an authenticated request to the Agent Control Plane API.
amctl skillsInstall, list, and remove AI assistant skills.
amctl versionPrint the amctl version.
amctl completionGenerate a shell autocompletion script.

Run amctl <command> --help for the subcommands and flags of each command.

Global Flags​

These flags apply to every command:

FlagDescription
--org <org>Run the command in this organization instead of the active one.
--jsonWrite a JSON envelope to stdout instead of text. Errors are written to stdout too.
-h, --helpShow help for the command.
-v, --versionPrint the amctl version.

JSON Output​

With --json, every command writes one envelope. A successful command returns the scope it ran in and its result in data:

{
"instance": "cloud",
"org": "acme",
"project": "support",
"data": {}
}

A failed command returns error in place of data, with status, code, and message fields. The org, project, environment, and agent fields appear only when the command used them.

Was this page helpful?