Persistent agents over HTTP.
Private betaA mech is an agent with its own files and conversation history. Each task runs in a fresh sandbox that restores the mech’s last checkpoint.
How runs work
POST /v1/mechs/{id}/runs- Run 01 · sandboxWrite note.txt
- CheckpointFiles + conversation
- Run 02 · sandboxRevise note.txt
First request
mechane-api.mechane.workers.dev# Create a mech (MECHANE_API_KEY comes from the dashboard)
curl https://mechane-api.mechane.workers.dev/v1/mechs \
-H "Authorization: Bearer $MECHANE_API_KEY" \
-d '{"id":"ada","model":"gpt-6-luna"}'
# Send it a task; the 202 response includes the run id
curl https://mechane-api.mechane.workers.dev/v1/mechs/ada/runs \
-H "Authorization: Bearer $MECHANE_API_KEY" \
-H 'Idempotency-Key: first-note' \
-d '{"input":"Write hello to note.txt."}'
# Follow the run (stream excerpt)
curl -N https://mechane-api.mechane.workers.dev/v1/mechs/ada/runs/$RUN_ID/events \
-H "Authorization: Bearer $MECHANE_API_KEY"
id: 3
event: run.output
data: {"text":"Wrote hello to note.txt."}
id: 4
event: run.status
data: {"status":"completed"}
Specifications
- Model
- GPT-6 Luna
- Harness
- Codex 0.156.0
- Runs per mech
- One at a time
- Run deadline
- 15 minutes
- Checkpoint
- 16 MiB, 10,000 files
- Events
- Server-sent, resumable
Compute & credits
Prepaid per mech · USD| Usage | Unit | USD |
|---|---|---|
| GPT-6 Luna input | 1M tokens | $0.20 |
| GPT-6 Luna cached input | 1M tokens | $0.02 |
| GPT-6 Luna output | 1M tokens | $1.00 |
| Active sandbox runtime | 1 hour, metered per second | $0.09 |