Skip to main content

amctl login

You're reading Agent Management 2026.11.0. The newest release is 1.0.0, and Cloud has the newest features. Go to the newest release

Authenticate against an Agent Manager instance.

Synopsis​

Log in to an Agent Manager instance. By default, the command opens a browser to complete an OAuth Authorization Code flow against the instance's identity provider. Pass --client-id and --client-secret to use the OAuth client-credentials grant instead — suitable for CI.

On a fresh local install, sign in with the default credentials:

FieldValue
Usernameadmin
Passwordadmin

The resulting session is stored in ~/.amctl/config.yaml. If only one organization is available, it is auto-selected as the current org. Otherwise, set one with amctl context org use <name> or pass --org per command.

amctl login [flags]

Examples​

# Interactive browser login against a local install
amctl login --url http://api.amp.localhost:8080

# Name the instance so it can be switched to later
amctl login --url https://amp.dev.example.com --name dev

# Non-interactive (CI) using client credentials
amctl login \
--url https://amp.example.com \
--client-id ci-bot \
--client-secret $AMCTL_CLIENT_SECRET

Options​

NameTypeDefaultDescription
--urlstringrequiredAgent Manager instance URL (for example http://api.amp.localhost:8080).
--namestringdefaultLocal name for the instance. Use to distinguish multiple instances.
--client-idstringamctlOAuth client ID. Defaults to amctl for the interactive browser flow.
--client-secretstring(none)OAuth client secret. When set, uses the client-credentials grant instead of the browser flow.
--auth-serverstring(auto-discovered)Authorization server base URL. Skips OAuth metadata discovery.

Options inherited from parent commands​

NameDescription
--orgOverride the active organization.
--jsonOutput as JSON envelopes.

See Also​

Was this page helpful?