Log in and permissions
Your agent logs in with a key. Acasia checks that key and refuses a tool call that needs a permission the key does not have.
How your agent logs in
Your agent sends its key as a bearer token in its requests to https://mcp.acasia.com/mcp.
Authorization: Bearer aca_••••The server accepts an Acasia API key, which starts with aca_, or a valid Acasia sign-in token your agent already has. If your agent can only set an X-Api-Key header, put the key there. The server sends it on as a bearer token.
Your key is passed on, not stored
- For a tool that needs a key, the MCP server passes the key your agent sent on to Acasia, and Acasia checks it. The MCP server does not store that key or write it to logs.
- The MCP server does not add permissions to your key, and does not retry a refused call with a different key.
- The MCP server filters the error code, message and
request_idfrom Acasia to remove the credential. It omits structured error details such as an approval ID. For a rental write that reached Acasia, the error can include the caller’sidempotency_keyas supplied. - Acasia checks the key on each call that sends it, so a revoked key is refused on its next call.
Create and revoke an API key
A key belongs to your organization. In the console, open Settings and choose API keys.
- To create one, choose Create an API key and fill in the form. Copy the key when it appears. It is shown once.
- To revoke one, choose Manage next to it, type its name and choose Revoke key.
- A key created in the console gets your permissions, except the ones that manage API keys. Its Can use choice does not change the permissions the tools below check.
- To grant a narrower set, pass an explicit
permissionslist toPOST /v1/api-keysusing a credential withapi_keys:write. You can grant only permissions the credential holds. - A revoked or expired key is refused with
unauthenticated. So is the old secret of a rotated key once its grace period ends. - When you disconnect an agent, Acasia revokes the API keys linked to it.
What each tool needs
A permission is a resource and an action, like rentals:read. An API key carries the permissions it was created with. A sign-in token carries its own permissions.
Tools marked off by default appear in your agent’s tool list only when they are turned on.
| Tool | Permission |
|---|---|
whoami | Any valid key or token |
list_rentals | rentals:read |
get_rental | rentals:read |
rent_gpu | rentals:write, plus ssh_keys:read when ssh_key_ids is non-empty |
stop_gpu | rentals:write |
get_gpu | gpus:read |
list_gpu_events | gpus:read |
start_gpu | gpus:write |
cancel_gpu_start | gpus:write |
keep_gpu_on | gpus:write |
api_health | None. Your key is not sent |
api_ready | None. Your key is not sent |
list_ssh_keysOff by default | ssh_keys:read |
add_ssh_keyOff by default | ssh_keys:write |
delete_ssh_keyOff by default | ssh_keys:write |
get_statusOff by default | None. Your key is not sent |
Why a tool call is refused
Acasia refuses the call with permission_denied. Your agent gets that code. The error may also include a request_id.
- A key or token Acasia does not accept:
unauthenticated. - A signed-in person removed from the organization:
permission_denied.
A rent_gpu request using a key linked to an agent can be subject to that agent’s daily limit. A key you create in the console and give to your agent is not linked to an agent.
agent_limit_approval_required(402) means the rental would take the agent past its daily limit. Someone withagents:decidecan approve it. Then callrent_gpuagain with the same inputs and the sameidempotency_key. Acasia checks the request again and can still refuse it.agent_limit_denied(403) means Acasia refused this start for the agent, for example because someone denied the request, the agent is disabled, or the approval for thisidempotency_keywas already used.request_id_conflict(409) means another agent in the organization claimed thisidempotency_keyfor a rental start.
After any of these refusals, an earlier request with the same idempotency_key may already have been accepted. Check list_rentals for an existing rental if you have rentals:read. That list omits the idempotency key and shows at most 100 recent rentals, so it cannot prove the first request failed. A fresh key starts a separate rental; use one only when you intend to start another.
Check a rental request
Choose and save an idempotency_key before the first rent_gpu call. If it times out, retry with that same key and the same inputs. A different key makes a separate rental request and can create a second rental.
A 202 receipt from rent_gpu means the rental start was queued. get_rental and list_rentals return ssh with host, port and user when Acasia reports the endpoint. A running rental can still lack it if ssh_keys_state is pending or failed. Check ssh itself. Older rentals can include it without ssh_ready.
Check who you are with whoami
Call whoami with no inputs. It shows what Acasia sees for the key or token your agent sent:
subject: the API key id, or the person’s user id.org_id: the organization the caller acts for.auth_method:api_keyfor an API key, orjwtfor a sign-in token.permissions: the permissions Acasia recognizes for that key or token.
Run it first when a tool says permission_denied.