boxd MCP server
35 operations0 webhooks
boxd cloud machines through boxd's TypeScript SDK: create, list, start, stop, pause, hibernate, wake, fork and delete full Linux VMs, run commands, move files in and out, publish ports on HTTPS URLs or raw TCP/UDP, and save and restore snapshots and checkpoints (35 operations).
boxd.sh ↗Try boxd with your agent
Connect boxd, 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 boxd on my account, then run one read-only example and show me the result.
boxd tools and triggers
Tools are what your agent can do in boxd through Corsair's MCP server. Triggers are the boxd events a routine can start from.
Machines
- CreateDestructive
Create a machine: a fresh Ubuntu 24.04 VM (user boxd with sudo, Docker, Node, Python, Go, git), or a copy of a snapshot with `fromSnapshot`. It runs, and bills, until it is stopped, hibernated or deleted. Isolated by default.
machines.create
- DeleteDestructive
Delete a machine for good: its disk, memory and processes are gone. Its snapshots stay.
machines.delete
- ExecDestructive
Run a command on a machine as user boxd and wait for it: returns the exit code, stdout and stderr. Pass a shell line ("cd app && npm test") or an argv array. A standby or hibernated machine wakes by itself; a stopped one needs machines.start first (409 otherwise). stdin is closed.
machines.exec
- ForkDestructive
Fork a running machine: a new machine with a copy of its disk, memory and running processes. The fork keeps the source's labels (merged with `labels`) and its isolation.
machines.fork
- GetRead-only
Get one machine by id or name: status, size, region, labels, URL and where it came from.
machines.get
- HibernateWrite
Hibernate a running or standby machine: memory and running processes go to disk and it stops using compute. machines.wake, machines.exec or a request to its URL bring it back as it was. The status can read "suspended" for a moment before "hibernated".
machines.hibernate
- ListRead-only
List the org's machines in one region, optionally only those with given labels.
machines.list
- PauseWrite
Put a running machine in standby: memory stays in place and it resumes in about a millisecond, by itself on the next request or with machines.resume.
machines.pause
- ResumeDestructive
Resume a machine in standby (see machines.pause). Fails with 409 if it is not in standby.
machines.resume
- StartDestructive
Boot a stopped machine (a cold boot: the disk is kept, memory is not). Does nothing to a running one.
machines.start
- StopDestructive
Shut a machine down. The disk is kept; memory and running processes are lost. machines.start boots it again. To keep processes, use machines.hibernate.
machines.stop
- Update LabelsWrite
Add, change or remove a machine's labels in one change. Returns the labels now in effect.
machines.updateLabels
- Wait Until ReadyRead-only
Wait until a machine is running and answers a command, e.g. after create or fork with waitUntilReady false.
machines.waitUntilReady
- WakeDestructive
Wake a hibernated machine with its memory and processes as they were. Does nothing to a running one.
machines.wake
Files
- DownloadRead-only
Read a file from a machine, as UTF-8 text or base64 for binary files.
files.download
- ListRead-only
List a directory on a machine (not recursive).
files.list
- Make DirectoryWrite
Create a directory on a machine, with any missing parents. An existing directory is fine.
files.makeDirectory
- RemoveDestructive
Delete a file, or a directory with `recursive`. 404 if the path does not exist.
files.remove
- StatRead-only
Get the type, size, mode and modification time of a path on a machine. 404 if it does not exist.
files.stat
- UploadWrite
Write a file on a machine, replacing any file at that path. Missing parent directories are created.
files.upload
Checkpoints
- CreateWrite
Save a running machine (memory and disk) as a named checkpoint, e.g. before a risky change; the machine keeps running. checkpoints.restore puts the machine back to it. Waits until it is "ready" unless waitUntilReady is false.
checkpoints.create
- DeleteDestructive
Delete a checkpoint of a machine. The machine is not affected.
checkpoints.delete
- ListRead-only
List a machine's checkpoints and whether each can be restored now.
checkpoints.list
- RestoreDestructive
Put a machine back to a "ready" checkpoint: it reboots into the saved memory and disk, and everything since the checkpoint is lost. Returns once the machine runs again.
checkpoints.restore
Proxies
- CreateWrite
Publish a port of a machine on its own public HTTPS URL, https://<name>.<machine>.boxd.sh, e.g. an API next to the app on the default route. Anyone with the URL can reach it: unlike the default route, a named route has no bot protection, so webhooks and API clients get through. A new route answers once its TLS certificate is issued, about 15 seconds.
proxies.create
- DeleteDestructive
Remove a named HTTPS route from a machine. The default route stays; the port keeps running in the machine.
proxies.delete
- ListRead-only
List a machine's HTTPS routes: its default route (https://<machine>.boxd.sh) and every named one, with the port each forwards to.
proxies.list
- Set PortWrite
Point a route at another port in the machine. Without `name` it changes the default route, which also takes "auto": boxd then follows the port the app listens on (80, 443, 8080, 8000, 3000, 5000, 5173).
proxies.setPort
Snapshots
- CreateDestructive
Save a running machine's disk and memory as a named snapshot; the machine keeps running. Saving over an existing name makes a new version that new machines get from then on, and the org keeps only its newest versions, so an old one can be dropped. machines.create with fromSnapshot makes new machines from it.
snapshots.create
- DeleteDestructive
Delete a snapshot and every version it keeps. Machines made from it are not affected.
snapshots.delete
- GetRead-only
Get one snapshot by name or id.
snapshots.get
- ListRead-only
List the org's snapshots in one region.
snapshots.list
Ports
- ExposeWrite
Forward a raw TCP or UDP port of a machine (a database, SSH-like or game server, anything not HTTP) to a public port on the internet; at most 3 per machine. For HTTP use proxies.create. Exposing the same machine port again keeps its public port and changes only the protocol.
ports.expose
- ListRead-only
List raw TCP/UDP port forwards: one machine's, or every machine's when machineId is omitted.
ports.list
- UnexposeDestructive
Remove a raw port forward and free its public port; exposing it again may get another public port. Returns the forward that was removed.
ports.unexpose
Connect boxd to Claude, ChatGPT or Cursor
- 1
Connect boxd in Corsair
Add your boxd API key once in Corsair. Corsair stores the credential encrypted and makes the boxd API calls for your agent, so it never goes into a prompt or a config file. Connect boxd
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs boxd. On a ChatGPT personal plan, connect boxd here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.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, boxd's read and write operations run right away and its 15 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/boxd, add the boxd plugin, and connect with an API key. Then call methods like corsair.boxd.api.checkpoints.create() from your app. Corsair keeps each tenant isolated.
Yes. boxd requires an API key from your boxd 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 boxd, GitHub, Notion, Stripe, and the rest. Trigger boxd from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for boxd cloud machines through boxd's TypeScript SDK: create, list, start, stop, pause, hibernate, wake, fork and delete full Linux VMs, run commands, move files in and out, publish ports on HTTPS URLs or raw TCP/UDP, and save and restore snapshots and checkpoints (35 operations). Common builds include sync jobs, admin tooling, and agents that call boxd 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 boxd 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/boxd in the open repo. When boxd 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 boxd data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store boxd 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 boxd 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 15 destructive boxd operations. You can change a link's mode at hub.corsair.dev/me.