An instance is a persistent, isolated, always-on computer running your agent. Create one per end user. The call is synchronous: whenDocumentation Index
Fetch the complete documentation index at: https://agent37.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
status is running, it can take a message immediately. Creating an instance pre-charges prorated compute from your prepaid balance, but the agent does no work until you send it a message.
Create an instance
POST /v1/instances returns an instance that is ready to take a message the moment its status is running. Every field is optional, so a POST with no body works.
Which agents are installed.
hermes is the default and available today; claude-code, codex, openclaw, and all are coming soon. See Templates.Size:
1, 2, 4, or 8. Sets CPU, memory, disk, and price.An opaque tag for your own attribution (your end user’s id). Stored, never interpreted. Filter the list by it.
Hard cap on this instance’s managed usage, drawn from your shared balance.
A label for the instance.
Your own key/value pairs. Stored, never interpreted.
Today every instance runs the
hermes template. The claude-code, codex, openclaw, and all templates, plus bring-your-own custom templates, are coming soon. See Templates.Create body and instance object
The instance id, prefixed
inst_.running means it can take a message now.The template the instance was built from.
The agents the template installed (Hermes by default).
The current size.
Your attribution tag, echoed back.
Per-instance managed-usage tracking:
managed_cap_usd, managed_used_usd, and remaining_usd.true when a newer template version exists. Apply it with the /update endpoint.Creation time in unix seconds.
Manage it
| Action | Endpoint |
|---|---|
| Retrieve / list | GET /v1/instances/{id} · GET /v1/instances?user= |
Update (name, cap, resize vcpu) | PATCH /v1/instances/{id} |
| Delete / restore | DELETE /v1/instances/{id} · POST /v1/instances/{id}/restore |
Lifecycle
Three calls control whether the instance’s computer is running and which version it runs. Each is aPOST to a subpath, takes no body, and returns the instance with its new status. Everything on the instance (files, memory, connected accounts) survives all three.
Stop
POST /v1/instances/{id}/stop halts the container. The agent stops doing work (no cron, no heartbeats, no responses) and status becomes stopped. The instance and its data stay intact; bring it back up with restart.
curl
Restart
POST /v1/instances/{id}/restart recreates the container from the image already on the host (no download), then returns it to running. Use it to recover a wedged agent, to pick up changed settings, or to bring a stopped instance back up. Same template version, same data.
curl
Update
POST /v1/instances/{id}/update pulls the latest version of the instance’s template, recreates the container on it, and preserves the data. The instance object’s update_available is true whenever a newer version exists, and this call is how you apply it.
curl
Next steps
Templates
Choose which agents an instance installs.
Billing
Prepaid balance, managed caps, and pricing.