Amp CLI reference - Subcommands
Amp commands and subcommands
Amp documents 88 subcommands, including amp, amp login and amp logout. These run as amp <command> from your shell. Each row gives the docs' description, accepted values and an example where one is documented.
Last verified 20 official pagesFull Amp reference
| Command | Description | Example |
|---|---|---|
amp | Starts the Amp CLI. Without arguments it runs in interactive mode; piped input becomes the first user message in interactive mode. Docs: amp | echo "commit all my changes" | amp |
amp login | Adds an account and makes it active for the current Amp server. Required before cloning private projects or plugins and skills repositories. Docs: amp login | -no example |
amp logout | Removes the active saved account, or a specific account when given an email or user ID. Does not sign out browser or native app sessions. [<email-or-user-id>] Docs: amp logout | -no example |
amp account list | Shows saved CLI accounts. Docs: amp account list | -no example |
amp account switch | Chooses the account used by future CLI commands. Already running CLI processes keep the account they started with. <email-or-user-id> Docs: amp account switch | -no example |
amp completions | Prints shell completion setup for commands, aliases, options, and argument choices. Completions work without signing in or a network connection. bash | zsh | fish | pwsh Docs: amp completions | source <(amp completions zsh) |
amp update | Manually checks for and installs updates. Amp also checks and installs new versions automatically in the background. Docs: amp update | amp update |
amp version | Shows which version of Amp is installed. Docs: amp version | amp version |
amp config edit | Opens your user settings file in $EDITOR. Add --workspace to edit workspace settings. Docs: amp config edit | -no example |
amp config keymap | Shows the full map of keyboard shortcuts and all available commands. Docs: amp config keymap | amp config keymap |
amp config vocabulary add | Adds a term that Amp mishears to your custom dictation vocabulary. <term> Docs: amp config vocabulary add | -no example |
amp config model-providers | Manages model routing connections (API keys, subscriptions, cloud platforms, routers) from the CLI, with the same operations as Model Routing settings. Docs: amp config model-providers | -no example |
amp config model-providers list | Lists model routing connections and their current priority. | amp config model-providers list |
amp config model-providers set-priority | Sets a connection's priority; 0 is tried first and other connections at or after that priority move down one place. <connection-id> <priority> Docs: amp config model-providers set-priority | amp config model-providers set-priority <connection-id> 0 |
amp config model-providers test | Verifies a connection's credential with the provider, like the Check Access button. <connection-id> Docs: amp config model-providers test | -no example |
amp config model-providers check-access | Runs one short inference for a model and reports which connection actually served it. --provider-model <provider/model> Docs: amp config model-providers check-access | -no example |
amp config model-providers activate | Activates an inactive connection so it is used during routing again. <connection-id> Docs: amp config model-providers activate | amp config model-providers activate <connection-id> |
amp config model-providers deactivate | Deactivates a connection so it is skipped during routing while keeping its settings. Asks for --yes before deactivating a subscription. <connection-id> Docs: amp config model-providers deactivate | amp config model-providers deactivate <connection-id> |
amp config model-providers edit-router | Edits a router or gateway connection, for example its model mapping. <connection-id> [--model-mapping <patterns>] [--clear-model-mapping] Docs: amp config model-providers edit-router | amp config model-providers edit-router <connection-id> --model-mapping "*/*,-openai/gpt-5.4" |
amp config model-providers edit-key | Edits an API key connection, for example its model mapping. <connection-id> [--model-mapping <patterns>] [--clear-model-mapping] Docs: amp config model-providers edit-key | amp config model-providers edit-key <connection-id> --model-mapping "anthropic/claude-opus-4-6" |
amp config model-providers show | Shows a connection, including nonblocking warnings about its model mapping. Docs: amp config model-providers show | -no example |
amp config model-providers add-chatgpt-subscription | Opens the Sign in with ChatGPT flow in your browser so OpenAI model usage can bill to your ChatGPT subscription. Docs: amp config model-providers add-chatgpt-subscription | -no example |
amp add-chatgpt-sub | Short form of | -no example |
amp threads continue | Attaches the CLI to an existing thread. Combined with -ox it sends one message to the thread's own orb without attaching; combined with --execute it continues the thread in execute mode. [T-...] Docs: amp threads continue | amp threads continue T-… -ox 'The deploy finished, verify the fix in production' |
amp threads share | Changes the sharing visibility of a thread. <thread> --visibility <private|workspace|group|unlisted> Docs: amp threads share | amp threads share T-… --visibility unlisted |
amp threads markdown | Exports a thread as Markdown. <thread> Docs: amp threads markdown | amp threads markdown T-… |
amp threads export | Exports a thread's full JSON (available to the thread's creator). <thread> Docs: amp threads export | amp threads export T-… |
amp threads label | Labels a thread from the CLI. Docs: amp threads label | -no example |
amp threads rename | Renames a thread from the CLI. Docs: amp threads rename | -no example |
amp threads archive | Archives a thread from the CLI. Docs: amp threads archive | -no example |
amp threads delete | Permanently deletes a thread from the CLI. Docs: amp threads delete | -no example |
amp threads list | Lists threads without opening the web app. Docs: amp threads list | -no example |
amp threads search | Searches threads without opening the web app. Docs: amp threads search | -no example |
amp sync | Mirrors an orb thread's changes into your local checkout while the agent keeps working remotely. <thread> (URL or ID) Docs: amp sync | amp sync <thread> |
amp clone | Clones a repository hosted by Amp: an Amp-hosted project or a personal or workspace plugins or skills repository. Sets up Amp as a Git credential helper in your global Git config. owner/project-name | project URL | user-plugins | user-skills | workspace-plugins | workspace-skills | owner/-/plugins | owner/-/skills [directory] Docs: amp clone | amp clone owner/project-name my-directory |
amp skill add | Installs a skill directly from a GitHub repository, Git URL, or local path. Pass --global to install it only on the current machine under ~/.config/agents/skills/. <source> [--global] Docs: amp skill add | -no example |
amp skill import | Manages shared skill imports into a skills repository. Docs: amp skill import | -no example |
amp skill update | Updates one imported skill from a checkout of its repository. Review, commit, and push the update to publish it. <name> Docs: amp skill update | amp skill update <name> |
amp skills list | Lists available skills; add --json for machine-readable output. Running it in another shell does not reload an existing session. [--json] Docs: amp skills list | -no example |
amp skills repositories | Lists the skills repositories available to you, their clone commands, and whether you can write to them. Docs: amp skills repositories | amp skills repositories |
amp plugins add | Installs a single-file plugin from a URL as a machine-local system plugin for all projects. Add --target workspace to install into the current project's .amp/plugins/ directory. <url> [--target workspace] [--auto-update] Docs: amp plugins add | amp plugins add <url> |
amp plugins list | Shows loaded plugins, their sources, registered events, commands, and tools. Docs: amp plugins list | -no example |
amp plugins repositories | Lists the plugin repositories available to you, their clone commands, and whether you can write to them. Docs: amp plugins repositories | amp plugins repositories |
amp plugins import | Manages shared plugin imports into a plugins repository. Docs: amp plugins import | -no example |
amp plugins update | Updates one imported plugin from a checkout of its repository. <name> Docs: amp plugins update | amp plugins update <name> |
amp plugins show-agent-options | Lists the model IDs and built-in tools available to custom plugin agents. Docs: amp plugins show-agent-options | -no example |
amp plugins show-docs | Prints the Plugin API documentation installed in the current environment, for example inside an orb. Docs: amp plugins show-docs | -no example |
amp tools list | Lists local tools, useful for finding tool names to call from plugins. Docs: amp tools list | -no example |
amp tools show | Shows a local tool, including its input schema with --json. <name> [--json] Docs: amp tools show | amp tools show <name> --json |
amp mcp add | Adds a local MCP server to your configuration, either a command after -- or a remote URL. <name> -- <command...> | <name> <url> Docs: amp mcp add | amp mcp add context7 -- npx -y @upstash/context7-mcp |
amp mcp approve | Approves a workspace MCP server from .amp/settings.json so it can run. <server-name> Docs: amp mcp approve | amp mcp approve my-server |
amp mcp doctor | Shows MCP server status, including | -no example |
amp mcp oauth login | Registers manual OAuth client credentials for a local MCP server; Amp opens the browser to finish authentication when the TUI starts. <server> --server-url <url> --client-id <id> --client-secret <secret> --scopes <scopes> Docs: amp mcp oauth login | amp mcp oauth login my-server \
--server-url https://example.com/.api/mcp/v1 \
--client-id your-client-id \
--client-secret your-client-secret \
--scopes "openid,profile,email,user:all" |
amp mcp oauth logout | Clears stored OAuth credentials for a local MCP server so Amp reauthenticates on next startup. <server> Docs: amp mcp oauth logout | amp mcp oauth logout my-server |
amp mcp remote | Manages remote MCP definitions stored by ampcode.com in personal, workspace, or project scope. Every command needs one scope option, before or after the command. add | list | update | check | tools | login | logout | remove Docs: amp mcp remote | amp mcp remote --personal add Linear https://mcp.linear.app/mcp |
amp mcp remote add | Adds a remote MCP definition. Amp detects authentication when --auth is omitted. <name> <url> [--auth none|bearer|oauth|workload-identity] Docs: amp mcp remote add | amp mcp remote add Public https://mcp.example.com/mcp --auth none --current-project |
amp mcp remote list | Lists remote MCP definitions in the selected scope; --json returns the UUID | amp mcp remote --personal list |
amp mcp remote update | Updates a remote MCP definition by name or UUID, for example disabling it. <name-or-uuid> [--disabled] Docs: amp mcp remote update | amp mcp remote --personal update Linear --disabled |
amp mcp remote check | Checks a remote MCP definition. <name-or-uuid> Docs: amp mcp remote check | amp mcp remote --personal check Linear |
amp mcp remote tools | Lists a remote MCP server's tools; --refresh refreshes them. <name-or-uuid> [--refresh] [--json] Docs: amp mcp remote tools | amp mcp remote --personal tools Linear --refresh |
amp mcp remote login | Logs in to a remote MCP definition; prints the ampcode.com OAuth URL, useful in orbs where browser OAuth is unavailable. <name-or-uuid> Docs: amp mcp remote login | amp mcp remote --personal login Linear |
amp mcp remote logout | Logs out of a remote MCP definition. <name-or-uuid> Docs: amp mcp remote logout | amp mcp remote --personal logout Linear |
amp mcp remote remove | Removes a remote MCP definition. <name-or-uuid> [--yes] Docs: amp mcp remote remove | amp mcp remote --personal remove Linear --yes |
amp runner desktop status | Checks what a runner can share for the Desktop tab and, on Linux, lists which required programs it finds. Docs: amp runner desktop status | amp runner desktop status |
amp runner desktop allow | Asks macOS again for a permission the runner desktop needs. screen-recording | accessibility Docs: amp runner desktop allow | amp runner desktop allow screen-recording |
amp runner dirs add | Adds a directory to a running runner from another terminal on the same machine. Added directories are served again when the runner restarts from the same directory. <path> [--runner-id <id>] Docs: amp runner dirs add | amp runner dirs add ~/code/new-repo |
amp runner dirs list | Lists the directories a running runner serves. [--runner-id <id>] Docs: amp runner dirs list | amp runner dirs list |
amp runner dirs remove | Removes a directory from a running runner. <path> [--runner-id <id>] Docs: amp runner dirs remove | amp runner dirs remove ~/code/dotfiles |
amp report-bug | Sends a bug report with diagnostic data to the Amp team, for example after an "<description>" Docs: amp report-bug | amp report-bug "describe the bug" |
amp report | Alias for | -no example |
amp diagnostics | Alias for | -no example |
amp secrets | Manages Secrets & Env Vars from the CLI. Run | amp secrets --help |
amp secrets history | Shows who created and last changed each secret or environment variable entry, without showing values. Docs: amp secrets history | -no example |
amp orb restart-processes | Run from an orb's Terminal to refresh secrets: waits for the current command, reloads values, and restarts the executor and managed services. Docs: amp orb restart-processes | amp orb restart-processes |
amp orb id-token | Inside an orb, mints a signed OpenID Connect ID token for one intended service and prints only the token to standard output. --audience <aud> [--ttl-seconds <n>] [--subject-scope thread|user|project|workspace] Docs: amp orb id-token | amp orb id-token --audience https://logs.example.com |
amp orb services ensure | Reads .amp/services.yaml, starts any missing declared services, waits for readiness, writes Portal tab state, and prints the portal URLs. Add --json for structured status. [--json] Docs: amp orb services ensure | amp orb services ensure --json |
amp orb service list | Lists supervised services in the orb. Docs: amp orb service list | amp orb service list |
amp orb service status | Shows the status of a supervised service. <name> Docs: amp orb service status | amp orb service status web |
amp orb service logs | Shows the logs of a supervised service. <name> Docs: amp orb service logs | amp orb service logs web |
amp orb service restart | Restarts a service, reading the latest .amp/services.yaml and keeping its port and portal configuration. <name> Docs: amp orb service restart | amp orb service restart web |
amp orb service stop | Stops a supervised service. <name> Docs: amp orb service stop | amp orb service stop web |
amp orb service start | Starts a one-off supervised service for the current thread. Rejects names already declared in .amp/services.yaml; waits up to 60 seconds for the port with --portal. <name> --command <cmd> [--portal] [--title] [--description] [--cwd] [--port] Docs: amp orb service start | amp orb service start app \
--command 'npm run preview -- --host 0.0.0.0 --port "$PORT"' \
--portal \
--title 'App' \
--description 'Use the seeded development account.' |
amp orb portal | Lower-level command that creates or prints a portal URL for a server already listening on a port and registers it in the Portal tab. Does not start or supervise the server. <port> [--title] [--description] [--hostname <hostname>] [--take-over] Docs: amp orb portal | amp orb portal <port> --hostname <hostname> --take-over |
amp projects create | Creates a project mapped to an existing GitHub or Git repository, a blank Amp-hosted project with --amp-hosted, or an Amp-hosted project from a local repository with --push. [<repo>] [--amp-hosted --name <name>] [--push [--remote <name>]] [--personal | --workspace] Docs: amp projects create | amp projects create --amp-hosted --name widgets |
amp projects update | Updates project settings from the CLI. With no update options it refreshes a GitHub-connected project's repository metadata. <namespace/name> [options] Docs: amp projects update | amp projects update acme/widgets \
--remote-url https://gitlab.com/acme/widgets \
--remote-url git@github.com:acme/widgets.git |
amp projects delete | Deletes a project; its threads are always kept, archived, and read-only. <project> Docs: amp projects delete | -no example |
amp projects snapshots list | Lists a project's cached orb snapshots. <project> Docs: amp projects snapshots list | amp projects snapshots list <project> |
amp projects snapshots delete | Deletes cached orb snapshots so a setup change applies right away. Omit --resource to delete every snapshot for the project. <project> [--resource <size>] Docs: amp projects snapshots delete | amp projects snapshots delete <project> --resource a1.small |
The rest of the Amp reference
FAQ
How many subcommands does Amp have?
The official Amp docs list 88 subcommands, including amp, amp login and amp logout. All of them are in the table above, in the docs' order.
What does amp do in Amp?
Starts the Amp CLI. Without arguments it runs in interactive mode; piped input becomes the first user message in interactive mode. Example: echo "commit all my changes" | amp
Where are Amp subcommands documented?
On 20 official docs pages at ampcode.com, last read on October 17, 2026. Every row in the table links the exact section it came from.
Sources
Last verified . Names and examples are copied verbatim from the 20 official pages below, and every row above links the exact section it came from.
- ampcode.com/docs/cli8 items
- ampcode.com/docs/cli/settings1 item
- ampcode.com/docs/cli/keybindings1 item
- ampcode.com/docs/prompting1 item
- ampcode.com/docs/customize/model-routing10 items
- ampcode.com/docs/the-dial2 items
- ampcode.com/docs/threads10 items
- ampcode.com/docs/orbs1 item
- ampcode.com/docs/cli/clone1 item
- ampcode.com/docs/customize/skills3 items
- ampcode.com/docs/customize/global-plugins-and-skills4 items
- ampcode.com/docs/customize/plugins6 items
- ampcode.com/docs/orbs/event-driven1 item
- ampcode.com/docs/customize/mcp14 items
- ampcode.com/docs/cli/runners5 items
- ampcode.com/docs/support/reporting-bugs3 items
- ampcode.com/docs/orbs/handling-secrets4 items
- ampcode.com/docs/orbs/portals8 items
- ampcode.com/docs/projects3 items
- ampcode.com/docs/orbs/customizing2 items
Newsletter
Know when your tools change
One email per week. New coding agent releases, the flags and commands they add, and what they mean for how you work.