Skip to content

Wake an agent's computer: the container starts, its saved home is restored, and its time is metered as sandbox time under the agent until it sleeps.

POST/workspaces/{workspace}/agents/{agent}/computer/wake

Sessions wake it by themselves; this is for a person. Refused with payment_required when the workspace’s plan refuses compute. Owners, or the member whose personal agent it is. Returns what get_agent_computer returns.

  • Authentication: Required. Send an access token as Authorization: Bearer.
  • MCP tool: agent with action wake_computer, and the same inputs
  • Scope: An access token needs agents:run.
Name Type Required Description
workspace string Yes The workspace’s slug, e.g. “flagon-io”.
agent string Yes The agent’s handle, without the @.
curl -X POST https://api.g1t.sh/workspaces/flagon-io/agents/margo/computer/wake \
-H "Authorization: Bearer $G1T_TOKEN"

A successful request answers 200 with:

{
"status": {
"agent_id": "agt_01k7a0b1c2d3e4f5g6h7j8k9mn",
"state": "awake",
"since": "2026-10-10T10:02:17.000Z",
"disk_used_bytes": 734003200,
"disk_cap_bytes": 5000000000,
"last_woke_at": "2026-10-10T10:02:17.000Z",
"last_slept_at": "2026-10-10T09:42:10.000Z",
"snapshot_bytes": 212337664,
"snapshot_at": "2026-10-10T09:42:08.000Z",
"where": "g1t_cloud",
"disk_attached": true,
"problem": null,
"delete_after": null
},
"commands": [],
"can_manage": true
}

A failed request answers with one of these statuses and a body like {"error": {"code": "not_found", "message": "Repository not found."}}. See errors.

Status Code When
401 unauthenticated A token is required, or the one sent is not valid.
402 payment_required The workspace cannot start this work: it needs the g1t plan or a card check, or it is at a limit. See usage and billing.
403 forbidden The token is valid but not allowed to do this, such as a member-only change or an agent token outside its repository.
404 not_found It does not exist, or you cannot see it.
409 conflict The request conflicts with the current state.
422 invalid The input is not valid. message says which field and why.