xylocopa
A to-do list that runs your Claude Code agents — capture anywhere, dispatch in parallel, review from your phone.
Stealth headless browser for AI agents — bypass Cloudflare, bot detection, and anti-scraping. Drop-in Puppeteer/Playwri…
Anti-detection browser server for AI agents, powered by Camoufox
Standing on the mighty shoulders of Camoufox - a Firefox fork with fingerprint spoofing at the C++ level.
Built by the team behind jo, a personal AI agent that runs half on your Mac, half on a dedicated cloud machine just for you -- with zero maintenance needed. Available on macOS, Telegram, WhatsApp, and email. Try the beta free ->
git clone https://github.com/jo-inc/camofox-browser && cd camofox-browser npm install && npm start # -> http://localhost:9377
AI agents need to browse the real web. Playwright gets blocked. Headless Chrome gets fingerprinted. Stealth plugins become the fingerprint.
Camoufox patches Firefox at the C++ implementation level - navigator.hardwareConcurrency, WebGL renderers, AudioContext, screen geometry, WebRTC - all spoofed before JavaScript ever sees them. No shims, no wrappers, no tells.
This project wraps that engine in a REST API built for agents: accessibility snapshots instead of bloated HTML, stable element refs for clicking, and search macros for common sites.
e1, e2, e3 identifiers for reliable interaction@google_search, @youtube_search, @amazon_search, @reddit_subreddit, and 10 more<img> src/alt and optionally return inline data URLs/openapi.json and interactive docs at /docsPOST /tabs/:tabId/extract with a JSON Schema that maps properties to snapshot refs via x-refCAMOFOX_CRASH_REPORT_ENABLED=false.| Dependency | Purpose | Install |
|---|---|---|
| yt-dlp | YouTube transcript extraction (fast path) | pip install yt-dlp or brew install yt-dlp |
The Docker image includes yt-dlp. For local dev, install it for the /youtube/transcript endpoint. Without it, the endpoint falls back to a slower browser-based method.
openclaw plugins install @askjo/camofox-browser
Tools: camofox_create_tab | camofox_snapshot | camofox_click | camofox_type | camofox_navigate | camofox_scroll | camofox_screenshot | camofox_close_tab | camofox_list_tabs | camofox_import_cookies
Run from npm:
npx @askjo/camofox-browser
Or from source:
git clone https://github.com/jo-inc/camofox-browser cd camofox-browser npm install npm start # downloads Camoufox on first run (~300MB)
Default port is 9377. See Environment Variables for all options.
Note: the postinstall script unsets
PLAYWRIGHT_SKIP_BROWSER_DOWNLOADfor itself before fetching the Camoufox binary. Without that override, an exportedPLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1(common when Playwright is configured to use system Chrome) would silently skip the binary download and crash the server at runtime.External Camoufox executable: set
CAMOUFOX_EXECUTABLE=/path/to/camoufox-binbeforenpm installand when starting the server to skip the bundled download and launch that executable. Compatibility aliases areCAMOUFOX_EXECUTABLE_PATHandCAMOFOX_EXECUTABLE_PATH. This is useful for NixOS paths such as/nix/store/.../camoufox-bin; the executable must come from a Camoufox bundle that includesproperties.json,version.json, andfontconfig/.Air-gapped or custom binary management: prefer
CAMOUFOX_EXECUTABLEwhen you already have a Camoufox bundle. Otherwise disable the auto-fetch withnpm install --ignore-scripts(skips lifecycle scripts for every dependency -- bluntest option) or, more surgically,npm install --omit=optionalplus a manualnpx camoufox-js fetchstep against your mirror. Note thatPLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm installno longer skips the Camoufox download (the postinstall sanitizes the env locally); use--ignore-scriptsorCAMOUFOX_EXECUTABLEfor that.
The included Makefile auto-detects your CPU architecture and pre-downloads Camoufox + yt-dlp binaries outside the Docker build, so rebuilds are fast (~30s vs ~3min).
# Build and start (auto-detects arch: aarch64 on M1/M2, x86_64 on Intel) make up # Stop and remove the container make down # Force a clean rebuild (e.g. after upgrading VERSION/RELEASE) make reset # Just download binaries (without building) make fetch # Override arch or version explicitly make up ARCH=x86_64 make up VERSION=135.0.1 RELEASE=beta.24
On Windows, make is not available. Use the included build.ps1 PowerShell script instead:
# Build and start .\build.ps1 up # Stop and remove the container .\build.ps1 down # Build image only .\build.ps1 build # Force a clean rebuild .\build.ps1 reset # Download binaries only (without building) .\build.ps1 fetch # Override architecture .\build.ps1 up -Arch x86_64 .\build.ps1 up -Arch aarch64
Note: PowerShell 7+ (
pwsh) is recommended butpowershell.exe(Windows PowerShell 5.1) also works. The script requires Docker Desktop for Windows with the WSL2 backend.Line endings: This project includes a
.gitattributesfile that forces Unix (LF) line endings for.shfiles. If you've already cloned the repo and getsh: not foundorset: Illegal option -errors duringdocker build, run:Get-ChildItem -Recurse *.sh | ForEach-Object { (Get-Content $_) -join "`n" + "`n" | Set-Content $_ -NoNewline }This converts shell scripts to LF line endings. Future clones will handle this automatically thanks to
.gitattributes.
WARNING: Do not run
docker builddirectly. The Dockerfile uses bind mounts to pull pre-downloaded binaries fromdist/. Always usemake up(ormake fetchthenmake build) -- it downloads the binaries first.
For Fly.io or other remote CI, you'll need a Dockerfile that downloads binaries at build time instead of using bind mounts.
A railway.toml is included. It uses Dockerfile.ci (which downloads binaries at build time) and maps Railway's PORT env var to CAMOFOX_PORT automatically.
# Install Railway CLI, then: railway link railway up
Set secrets via the Railway dashboard or CLI:
railway variables set CAMOFOX_API_KEY="your-generated-key"
Import cookies from your browser into Camoufox to skip interactive login on sites like LinkedIn, Amazon, etc.
1. Generate a secret key:
# macOS / Linux openssl rand -hex 32
2. Set the environment variable before starting OpenClaw:
export CAMOFOX_API_KEY="your-generated-key" openclaw start
The same key is used by both the plugin (to authenticate requests) and the server (to verify them). Both run from the same environment -- set it once.
Why an env var? The key is a secret. Plugin config in
openclaw.jsonis stored in plaintext, so secrets don't belong there. SetCAMOFOX_API_KEYin your shell profile, systemd unit, Docker env, or Fly.io secrets.
Cookie import is disabled by default. If
CAMOFOX_API_KEYis not set, the server rejects all cookie requests with 403.
3. Export cookies from your browser:
Install a browser extension that exports Netscape-format cookie files (e.g., "cookies.txt" for Chrome/Firefox). Export the cookies for the site you want to authenticate.
4. Place the cookie file:
mkdir -p ~/.camofox/cookies cp ~/Downloads/linkedin_cookies.txt ~/.camofox/cookies/linkedin.txt
The default directory is ~/.camofox/cookies/. Override with CAMOFOX_COOKIES_DIR.
5. Ask your agent to import them:
Import my LinkedIn cookies from linkedin.txt
The agent calls camofox_import_cookies -> reads the file -> POSTs to the server with the Bearer token -> cookies are injected into the browser session. Subsequent camofox_create_tab calls to linkedin.com will be authenticated.
~/.camofox/cookies/linkedin.txt (Netscape format, on disk)
|
v
camofox_import_cookies tool (parses file, filters by domain)
|
v POST /sessions/:userId/cookies
| Authorization: Bearer <CAMOFOX_API_KEY>
| Body: { cookies: [Playwright cookie objects] }
v
camofox server (validates, sanitizes, injects)
|
v context.addCookies(...)
|
Camoufox browser session (authenticated browsing)
cookiesPath is resolved relative to the cookies directory -- path traversal outside it is blockedBy default, camofox persists each user's cookies and localStorage to ~/.camofox/profiles/. Sessions survive browser restarts -- log in once (via cookies or VNC), and subsequent sessions restore the authenticated state automatically.
~/.camofox/
|-- cookies/ # Bootstrap cookie files (Netscape format)
\-- profiles/ # Persisted session state (auto-managed)
\-- <hashed-userId>/
\-- storage_state.json
Override the directory with CAMOFOX_PROFILE_DIR or set "profileDir" in the persistence plugin config. To disable persistence, set "persistence": { "enabled": false } in camofox.config.json.
By default, storage state contains cookies and localStorage only. To also persist IndexedDB, set "indexedDB": true in the persistence plugin config. This captures all serializable IndexedDB records—not only authentication data—and may make snapshots significantly larger and checkpoints slower.
Capture a Playwright trace of every action in a session: page screenshots, DOM snapshots, network requests, and console output. Output is a single .zip file you can open in Playwright's built-in Trace Viewer.
Opt-in per session by passing trace: true when opening the first tab:
curl -X POST http://localhost:9377/tabs \
-H 'Content-Type: application/json' \
-d '{"userId":"agent1","sessionKey":"task1","url":"https://example.com","trace":true}'
The trace is written when the session closes. Close the session to flush it, then list, fetch, and view:
# Close the session to flush the trace
curl -X DELETE http://localhost:9377/sessions/agent1
# List trace files
curl http://localhost:9377/sessions/agent1/traces
# {"traces":[{"filename":"trace-2026-04-18T04-05-00-...zip","sizeBytes":42810,"createdAt":...}]}
# Download (Content-Type: application/zip)
curl http://localhost:9377/sessions/agent1/traces/trace-2026-04-18T04-05-00-abc.zip > session.zip
# View it in Playwright's Trace Viewer
npx playwright show-trace session.zip
# Delete
curl -X DELETE http://localhost:9377/sessions/agent1/traces/trace-2026-04-18T04-05-00-abc.zip
Why traces instead of video: Camoufox is Firefox-based, and Playwright's recordVideo is Chromium-only. Traces work on Firefox and give you more than video (network + DOM + console + screenshots).
Tracing cannot be toggled on an existing session. DELETE /sessions/:userId first if you need to change the flag.
Storage defaults to ~/.camofox/traces/<hashed-userId>/ and is swept on server startup:
CAMOFOX_TRACES_DIR - base directory (default: ~/.camofox/traces)CAMOFOX_TRACES_MAX_BYTES - max size per trace, removed at next startup if exceeded (default: 50MB)CAMOFOX_TRACES_TTL_HOURS - traces older than this are removed at next startup (default: 24)curl -X POST http://localhost:9377/sessions/agent1/cookies \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_CAMOFOX_API_KEY' \
-d '{"cookies":[{"name":"foo","value":"bar","domain":"example.com","path":"/","expires":-1,"httpOnly":false,"secure":false}]}'
docker run -p 9377:9377 \ -e CAMOFOX_API_KEY="your-generated-key" \ -v ~/.camofox/cookies:/home/node/.camofox/cookies:ro \ camofox-browser
For Fly.io:
fly secrets set CAMOFOX_API_KEY="your-generated-key"
For Railway:
railway variables set CAMOFOX_API_KEY="your-generated-key"
Route all browser traffic through a proxy with automatic locale, timezone, and geolocation derived from the proxy's IP address via Camoufox's built-in GeoIP.
Simple proxy (single endpoint):
export PROXY_HOST=166.88.179.132 export PROXY_PORT=46040 export PROXY_USERNAME=myuser export PROXY_PASSWORD=mypass npm start
Backconnect proxy (rotating sticky sessions):
For providers like Decodo, Bright Data, or Oxylabs that offer a single gateway endpoint with session-based sticky IPs:
export PROXY_STRATEGY=backconnect export PROXY_BACKCONNECT_HOST=gate.provider.com export PROXY_BACKCONNECT_PORT=7000 export PROXY_USERNAME=myuser export PROXY_PASSWORD=mypass npm start
Each browser context gets a unique sticky session, so different users get different IP addresses. Sessions rotate automatically on proxy errors or Google blocks.
Or in Docker:
docker run -p 9377:9377 \ -e PROXY_HOST=166.88.179.132 \ -e PROXY_PORT=46040 \ -e PROXY_USERNAME=myuser \ -e PROXY_PASSWORD=mypass \ camofox-browser
When a proxy is configured:
locale, timezone, and geolocation to match the proxy's exit IPen-US, America/Los_Angeles, San Francisco coordinatesBrowser automation fails in ways that are hard to predict -- Cloudflare challenges, site redesigns breaking selectors, redirect loops, dialog storms, renderer crashes. The scope is wide and the failure modes are diverse. Without telemetry, the only signal is "it didn't work."
Telemetry gives us structured data on which sites fail, how they fail, and how often, so we can prioritize fixes for the patterns that actually affect users. It files GitHub Issues automatically when:
Each report includes the failure type, stack trace, tab health counters (HTTP status histogram, console errors, request failures, redirect depth), and the target URL -- all anonymized.
Telemetry is sent to a lightweight Cloudflare Worker endpoint at https://camofox-telemetry.askjo.workers.dev. The endpoint holds the GitHub App credentials as environment secrets -- no secrets are shipped in this package.
lib/reporter.js (client, no secrets)
| anonymize -> POST https://camofox-telemetry.askjo.workers.dev/report
v
Cloudflare Worker (holds GitHub App key)
| validate -> rate-limit -> dedup -> create GitHub Issue
v
GitHub Issue created
The endpoint source code is in this repo at workers/crash-reporter/index.ts.
You don't have to trust us -- verify what the live endpoint is running:
# 1. Ask the endpoint what code it's running
curl https://camofox-telemetry.askjo.workers.dev/source
# -> { "commit": "abc1234", "sha256": "e3b0c44...", "source": "https://github.com/..." }
# 2. Compare the sha256 against the source in this repo
sha256sum workers/crash-reporter/index.ts
# 3. Check the commit matches what CI deployed
# https://github.com/jo-inc/camofox-browser/actions/workflows/telemetry-deploy.yml
git log --oneline workers/crash-reporter/index.ts | head -1
If the hashes don't match, the endpoint is running different code than what's in the repo. The deploy workflow (.github/workflows/telemetry-deploy.yml) injects the commit and source hash at deploy time -- every deploy is auditable in GitHub Actions.
Or skip verification entirely: CAMOFOX_CRASH_REPORT_ENABLED=false disables all telemetry, or point to your own endpoint with CAMOFOX_CRASH_REPORT_URL.
All reported data goes through paranoid anonymization (lib/reporter.js L28-290) before leaving the process:
site-a1b2c3d4) -- same hash across reports for correlation, but not reversible to the original domain. Path segments become */*/* (depth only). Query params become ?[3] (count only). No keys, values, or path content is ever included.<path>/server.js)<token><id>Duplicate issues are detected by stack signature and get a +1 comment instead of a new issue.
# Disable telemetry export CAMOFOX_CRASH_REPORT_ENABLED=false # Point to your own endpoint (see below) export CAMOFOX_CRASH_REPORT_URL=https://your-endpoint.example.com/report # Adjust rate limit (default: 10 per hour) export CAMOFOX_CRASH_REPORT_RATE_LIMIT=5
To file telemetry reports in your own GitHub repo instead of jo-inc/camofox-browser:
Create a GitHub App -- Settings -> Developer settings -> GitHub Apps -> New
.pem filegithub.com/settings/installations/{id})Deploy the endpoint -- clone this repo and deploy the worker:
cd workers/crash-reporter # Edit wrangler.toml: set account_id to your Cloudflare account ID npx wrangler deploy
The worker is a single TypeScript file with zero npm dependencies. It also runs on Deno, Bun, or any runtime with the Web Crypto API.
Set worker secrets:
cd workers/crash-reporter echo "YOUR_APP_ID" | npx wrangler secret put GH_APP_ID echo "YOUR_INSTALL_ID" | npx wrangler secret put GH_INSTALL_ID # Key must be PKCS#8 DER base64 (not raw PEM) openssl pkcs8 -topk8 -inform PEM -outform DER -nocrypt -in your-app.pem | \ base64 | tr -d '\n' | npx wrangler secret put GH_PRIVATE_KEY # File issues in your repo echo "your-org/your-repo" | npx wrangler secret put GH_REPO
Point camofox-browser to your endpoint:
export CAMOFOX_CRASH_REPORT_URL=https://your-worker.your-subdomain.workers.dev/report
Verify:
curl https://your-worker.your-subdomain.workers.dev/health
# -> {"status":"ok"}
All log output is JSON (one object per line) for easy parsing by log aggregators:
{"ts":"2026-02-11T23:45:01.234Z","level":"info","msg":"req","reqId":"a1b2c3d4","method":"POST","path":"/tabs","userId":"agent1"}
{"ts":"2026-02-11T23:45:01.567Z","level":"info","msg":"res","reqId":"a1b2c3d4","status":200,"ms":333}
Health check requests (/health) are excluded from request logging to reduce noise.
# Create a tab
curl -X POST http://localhost:9377/tabs \
-H 'Content-Type: application/json' \
-d '{"userId": "agent1", "sessionKey": "task1", "url": "https://example.com"}'
# Get accessibility snapshot with element refs
curl "http://localhost:9377/tabs/TAB_ID/snapshot?userId=agent1"
# -> { "snapshot": "[button e1] Submit [link e2] Learn more", ... }
# Click by ref
curl -X POST http://localhost:9377/tabs/TAB_ID/click \
-H 'Content-Type: application/json' \
-d '{"userId": "agent1", "ref": "e1"}'
# Type into an element
curl -X POST http://localhost:9377/tabs/TAB_ID/type \
-H 'Content-Type: application/json' \
-d '{"userId": "agent1", "ref": "e2", "text": "hello", "pressEnter": true}'
# Navigate with a search macro
curl -X POST http://localhost:9377/tabs/TAB_ID/navigate \
-H 'Content-Type: application/json' \
-d '{"userId": "agent1", "macro": "@google_search", "query": "best coffee beans"}'
| Method | Endpoint | Description |
|---|---|---|
POST |
/tabs |
Create tab with initial URL |
GET |
/tabs?userId=X |
List open tabs |
GET |
/tabs/:id/stats |
Tab stats (tool calls, visited URLs) |
DELETE |
/tabs/:id |
Close tab |
DELETE |
/tabs/group/:groupId |
Close all tabs in a group |
DELETE |
/sessions/:userId |
Close all tabs for a user |
| Method | Endpoint | Description |
|---|---|---|
GET |
/tabs/:id/snapshot |
Accessibility snapshot with element refs. Query params: includeScreenshot=true (add base64 PNG), offset=N (paginate large snapshots) |
POST |
/tabs/:id/click |
Click element by ref or CSS selector |
POST |
/tabs/:id/type |
Type text into element |
POST |
/tabs/:id/press |
Press a keyboard key |
POST |
/tabs/:id/scroll |
Scroll page (up/down/left/right) |
POST |
/tabs/:id/navigate |
Navigate to URL or search macro |
POST |
/tabs/:id/wait |
Wait for selector or timeout |
GET |
/tabs/:id/links |
Extract all links on page |
GET |
/tabs/:id/images |
List <img> elements. Query params: includeData=true (return inline data URLs), maxBytes=N, limit=N |
GET |
/tabs/:id/downloads |
List captured downloads. Query params: includeData=true (base64 file data), consume=true (clear after read), maxBytes=N |
GET |
/tabs/:id/screenshot |
Take screenshot |
POST |
/tabs/:id/back |
Go back |
POST |
/tabs/:id/forward |
Go forward |
POST |
/tabs/:id/refresh |
Refresh page |
| Method | Endpoint | Description |
|---|---|---|
POST |
/youtube/transcript |
Extract captions from a YouTube video |
curl -X POST http://localhost:9377/youtube/transcript \
-H 'Content-Type: application/json' \
-d '{"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "languages": ["en"]}'
# -> { "status": "ok", "transcript": "[00:18] [music] We're no strangers to love [music]\n...", "video_title": "...", "total_words": 548 }
Uses yt-dlp when available (fast, no browser needed). Falls back to a browser-based intercept method if yt-dlp is not installed -- this is slower and less reliable due to YouTube ad pre-rolls.
| Method | Endpoint | Description |
|---|---|---|
GET |
/health |
Health check |
POST |
/start |
Start browser engine |
POST |
/stop |
Stop browser engine |
| Method | Endpoint | Description |
|---|---|---|
POST |
/sessions/:userId/cookies |
Add cookies to a user session (Playwright cookie objects) |
GET |
/sessions/:userId/storage_state |
Export persisted browser storage (VNC plugin) |
DELETE |
/sessions/:userId/storage_state |
Reset the live session and delete its persisted browser storage (persistence plugin) |
@google_search | @youtube_search | @amazon_search | @reddit_search | @reddit_subreddit | @wikipedia_search | @twitter_search | @yelp_search | @spotify_search | @netflix_search | @linkedin_search | @instagram_search | @tiktok_search | @twitch_search
Reddit macros return JSON directly (no HTML parsing needed):
@reddit_search - search all of Reddit, returns JSON with 25 results@reddit_subreddit - browse a subreddit (e.g., query "programming" -> /r/programming.json)Browser behavior can be tuned in camofox.config.json:
{
"newPageTimeoutMs": 10000
}
newPageTimeoutMs controls how long tab creation waits for Firefox to create a page. If the context is unresponsive, Camofox replaces only that user's context and retries once. The default is 10 seconds.
| Variable | Description | Default |
|---|---|---|
CAMOFOX_PORT |
Server port | 9377 |
PORT |
Server port (fallback, for platforms like Fly.io, Railway) | 9377 |
CAMOFOX_BIND_HOST |
Optional server bind host. Set to 127.0.0.1 for loopback-only access or 0.0.0.0 for IPv4 on all interfaces. When unset, Node uses its default all-interface binding. |
- |
CAMOFOX_API_KEY |
Enable cookie import endpoint (disabled if unset) | - |
CAMOFOX_ADMIN_KEY |
Required for POST /stop |
- |
CAMOFOX_ACCESS_KEY |
If set, all routes (except /health, cookie import, and /stop) require Authorization: Bearer <key>. Lets you safely expose the server beyond loopback. |
- |
CAMOUFOX_EXECUTABLE |
External Camoufox executable to use instead of downloading/launching the bundled cache. Must point to a Camoufox bundle with sibling resources. | - |
CAMOUFOX_EXECUTABLE_PATH |
Compatibility alias for CAMOUFOX_EXECUTABLE |
- |
CAMOFOX_EXECUTABLE_PATH |
Compatibility alias for CAMOUFOX_EXECUTABLE |
- |
CAMOFOX_DISABLE_DEFAULT_ADDONS |
Set to 1/true to skip downloading and launching the default uBlock Origin (UBO) addon. Useful for deployments where the addons.mozilla.org download is unreliable or unwanted (a failed download otherwise leaves a broken addon cache that blocks startup). |
0 |
CAMOFOX_COOKIES_DIR |
Directory for cookie files | ~/.camofox/cookies |
CAMOFOX_PROFILE_DIR |
Directory for persisted session profiles | ~/.camofox/profiles |
CAMOFOX_TRACES_DIR |
Directory for session trace zips | ~/.camofox/traces |
CAMOFOX_TRACES_MAX_BYTES |
Max size per trace, removed on next startup if exceeded | 52428800 (50MB) |
CAMOFOX_TRACES_TTL_HOURS |
Traces older than this are swept on startup | 24 |
MAX_SESSIONS |
Max concurrent browser sessions | 50 |
MAX_TABS_PER_SESSION |
Max tabs per session | 10 |
SESSION_TIMEOUT_MS |
Session inactivity timeout | 1800000 (30min) |
BROWSER_IDLE_TIMEOUT_MS |
Kill browser when idle (0 = never) | 300000 (5min) |
HANDLER_TIMEOUT_MS |
Max time for any handler | 30000 (30s) |
MAX_CONCURRENT_PER_USER |
Concurrent request cap per user | 3 |
MAX_OLD_SPACE_SIZE |
Node.js V8 heap limit (MB) | 128 |
PROXY_STRATEGY |
Proxy mode: backconnect (rotating sticky sessions) or blank (single endpoint) |
- |
PROXY_PROVIDER |
Provider name for session format (e.g. decodo) |
decodo |
PROXY_HOST |
Proxy hostname or IP (simple mode) | - |
PROXY_PORT |
Proxy port (simple mode) | - |
PROXY_USERNAME |
Proxy auth username | - |
PROXY_PASSWORD |
Proxy auth password | - |
PROXY_BACKCONNECT_HOST |
Backconnect gateway hostname | - |
PROXY_BACKCONNECT_PORT |
Backconnect gateway port | 7000 |
PROXY_COUNTRY |
Target country for proxy geo-targeting | - |
PROXY_STATE |
Target state/region for proxy geo-targeting | - |
TAB_INACTIVITY_MS |
Close tabs idle longer than this | 300000 (5min) |
CAMOFOX_CRASH_REPORT_ENABLED |
Enable anonymized crash/hang telemetry (false to disable) |
true |
CAMOFOX_CRASH_REPORT_URL |
Telemetry endpoint (self-hosted endpoint) | https://camofox-telemetry.askjo.workers.dev/report |
CAMOFOX_CRASH_REPORT_REPO |
GitHub repo for telemetry issues | jo-inc/camofox-browser |
CAMOFOX_CRASH_REPORT_RATE_LIMIT |
Max telemetry reports per hour | 10 |
ENABLE_VNC |
Enable VNC plugin for interactive browser access (1) |
- |
VNC_PASSWORD |
Password for VNC access (recommended in production) | - |
NOVNC_PORT |
noVNC web UI port | 6080 |
Browser Instance (Camoufox)
\-- User Session (BrowserContext) - isolated cookies/storage
|-- Tab Group (sessionKey: "conv1")
| |-- Tab (google.com)
| \-- Tab (github.com)
\-- Tab Group (sessionKey: "conv2")
\-- Tab (amazon.com)
Sessions auto-expire after 30 minutes of inactivity. The browser itself shuts down after 5 minutes with no active sessions, and relaunches on the next request.
When a session's tab limit is reached, the oldest/least-used tab is automatically recycled instead of returning an error -- so long-running agent sessions don't hit dead ends.
This section documents the security boundaries of camofox-browser for users and automated security reviewers.
All process.env reads are centralized in lib/config.js. All child_process usage is in lib/launcher.js (server subprocess) and plugins/youtube/youtube.js (yt-dlp). The main server.js has route handlers but zero process.env reads and zero child_process imports. No single file combines environment/credential access with network sends.
Zero credentials, private keys, API tokens, or signing keys ship in this package. All secrets are provided at runtime via environment variables (CAMOFOX_API_KEY, CAMOFOX_ACCESS_KEY) or are Cloudflare Worker environment secrets (telemetry endpoint GitHub App key).
The cookie import endpoint (POST /sessions/:userId/cookies) is gated behind CAMOFOX_API_KEY. If this env var is not set, the server rejects all cookie import requests with HTTP 403. Cookie files are read from a sandboxed directory (~/.camofox/cookies/) with path traversal protection -- attempts to escape the directory are blocked. Max 500 cookies per request, 5MB file size limit.
CAMOFOX_ACCESS_KEY provides global bearer token authentication for all routes (except /health). When set, every request must include Authorization: Bearer <key>. Recommended for any deployment beyond localhost.
The Camoufox browser engine (~300MB) is downloaded at npm install time by camoufox-js, an npm package maintained by the Camoufox project. It downloads from official GitHub releases with integrity verification handled by camoufox-js. No custom download URLs, no URL shorteners, no raw IP addresses.
Anonymized crash/hang telemetry is sent to a Cloudflare Worker endpoint. The endpoint source is in this repo and auditable. Verification: GET /source on the endpoint returns the deployed commit hash and sha256 so you can compare against the repo. The reporter (lib/reporter.js L28-290) applies paranoid anonymization: private domains are HMAC-hashed (not reversible), paths are stripped, tokens/IPs/emails are redacted. No page content, cookies, or user data is ever sent. Disable with CAMOFOX_CRASH_REPORT_ENABLED=false or point to your own endpoint with CAMOFOX_CRASH_REPORT_URL.
The persistence plugin saves cookies and localStorage to ~/.camofox/profiles/<hashed-userId>/ so authenticated sessions survive browser restarts. UserIds are hashed for directory names. Disable via camofox.config.json by removing persistence from the plugins array.
Outbound connections are made to: (1) URLs the agent navigates to (core functionality), (2) the telemetry endpoint (anonymized, opt-out available). Inbound: the REST API on port 9377, bound to all interfaces by default or to CAMOFOX_BIND_HOST when configured, optionally protected by CAMOFOX_ACCESS_KEY.
Two subprocesses may be spawned: (1) the Camoufox browser engine (core functionality, lib/launcher.js), (2) yt-dlp for YouTube transcript extraction (optional, plugins/youtube/youtube.js). Both are isolated in dedicated files separate from route handlers.
npm test # all tests npm run test:e2e # e2e tests only npm run test:live # live site tests (Google, macros) npm run test:debug # with server output
npm install @askjo/camofox-browser
Sketchy people are doing sketchy things with crypto tokens named "Camofox" now that this project is getting attention. Camofox is not a crypto project and will never be one. Any token, coin, or NFT using the Camofox name has nothing to do with us.
MIT
more like this
A to-do list that runs your Claude Code agents — capture anywhere, dispatch in parallel, review from your phone.
Arduino library and MATLAB/Simulink API for the AutomationShield Arduino expansion boards for control engineering educa…
本地优先的 macOS AI Agent 信号灯:状态栏 + 桌面悬浮信号灯,自动监控 Codex / Claude Code。Local menu bar and floating desktop status lights for A…
search projects, people, and tags