create_machine
Rents a machine (arm-small or gpu-l4) with a time limit. The full time limit is held before launch. Needs an idempotency_key.
MCP
Add one MCP server and your agent can create a machine, run commands on it, check what it spent and stop it, from prepaid credits and inside the cap you set. Details may change.
ak_test_… while you build, ak_live_… in production) with a spend cap. For now, CapVM issues keys for you.https://api.capvm.com/mcp (streamable HTTP, not under /v1) with the header Authorization: Bearer ak_test_… .create_machine, then exec, then stop_machine. The same caps and limits apply as on the REST API.Full setup, key safety and errors: MCP docs. Also see the Quickstart, API reference and Billing and caps.
{
"mcpServers": {
"capvm": {
"url": "https://api.capvm.com/mcp",
"headers": {
"Authorization": "Bearer ak_test_..."
}
}
}
}Never commit a config file that contains a key. Give each client its own key with a low spend cap.
Tools
Rents a machine (arm-small or gpu-l4) with a time limit. The full time limit is held before launch. Needs an idempotency_key.
Returns one machine by id.
Lists up to 100 machines for this key, newest first.
Stops a machine, charges the billed seconds and releases the rest of the hold.
Runs a command on a ready machine and returns stdout, stderr and the exit code.
Spend, open holds and spend cap for the calling key, plus recent charges.
The organization's available and held credits.
Starts a card top-up and returns a Stripe Checkout link. A human must open the link and pay.
Tool names as listed in the MCP docs. Money is always integer micro-USD (1 USD = 1,000,000). Connecting with OAuth instead of a key is coming soon.
Machines
arm-small: 2 vCPU, 4 GiB memory, ARM64 Linuxgpu-l4: 1× NVIDIA L4, 24 GBAt most 2 hours per machine. All pricing rules.
FAQ
Yes. CapVM serves the Model Context Protocol over streamable HTTP at https://api.capvm.com/mcp. An agent with a CapVM key calls create_machine with sku gpu-l4 (NVIDIA L4, $2.00/h) or arm-small (ARM64, $0.20/h).
create_machine, get_machine, list_machines, stop_machine, exec, get_usage, get_balance and create_checkout_session.
Give each agent its own API key with a low spend cap. CapVM rejects a machine that would take the key over its cap, and machines stop when the cap or your credits run out.
No. create_checkout_session returns a Stripe Checkout link, and a human must open it and pay.