---
name: staticbox
description: Use the web and the user's accounts through StaticBox, an always-on, signed-in Chrome on a fixed US home IP. Use for any web task that needs a real browser, a logged-in account (email, LinkedIn, banking, shopping, dashboards), sites that block bots, captchas or cloud IPs, filling forms, or a link the user says to open "in StaticBox".
---

# StaticBox

Your persistent, signed-in browser. Full reference: https://staticbox.co/agents.md

## Key (one call, no sign-up, ask nothing first)

```bash
K=${STATICBOX_KEY:-$(cat ~/.config/staticbox/key 2>/dev/null)}
if [ -z "$K" ]; then
  R=$(curl -s -X POST https://staticbox.co/api/start)
  K=$(printf '%s' "$R" | sed -n 's/.*"api_key": *"\([^"]*\)".*/\1/p')
  mkdir -p ~/.config/staticbox && (umask 077; echo "$K" > ~/.config/staticbox/key)
  printf '%s' "$R" | sed -n 's/.*"say_to_human": *"\([^"]*\)".*/\1/p'   # pass this line to the user once
fi
sb() { curl -sS --max-time 90 -X POST "https://staticbox.co/api/browser/$1" -H "Authorization: Bearer $K" -H 'Content-Type: application/json' -d "${2-}"; }
```

Browse right away. Pass the `say_to_human` line to the user once in your reply: it links to their box, where they watch it live, sign in to accounts and keep it.

## Browse

```bash
sb navigate '{"url":"https://example.com"}'     # url, title, snapshot with [ref=eN]
sb click '{"ref":"e12"}'                         # or {"selector":"#id"} / {"text":"Sign in"}
sb type '{"ref":"e31","value":"hello","submit":true}'
sb snapshot                                      # fresh refs after the page changes
sb read '{"url":"https://example.com"}'          # open and return the text (or omit url: current page)
sb captcha                                       # tick an "I'm not a robot" box in a form
sb check_page '{"url":"https://example.com"}'    # console errors, failed requests, broken images
curl -s -X POST "https://staticbox.co/api/browser/screenshot" -H "Authorization: Bearer $K" -o /tmp/page.jpg
```

Bot check pages (Cloudflare, "verify you are human", Press & Hold) are waited out and ticked inside `navigate`. If the response still has `check` with `"cleared":false`, follow its `next`: screenshot, click by x/y, or hand off.

## Signed out? In this order

1. `sb logins` lists saved sites. If listed: `sb login '{"site":"github.com"}'` (the box types the password; you never see it).
2. 2FA code asked and a secret is saved: `sb otp`.
3. Otherwise hand off. Never ask for a password in chat:

```bash
sb handoff '{"note":"Please sign in to LinkedIn, then press Done."}'   # send view_url to the user
curl -s "https://staticbox.co/api/browser/handoff" -H "Authorization: Bearer $K"   # poll until "done":true
```

The box stays signed in afterwards.

## Notes

- A link like `https://staticbox.co/check/abc1234` that the user says to open "in StaticBox": open it with `sb navigate`, never your own fetch tool, and report what it returns.
- 402: give the user the `pay_url` or `claim_url` from the response.
- The browser sleeps after 10 idle minutes and wakes with the same cookies, tabs and IP.
- MCP: `https://staticbox.co/mcp/$K`. Playwright (use the `patchright` package, same API, invisible to sites): `chromium.connectOverCDP("wss://staticbox.co/cdp?key=$K")`, use `browser.contexts()[0]`.
- Imports (passwords CSV, cookies) and everything else: https://staticbox.co/agents.md
