Skip to main content
Use this page as the command index for the amika CLI.

amika rig

Manage hosted rigs.
amika sandbox remains available as a compatibility alias. Use amika rig in new commands and scripts.

Global rig flags

Rigs are always hosted. --remote remains an accepted no-op for compatibility. The retired --local flag is hidden and returns an error.

Create

Create flags

--no-setup and --setup-script are mutually exclusive.
Supported agent kinds for --agent-credential, --agent-credential-type, and --no-agent-credential are claude and codex. Each flag may appear at most once per kind. --no-agent-credential is mutually exclusive with the other two for the same kind. See Inject credentials for usage.
Hosted rigs clone from the repository remote. Push local commits before creation. The CLI rejects an inferred branch that is not present and up to date on origin.

List

Aliases: ls
Output columns: NAME, STATE, LOCATION, PROVIDER, IMAGE, BRANCH, PORTS, CREATED.

Connect

The shell starts in /home/amika.

Delete

Aliases: rm, remove
When neither flag is set and the rig is the sole reference for a volume, you will be prompted to decide.

Stop

Stop one or more running rigs without removing them.

Start

Start (resume) one or more stopped rigs.

SSH

SSH into a remote rig, or revoke SSH access. Optionally pass a command to execute instead of opening an interactive session.

Code

Open a remote rig in an editor via SSH.

Agent Send

Send a prompt to an AI agent CLI running inside a rig container. The message can be provided as a positional argument or piped via stdin. By default the command waits for the agent to finish and streams the response.

amika snapshot

Manage snapshots captured from running rigs. Snapshots are a hosted-cloud concept — every subcommand talks to the API — so they are not available in local open-source mode. See Create a snapshot for the end-to-end flow.

Create

Capture a snapshot from a running rig. Interactive by default: it prompts for the capture mode and name, and for scrub_and_delete it previews the injected secrets that will be removed and asks for confirmation. Pass --no-interactive for a non-prompting run, which then requires --mode and --name.
Capture modes: Capture runs in the background; check progress with amika snapshot list.

List

Aliases: ls
Output columns: NAME, STATE, PROVIDER, SOURCE, CREATED (plus SIZE, BASE, DESCRIPTION, and ERROR with --long).

Delete

Aliases: rm, remove

amika volume

Manage tracked Docker volumes used by rigs.

List

Aliases: ls
Output columns: NAME, TYPE, CREATED, IN_USE, SANDBOXES, SOURCE.

Delete

Aliases: rm, remove

amika service

Manage services declared in rig configurations.

List

Aliases: ls
Output columns: SERVICE, SANDBOX, PORTS, URL. See Services for how to declare services in .amika/config.toml.

amika auth

Authentication and credential commands.

amika auth login

Log in to Amika via the WorkOS Device Authorization Flow. Opens a browser for you to authorize the CLI.
To skip the browser flow and log in with an Amika API key — useful in CI — pass --api-key-file. Use - to read from stdin so the key never lands on disk:
See Authentication for details on the login flow and session storage.

amika auth status

Show current authentication status.
Prints the logged-in email and organization, or “Not logged in” if no session exists.

amika auth logout

Log out of Amika and remove the saved session.

amika auth extract

Discover locally stored credentials from multiple sources and print shell environment assignments.
See Authentication for details on supported credential sources and priority.

amika secret

Manage secrets in the remote Amika secrets store.

amika secret extract

Discover locally stored credentials and optionally push them to the remote store.

amika secret push

Push secrets to the remote store from inline arguments, environment variables, or a .env file.
When multiple sources are used, positional arguments override --from-file values, and --from-env overrides both.

amika secret claude

Manage Claude Code credentials for rig authentication. Credentials pushed here can be injected into rigs at creation time.

amika secret claude push

Push Claude Code credentials (API key or OAuth token) to the remote Amika secrets store. Scans your system for Claude credentials and lets you choose which one to push. On macOS, the keychain is also checked.
--value and --from-file are mutually exclusive.

amika secret claude list

Aliases: ls List pushed Claude credentials.
Output columns: ID, NAME, TYPE.

amika secret claude delete

Aliases: rm Delete a Claude credential by ID.

amika secret codex

Manage Codex credentials for rig authentication. Same shape as amika secret claude — pushed credentials can be injected into rigs at creation time.

amika secret codex push

Push Codex credentials (API key or OAuth token) to the remote Amika secrets store. Scans ~/.codex/auth.json for credentials and lets you choose which one to push.
--value and --from-file are mutually exclusive.

amika secret codex list

Aliases: ls List pushed Codex credentials.
Output columns: ID, NAME, TYPE.

amika secret codex delete

Aliases: rm Delete a Codex credential by ID.

amika materialize

Run a script or command in an ephemeral Docker container and copy output files to a destination. The container runs with working directory /home/amika/workspace. Exactly one of --script or --cmd must be specified.

Flags

Pass script args after --:

Environment variables