Documentation

Everything to ship your first run.

Authenticate, run a goal, then drop the engine into your agent over the REST API, MCP, LangChain, or AutoGen. Start with the quickstart below, then dig into concepts and reference.

Quickstart

From key to first run in five minutes

Create a per-tenant key, run a goal with POST /api/v1/run, then compile it into a skill so later replays cost a single credit.

Run a goalbash
# 1. Authenticate with a per-tenant Bearer key (created in the dashboard, shown once).
# 2. Run a goal: pass a url, a prompt, and a structured success condition.
curl https://twin-browser.com/api/v1/run \
  -H "Authorization: Bearer ab_live_…" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://app.acme.com/invoices",
    "prompt": "export last month as CSV",
    "success": { "kind": "urlIncludes", "value": "/exports" }
  }'

# → 200 { "success": true, "path": [ … ], "credits_charged": 10 }
# Compile it into a skill once, and later replays cost a single credit:
#   POST /api/v1/skills            → { "name": "acme-export", "credits_charged": 50 }
#   POST /api/v1/skills/acme-export/run → { "success": true, "credits_charged": 1 }

Get a key and ship your first run.