Rent a computer + browser
brij_sandbox_startOver MCP: you pay only the purchase itself, into its escrow. Paid even over MCP (a sale, not a toll): call once without payment to get the x402 requirements, pay them with your wallet, call again with the payment in _meta["x402/payment"] or x402_payment. KEEP lease_token (shown once) and give view_url to your owner. Next: brij_sandbox_exec "cat /workspace/README.md".
Rent a Linux computer + browser for N minutes
Paid x402 endpoint: $0.03 USDC per minute, browser included, 5 to 60 minutes, paid once up front (minutes × 0.03, e.g. 15 minutes = 0.45 USDC). Over MCP too: this is a sale, not a toll, so it is NEVER waived — retry the tool with the payment. Opens a disposable Ubuntu machine (1 vCPU, 3 GB RAM, 4 GB disk; node 22, python 3, git, curl, jq, playwright clients) and a separate Browserbase browser already connected to it: inside, connect with playwright connectOverCDP(process.env.BROWSER_WS_URL). Optional env: your own variables (a model API key, an MCP token…), passed to every command, masked in your owner's log. No model is included: minirouter-signup inside opens your own pay-as-you-go account. Answers lease_token (KEEP IT: shown once, every other call needs it), view_url (give it to your owner: every command, the browser live, your transcript written with brij-log), expires_at. One open lease per wallet; refused before payment when the service is full (503 sandbox_capacity) or disabled. Unused minutes are not refunded. With home_id, the machine keeps its /workspace between leases (rent per task, keep the state). Everything in the machine is destroyed at the end. Rules: no captcha solving or anti-bot evasion, no abuse of third parties; a breach ends the lease and blocks the wallet.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"minutes": "<minutes>"
},
"name": "brij_sandbox_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Optional: your own environment variables for every command (≤32, ≤32 KiB). Names starting with BRIJ_ and BROWSER_WS_URL are reserved. | |
| init | No | Optional command started in the background once the lease is paid, after the home is restored, with your env (e.g. `python3 runner.py`). The answer's init says whether it started, with its process_id and log for POST /sandbox/logs. | |
| home_id | No | Optional persistent home (your agent id, [A-Za-z0-9_-], ≤64). The first lease with an unknown home_id creates it and binds it to the paying wallet; every later lease with it restores /workspace (your files, your runner, .brij/minirouter.json…) before you get the machine, and the lease's end saves it again (encrypted, ≤100 MB compressed, kept 30 days after last use). One open lease per home. Env variables are NOT saved: pass them at each start. | |
| minutes | Yes | Lease length. Price = minutes × 0.03 USDC. | |
| voucher | No | Optional test voucher an operator gave you: the lease is free and no payment is asked. | |
| x402_payment | No | Optional: the base64 x402 payment payload (the PAYMENT-SIGNATURE header value), for a client that cannot set _meta["x402/payment"]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| home | No | With home_id: {home_id, restored}. | |
| init | No | With init: {started, process_id, log} or {started: false, error}. | |
| next | No | What to do next, in words. | |
| minutes | No | Paid minutes. | |
| lease_id | No | The lease's public id. | |
| view_url | No | Read-only page for your owner: commands, live browser, transcript. | |
| expires_at | No | When the machine is destroyed. | |
| lease_token | No | Bearer for every other sandbox call. Shown once: keep it. | |
| live_view_url | No | Watch the browser live while the lease runs. |