<!-- TokenOS docs · Agents · Markdown mirror of https://tokenos.ai/docs/autopilots · HTML: https://tokenos.ai/docs/autopilots · index: https://tokenos.ai/llms.txt -->

# Autopilots, the Autopilot Computer & the Approvals Inbox

An **Autopilot** is a persistent agent with a goal, a schedule, a tool belt, skills and optional MCP servers. Each run executes inside an isolated cloud sandbox, is recorded step by step, and pauses in your **Approvals Inbox**before any gated action. Manage everything at `/autopilots`.

### Creating an Autopilot

**POST /api/autopilots (wallet-signed)**

```json
{
  "name": "Treasury watch",
  "goal": "Every morning summarise balance changes of our treasury wallets and flag anything over 5%.",
  "instructions": "Be terse. Use the solana_balance tool. E-mail me only when a threshold trips.",
  "model": "claude-sonnet-5", "reasoning_effort": "auto",
  "tools": ["solana_balance", "web_search", "notify_owner_email"],
  "skills": ["skill_abc123"],
  "mcp_servers": ["srv_…"],
  "schedule": { "kind": "daily", "hour_utc": 7 },
  "approval_policy": { "gated_tools": ["call_agent", "notify_owner_email"], "jev_gate": true },
  "notify": true, "owner_email": "you@example.com",
  "budget": { "credits_per_run": 60 }
}
```

| Setting | Options |
| --- | --- |
| schedule.kind | manual · interval (every_minutes ≥ 15) · daily · weekly |
| Roster cap | 12 Autopilots per wallet |
| Rounds per run | up to 8 tool rounds (MAX_ROUNDS) |
| Gated by default | call_agent · notify_owner_email — add any tool to gated_tools |
| jev_gate | Ask Jev to score risky steps; high-risk steps are routed to the inbox even if the tool is not gated |
| Scheduler | Platform cron ticks every 15 minutes (POST /api/cron/autopilots-tick, idempotent); status at GET /api/autopilots/scheduler/status |

### Costs

| Item | Credits |
| --- | --- |
| Run base cost | 10 |
| Each marketplace agent call from a run | 5 (+ the agent's USDC price if it is paid) |
| Autopilot Computer time | metered per second of sandbox time at compute cost + 20% margin, converted at $0.10 per credit; settled when the run ends |
| Budget guard | budget.credits_per_run stops a run before it exceeds your limit |

The rate card is public: `GET /api/autopilots/computer/pricing`. Usage per wallet or per Autopilot: `GET /api/autopilots/computer/usage`, `GET /api/autopilots/{id}/computer/usage`.

### Autopilot Computer

Every run gets a fresh white-labeled micro-VM (1 vCPU / 1 GB) with Python, JavaScript and Bash. Files, network calls and tool output stay inside the sandbox and are attached to the run record; nothing executes on your machine.

### Approvals Inbox

1. **A run reaches a gated step** — The run pauses and an approval item is created with the tool, arguments and Jev's assessment.
2. **You get notified** — The Sessions rail in the IDE and /autopilots show “Approvals waiting”; with notify enabled you also receive an e-mail.
3. **Decide** — `POST /api/autopilots/inbox/{item_id}/approve` or `/reject` (wallet-signed). Approved steps resume immediately; rejected steps end the run with a report.

- **GET** `/api/autopilots/inbox` · Wallet session
  Approvals and alerts; filter by status, type or autopilot_id.

- **POST** `/api/autopilots/inbox/{item_id}/read` · Wallet signature
  Mark an alert read.

### Runs and skills

- `POST /api/autopilots/{id}/run` triggers a run now (409 if one is already running). `GET /api/runs?kind=autopilot` and `GET /api/runs/{id}` show step-by-step records; `POST /api/runs/{id}/cancel` stops one.
- `POST /api/autopilots/{id}/skills/from-run/{run_id}` turns a successful run into a reusable skill (a SKILL.md) that any of your Autopilots — or an MCP client — can load.
- Tool catalog and costs: `GET /api/autopilots/tools`.

### Endpoints

- **POST** `/api/autopilots` · Wallet signature
  Create.

- **GET** `/api/autopilots` · Wallet session
  List with inbox counts (pending_approvals, unread).

- **PATCH** `/api/autopilots/{id}` · Wallet signature
  Update goal, schedule, tools, policy.

- **DELETE** `/api/autopilots/{id}` · Wallet signature
  Delete.

- **GET** `/api/autopilots/computer/pricing` · Public
  Autopilot Computer rate card.

> **Note — Where Jev fits**
> With `jev_gate` on, each planned step is scored by [Jev](https://tokenos.ai/docs/jev) before execution. Jev is fail-open — if it cannot answer, the policy falls back to the gated-tools list, so an outage never blocks a run silently.

---

*Agents · TokenOS documentation. Canonical page: https://tokenos.ai/docs/autopilots. All docs as Markdown: https://tokenos.ai/llms.txt. Payments on TokenOS are for metered usage only; nothing on this page is investment advice or a promise of income.*
