Rent a GPU with your agent
Your agent asks for a GPU through the Acasia MCP server, follows the rental and asks to stop it when you say so. Some steps can’t be done through the MCP server yet; see What isn’t available yet.
1 · Connect your agent
Add the Acasia MCP server to your agent.
https://mcp.acasia.com/mcp2 · Or paste the skill line
Optional. You can paste this line into your agent and change it to say what you want.
Use cloud.acasia.com/skill to get me an H100 with SSH.3 · Ask for a GPU
The agent needs these inputs before its first rent_gpu call.
- A machine_id in your organization and the gpu_indices to rent on it. get_gpu can show the machine_id for a GPU your organization already holds. MCP has no tool for discovering rentable machines or their free GPU indices.
- The ssh_key_ids of your organization’s keys to install. You can add a public key in SSH keys. The console’s SSH keys page doesn’t show key IDs. list_ssh_keys returns them when the tool is turned on and the agent has permission to read SSH keys. That permission is also required when passing key IDs to rent_gpu. rent_gpu accepts an empty list and the API can still include already-assigned organization keys.
- An idempotency_key it chooses and saves before the first call. The key is optional, but saving it lets the agent retry a timed-out request with the same key.
- The agent calls rent_gpu with machine_id, gpu_indices, allocated_cpu_cores, allocated_ram_gb, allocated_storage_gb, ssh_key_ids and its idempotency_key.
- The Acasia API checks permission to create the rental. For a request using an API key tied to an agent with a daily limit, the API can also check the start against that limit. If accepted, the API returns a 202 receipt for the queued start. rent_gpu exposes the receipt’s rental_id as id and keeps the original under rental.rental_id.
- The agent passes that id as rental_id to get_rental to follow the rental: status, hourly rate, the charge, and start and end times once they are recorded. get_rental needs permission to read rentals.
If a rent_gpu call times out, the agent retries with the same idempotency_key it chose before the first call and the same inputs. A different key identifies a different rental. If a call omits the key, the MCP server generates one for that request.
The API can refuse a same-key retry with agent_limit_denied, agent_limit_approval_required or request_id_conflict even if an earlier attempt with that key was accepted. Check the original request’s outcome before starting another rental. Use a different key only for an intentionally new rental.
If approval is still needed, someone with permission to decide agent requests can approve the start in Agents. Then the agent retries with the same idempotency_key.
These are some refusals the API can return for a rental start.
- permission_denied (403)
- The caller lacks permission to make this request.
- agent_limit_approval_required (402)
- The start would take the agent past its daily limit and is waiting for approval.
- agent_limit_denied (403)
- The API refused this start for the agent, for example because the request was denied or the agent is disabled or disconnected.
- request_id_conflict (409)
- Another agent in the organization already claimed this idempotency_key for a rental start.
4 · Connect over SSH
get_rental and list_rentals return ssh, with a host, port and user, when Acasia reports the rental’s SSH endpoint. Connect to that host and port as that user with one of the rental’s keys. A running rental can still lack ssh, for example while its keys are pending or failed in ssh_keys_state. An older rental can have ssh without ssh_ready, so the agent checks for ssh itself.
The rental status page in the console can also show the SSH command once the endpoint is reported. To open it, use /console/gpus/rent/started?rental= followed by the rental ID.
5 · Stop the GPU
Ask your agent to stop it. It calls stop_gpu with the rental_id. The API returns a 202 receipt when it queues the stop. get_rental shows the rental’s status, and its end time once one is recorded.
keep_gpu_on asks the API to keep a running GPU on for a number of minutes from now. It takes a gpu_id, which no rental tool returns yet.
What isn’t available yet
- No MCP tool lists rentable machines or their free gpu_indices.
- The console’s SSH keys page doesn’t show key IDs, which ssh_key_ids needs.
- No rental tool returns a gpu_id, which keep_gpu_on needs.
What it costs
get_rental and list_rentals show each rental’s hourly rate and its charge, in minor units of the currency. A rental can show no charge, for example while it is starting or if it failed to start.
Every tool
- rent_gpu
- Requests a rental of GPUs on a machine and returns a receipt.
- get_rental
- Shows one rental.
- list_rentals
- Lists your organization’s rentals.
- stop_gpu
- Requests a stop for a rental and returns a receipt.
- get_gpu
- Shows one GPU your organization holds.
- list_gpu_events
- Lists the history of one GPU.
- start_gpu
- Asks to start a GPU your organization holds.
- cancel_gpu_start
- Asks to cancel a GPU start that hasn’t finished.
- keep_gpu_on
- Asks to keep a running GPU on for a number of minutes from now.
- whoami
- Says who the agent acts as and what it may do.
- api_health
- Says whether the Acasia API is up.
- api_ready
- Says whether the Acasia API can reach its database.
Off by default
These tools are off by default; they appear in your agent’s tool list only when they are turned on.
- list_ssh_keys
- Lists your organization’s SSH keys.
- add_ssh_key
- Adds an SSH public key.
- delete_ssh_key
- Deletes an SSH key.
- get_status
- Reports Acasia’s public service status.