Component ยท Shared or other
amctl CLI
BOTH Command line tool Other
What it is
amctl is a command line tool for Agent Manager written in Go. It signs you in, lets you create and deploy agents, lists projects and agents, shows build progress, fetches logs, metrics and traces, and can call the API directly.
Why it exists
Developers and scripts need to drive Agent Manager from a terminal and from automation, not only from a browser.
How it works
- Opens a browser for login and receives the result on a loopback address, 127.0.0.1 port 10325.
- Asks AMS which scopes it supports and requests them.
- Calls the AMS API and amp-observer with the resulting Bearer token.
- Stores its settings in ~/.amctl/config.
- amctl login --cloud signs in against Choreo Cloud instead of an on-prem install.
Identity and access
OIDC authorization code with PKCE using the browser-type client amctl at the platform ThunderID (the Platform IdP on Choreo Cloud). It then sends the access token as a Bearer header.
Key facts
- Language
- Go (cobra)
- Login callback
- 127.0.0.1:10325
- Runs on
- The user's machine
- Side
- Client tool
- Namespace
- local
Talks to (3)
- signs in with Platform ThunderID 1.0.0 CLI loginOIDC auth code + PKCE (loopback 127.0.0.1:10325)
- calls agent-manager-service (AMS) CLI API callsHTTP /api/v1
- calls amp-observer (agent-manager-observer) logs, metrics, tracesHTTP :9098