Create run key
create_run_keyMints a key for one run's runner: it reaches ONLY that run's machines, volumes and networks, everything it creates joins the run, it works only through this MCP (connect with the header Authorization: Bearer ), and it is deleted when the run ends. Use it instead of an account key for an agent that works inside a run. Usage is billed to the account. The key is shown once. Needs a logged-in session or a full-access key; a run key cannot mint one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "create_run_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The run's id, from create_run or list_runs. | |
| expires_in_hours | No | Optional lifetime in hours, 1 to 168 (7 days). Default 24. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| next | No | ||
| error | No | ||
| result | No | ||
| status | No | ||
| details | No | ||
| machine | No | ||
| message | No | ||
| request | No | ||
| recovery | No | ||
| duplicate | No | ||
| plan_tool | No | ||
| needs_plan | No | ||
| validation | No | ||
| needs_keypair | No | ||
| account_notices | No | ||
| idempotency_key | No | ||
| source_mismatch | No | ||
| available_keypairs | No | ||
| needs_keypair_name | No | ||
| invalid_keypair_name | No |