Amika MCP server
98 operations0 webhooks
Give an agent its own coding agents: create rigs (isolated devbox VMs with a repo, its dependencies and agent credentials), send messages to Claude Code or Codex running in them, queue shell commands and read their output, schedule jobs, expose dev servers as preview URLs, snapshot rigs into base images, and manage hosts, secrets, agent credentials and repository MCP integrations (98 operations).
Try Amika with your agent
Connect Amika, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Amika on my account, then run one read-only example and show me the result.
Amika tools and triggers
Tools are what your agent can do in Amika through Corsair's MCP server. Triggers are the Amika events a routine can start from.
Rigs
- CreateDestructive
Creates a rig: a devbox VM with a repo cloned, dependencies set up and agent credentials injected. Runs on Amika Cloud (billed per second), a connected cloud account, or one of your own hosts (host_id). Answers 202 while it boots; poll rigs.get until status is running and setup_status ok (git-failed, setup-failed or sys-setup-failed means setup failed: stop waiting). By default the rig gets a new organization API key as AMIKA_API_KEY (amika_api_key changes that).
rigs.create
- Create Ssh SessionWrite
Opens a direct WebSocket SSH session to a rig and returns its connection details. Name the rig by id or name; `sandbox_by` says which (default: either).
rigs.createSshSession
- Create Terminal TicketWrite
Mints a single-use ticket for the web terminal of a rig. Name the rig by id or name; `sandbox_by` says which (default: either).
rigs.createTerminalTicket
- DeleteDestructive
Deletes a rig and its disk. Anything not pushed or snapshotted is lost. A bare-metal rig is your own machine: only the rig and its SSH bridge state go, and the files and settings on the machine stay. With forget "true", Amika only drops its record when the host or provider can't be reached: the machine is left running, so confirm with the host or provider that it is gone. Name the rig by id or name; `by` says which (default: either).
rigs.delete
- GetRead-only
Reads one rig: status, setup status, provider, size, branch, services and timestamps. Name the rig by id or name; `by` says which (default: either).
rigs.get
- Get Slack ConversationRead-only
Reads the Slack thread a Slack-made rig belongs to.
rigs.getSlackConversation
- Get Slack MetadataRead-only
Lists Slack metadata (team, channel, thread) for the organization's Slack-made rigs, keyed by rig.
rigs.getSlackMetadata
- ListRead-only
Lists the organization's rigs (isolated devbox VMs for coding agents) with their status, provider and size.
rigs.list
- List IntegrationsRead-only
Lists the MCP integrations (Sentry, Linear, Pylon) attached to a rig at creation. Name the rig by id or name; `sandbox_by` says which (default: either).
rigs.listIntegrations
- List Lifecycle EventsRead-only
Reads the control-plane event feed of a rig: created, setup steps, started, stopped, errors. Name the rig by id or name; `sandbox_by` says which (default: either).
rigs.listLifecycleEvents
- Services.CreateWrite
Exposes a port of a rig as a named service with its own http or https URL (a dev server preview).
rigs.services.create
- Services.Create TokenWrite
Mints an access token for a service of a rig that runs on your own host, for calling it from a script.
rigs.services.createToken
- Services.DeleteDestructive
Removes a live service from a rig; its URL stops answering.
rigs.services.delete
- Services.ListRead-only
Lists the live services of a rig: name, port and the URL that reaches it. Name the rig by id or name; `sandbox_by` says which (default: either).
rigs.services.list
- Services.ReplaceWrite
Replaces a live service on a rig: its name, port and URL scheme.
rigs.services.replace
- Sessions.CreateWrite
Creates a new, empty agent session on a rig for the named agent (no message is sent). Name the rig by id or name; `sandbox_by` says which (default: either).
rigs.sessions.create
- Sessions.GetRead-only
Reads one agent session on a rig by its session id.
rigs.sessions.get
- Sessions.Get LatestRead-only
Reads the most recent agent session on a rig. Name the rig by id or name; `sandbox_by` says which (default: either).
rigs.sessions.getLatest
- Sessions.ListRead-only
Lists the agent sessions on one rig. Name the rig by id or name; `sandbox_by` says which (default: either).
rigs.sessions.list
- Sessions.UpdateWrite
Updates an agent session on a rig: its status or metadata.
rigs.sessions.update
- StartDestructive
Starts a stopped rig. On a VM rig, files in the home folder are kept and /tmp is cleared by the restart; on a bare-metal rig it only starts the SSH bridge again (the machine never stopped). Billing resumes while it runs. Name the rig by id or name; `by` says which (default: either).
rigs.start
- StopWrite
Stops a running rig so it stops billing for compute. On a VM rig, files in the home folder are kept and /tmp is cleared when it starts again, so keep work in the home folder. On a bare-metal rig only the SSH bridge stops: the machine keeps running and its files, /tmp included, stay as they are. Name the rig by id or name; `by` says which (default: either).
rigs.stop
Agent Credentials
- Claude.CheckRead-only
Checks that a stored Claude Code credential can still authenticate.
agentCredentials.claude.check
- Claude.CreateWrite
Stores a Claude Code credential (type oauth or api_key) that rigs can be given.
agentCredentials.claude.create
- Claude.DeleteDestructive
Deletes a stored Claude Code credential.
agentCredentials.claude.delete
- Claude.ListRead-only
Lists stored Claude Code credentials (OAuth tokens or API keys) by name and scope, never values.
agentCredentials.claude.list
- Codex.CreateWrite
Stores a Codex credential (type oauth or api_key) that rigs can be given.
agentCredentials.codex.create
- Codex.DeleteDestructive
Deletes a stored Codex credential.
agentCredentials.codex.delete
- Codex.ListRead-only
Lists stored Codex credentials by name and scope, never values.
agentCredentials.codex.list
- Pi.DeleteDestructive
Deletes the Pi agent credential.
agentCredentials.pi.delete
- Pi.GetRead-only
Reads whether a Pi agent credential is configured.
agentCredentials.pi.get
- Pi.SetWrite
Saves the Pi agent credential.
agentCredentials.pi.set
Hosts
- Check HealthRead-only
Checks whether a host's daemon is answering.
hosts.checkHealth
- CreateWrite
Registers a host for bring-your-own-compute. amika-hostd setup normally does this.
hosts.create
- DeleteDestructive
Deletes a host and its stored secret; rigs can no longer be created on it.
hosts.delete
- EnrolWrite
Enrols a tunnel host with its gateway.
hosts.enrol
- GetRead-only
Reads one of your own hosts: its hostname, runtimes, sizes and status.
hosts.get
- ListRead-only
Lists the organization's own hosts (machines running amika-hostd) and their runtimes and sizes.
hosts.list
- ReplaceWrite
Replaces a host's registration: hostname, URL and settings.
hosts.replace
Secrets
- CreateWrite
Stores a generic secret in the Amika vault (user or organization scope) for injecting into rigs as an env var.
secrets.create
- DeleteDestructive
Deletes a generic secret from the vault.
secrets.delete
- ListRead-only
Lists the generic secrets the caller can see (names and scopes, never values).
secrets.list
- Ssh Public Keys.DeleteDestructive
Deletes one of the caller's SSH public keys.
secrets.sshPublicKeys.delete
- Ssh Public Keys.ListRead-only
Lists the caller's SSH public keys.
secrets.sshPublicKeys.list
- Ssh Public Keys.UpsertWrite
Adds or replaces one of the caller's SSH public keys, used for rig SSH and editor access.
secrets.sshPublicKeys.upsert
- UpdateWrite
Updates a generic secret: its value, name or scope.
secrets.update
Cloud Accounts
- CreateWrite
Connects a cloud provider account with its API key, so rigs can run there.
cloudAccounts.create
- DeleteDestructive
Disconnects a cloud account and deletes its stored API key.
cloudAccounts.delete
- GetRead-only
Reads one connected cloud account by id or name.
cloudAccounts.get
- ListRead-only
Lists the organization's connected cloud provider accounts that rigs can run in.
cloudAccounts.list
- List SizesRead-only
Lists the rig sizes a cloud account offers.
cloudAccounts.listSizes
- UpdateWrite
Updates a connected cloud account: its name or API key.
cloudAccounts.update
Repositories
- Clear ImageDestructive
Clears a repository's image configuration, so new rigs use the preset image.
repositories.clearImage
- GetRead-only
Reads one repository and its rig settings.
repositories.get
- Integrations.ListRead-only
Lists the MCP integrations new rigs of a repository get.
repositories.integrations.list
- Integrations.SetWrite
Replaces the list of MCP integrations new rigs of a repository get.
repositories.integrations.set
- ListRead-only
Lists the organization's repositories and their rig settings (setup script, image, env).
repositories.list
- UpsertWrite
Creates or updates a repository by repo_url: its setup script, image and environment for new rigs.
repositories.upsert
Command Runs
- CancelWrite
Requests cancellation of a queued or running command run.
commandRuns.cancel
- CreateDestructive
Queues one shell command on a rig (run with bash -e -o pipefail) and answers at once. Name an existing rig (rig_id, rig_name or rig_ref) or create one with rig_create; a stopped rig is started. Poll commandRuns.get for status and commandRuns.listEvents for output. An idempotencyKey is made for you when you leave it out.
commandRuns.create
- GetRead-only
Reads one command run: status (queued, in_progress, completed), conclusion (success, failure, timed_out...), exit code, timing and its rig.
commandRuns.get
- ListRead-only
Lists command runs (queued shell commands on rigs), filtered by rig, status or session.
commandRuns.list
- List EventsRead-only
Reads the output events of a command run after a sequence number: pass the next_sequence of the previous answer as after to read on from there.
commandRuns.listEvents
Slack
- Channel Settings.DeleteDestructive
Deletes one Slack channel's defaults; it falls back to the workspace defaults.
slack.channelSettings.delete
- Channel Settings.ListRead-only
Lists per-channel Slack defaults and the channels the Amika bot has seen recently.
slack.channelSettings.list
- Channel Settings.SetWrite
Sets the repository, agent and system prompt one Slack channel uses.
slack.channelSettings.set
- Settings.GetRead-only
Reads the organization's Slack defaults: repository, agent and system prompt. 404 when not set.
slack.settings.get
- Settings.SetWrite
Sets the organization's Slack defaults: the repository and agent a new Slack thread uses, and an optional system prompt.
slack.settings.set
Snapshots
- CreateDestructive
Starts capturing a snapshot of a running rig (sandbox_ref names it). mode scrub_and_delete (default) removes injected secrets and deletes the source rig; full keeps both. Answers 202; poll snapshots.get for status.
snapshots.create
- DeleteDestructive
Deletes a snapshot by name (default) or id. Rigs can no longer boot from it.
snapshots.delete
- GetRead-only
Reads one snapshot by name (default) or id: status, source rig and size.
snapshots.get
- ListRead-only
Lists snapshots captured from rigs (reusable base images new rigs can boot from).
snapshots.list
- Preview ScrubRead-only
Previews which injected secrets a scrub_and_delete snapshot of a rig would remove.
snapshots.previewScrub
Job Runs
- CancelWrite
Cancels a pending or running job run.
jobRuns.cancel
- GetRead-only
Reads one job run: status, timing and the command run of each step.
jobRuns.get
- ListRead-only
Lists job runs, filtered by job, status or trigger kind.
jobRuns.list
- StartDestructive
Starts a run of a job now, outside its schedule.
jobRuns.start
Agent Sessions
- GetRead-only
Reads one agent session: its rig, agent, status and the messages exchanged so far.
agentSessions.get
- ListRead-only
Lists the organization's agent-session chats, newest first, with each one's rig, agent, model and a preview.
agentSessions.list
- SendDestructive
Sends one message to a coding agent (Claude Code or Codex) in a rig and waits for its reply. Without sandbox_id/sandbox_name/sandbox_ref it creates a new rig from repo_url; pass session_id to continue a chat. A failed turn still answers 200 with is_error: true and the agent CLI's own message. Runs on the rig's stored agent credential and can take minutes.
agentSessions.send
Api Keys
- CreateWrite
Creates an Amika API key (user or organization scope). The value is returned once.
apiKeys.create
- DeleteDestructive
Deletes an Amika API key; anything using it stops working. scope defaults to organization: pass scope user to delete a user key.
apiKeys.delete
- ListRead-only
Lists the caller's Amika API keys (names, scopes, last use; values obfuscated).
apiKeys.list
Service Definitions
- CreateWrite
Adds a service definition to a repository: a named set of ports every rig of that repository exposes.
serviceDefinitions.create
- DeleteDestructive
Deletes a service definition from a repository.
serviceDefinitions.delete
- UpdateWrite
Updates a repository's service definition: its name and ports.
serviceDefinitions.update
Git User Settings
- GetRead-only
Reads the caller's git author name and email, which rigs use for commits.
gitUserSettings.get
- SetWrite
Sets the caller's git author name and email for commits made in rigs.
gitUserSettings.set
Integrations
- DisconnectDestructive
Disconnects an integration provider for the caller and deletes its stored token.
integrations.disconnect
- ListRead-only
Lists the caller's connected integrations (GitHub, Sentry, Linear, Pylon).
integrations.list
Linear
- Settings.GetRead-only
Reads the organization's Linear defaults: repository, agent and system prompt. 404 when not set.
linear.settings.get
- Settings.SetWrite
Sets the organization's Linear defaults: the repository and agent Linear issues use.
linear.settings.set
Services
- ListRead-only
Lists the live services across the organization's rigs.
services.list
Jobs
- CreateDestructive
Creates a job: a cron trigger and 1 to 20 shell steps. Each time the trigger fires, a job run runs the steps in order on one rig. Step 0 names the rig with exactly one of rig_id, rig_name, rig_ref or rig_create; later steps name none and run on step 0's rig. Set enabled false to create it paused. An idempotencyKey is made for you when you leave it out.
jobs.create
- DeleteDestructive
Deletes a job and all of its job runs.
jobs.delete
- GetRead-only
Reads one job by id or name.
jobs.get
- ListRead-only
Lists jobs (scheduled commands on rigs) with their trigger, steps and next run.
jobs.list
- UpdateDestructive
Updates a job: its trigger, steps or description; enabled false pauses it and true resumes it. New steps follow the jobs.create rule: only step 0 names a rig.
jobs.update
Connect Amika to Claude, ChatGPT or Cursor
- 1
Connect Amika in Corsair
Add your Amika API key once in Corsair. Corsair stores the credential encrypted and makes the Amika API calls for your agent, so it never goes into a prompt or a config file. Connect Amika
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Amika. On a ChatGPT personal plan, connect Amika here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Customize → Connectors → Add custom connector, paste the address, then select Connect.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Amika's read and write operations run right away and its 24 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/amika, add the Amika plugin, and connect with an API key. Then call methods like corsair.amika.api.agentCredentials.claude.check() from your app. Corsair keeps each tenant isolated.
Yes. Amika requires an API key from your Amika account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit Amika, GitHub, Notion, Stripe, and the rest. Trigger Amika from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for give an agent its own coding agents: create rigs (isolated devbox VMs with a repo, its dependencies and agent credentials), send messages to Claude Code or Codex running in them, queue shell commands and read their output, schedule jobs, expose dev servers as preview URLs, snapshot rigs into base images, and manage hosts, secrets, agent credentials and repository MCP integrations (98 operations). Common builds include sync jobs, admin tooling, and agents that call Amika APIs from your backend.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Amika API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/amika in the open repo. When Amika ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Amika data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Amika data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Amika on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 24 destructive Amika operations. You can change a link's mode at hub.corsair.dev/me.