Prerequisites
- Node.js 22 or newer (
node --versionto check). Install from nodejs.org if needed. - An AI client that can register MCP servers. The examples below use Claude Code; the wiring step adapts cleanly to Cursor, Windsurf, and other MCP-capable clients.
- macOS or Linux. Windows support is on the roadmap.
1. Install the connector
- npm
- pip
-g flag installs the jdcodec binary globally so it’s available on your PATH. Without it, the binary lands inside a local node_modules/.bin/ and won’t be found by your shell or your AI client.Both paths land on the same connector binary. Pick whichever fits your project’s existing tooling — they’re equivalent at runtime.
2. Get an API key
Provisioning is currently manual during early access — expect your key within ~24 hours of registration. You can complete Step 4 (wire MCP into your client) ahead of the key arriving, but the connector will not start without it, so the
jdcodec MCP server will appear inactive in your AI client until you finish Step 3.3. Configure the API key
Your API key is two parts joined by a dot:api_key_id— everything before the dot (jdck_9f3a2b7c8d1e4f05in the example above). Always starts withjdck_. This half is public — safe to log, paste in dashboards, and quote in support tickets. We use it to look up your key.api_key_secret— everything after the dot (BASE32URL_SECRETin the example above). This half is secret — never log it, never share it, never commit it to a repo. We only ever store its hash, never the value.
~/.jdcodec/config.json:
jdcodec directly from the same shell where you set it), an environment variable also works:
4. Wire it to your AI client
JD Codec exposes two MCP servers that you’ll typically register together:jdcodec(required) — the local stdio connector you just installed. Routes your agent’s browser-snapshot calls through JD Codec.jdcodec-docs(optional) — an HTTP MCP server athttps://jdcodec.com/docs/mcp. Lets your agent answer questions like “how does pass-through work?” by querying the live docs instead of its training data.
jdcodec setup <client>, which wires both servers into your AI client. The four supported clients are listed below; pick yours.
- Claude Code
- Cursor
- Windsurf
- VS Code (Copilot)
claude mcp add ... for both servers. Equivalent manual commands if you’d rather copy-paste:jdcodec and jdcodec-docs MCP servers appear in your tools list.Also covers the Claude VS Code extension. Both the Claude Code CLI (terminal) and Anthropic’s Claude VS Code extension read MCP servers from ~/.claude.json, so this same command wires both. If you’re using Claude inside VS Code, pick this tab — not the “VS Code (Copilot)” tab below.jdcodec setup claude-vscode is an alias of jdcodec setup claude-code — same command, same flow, different name for users who think of themselves as “running Claude in VS Code.” Use whichever feels natural.--no-docs to skip it — the connector works fully without it.
How to know it worked
After restarting your AI client, ask it to list its available tools (or check the MCP tools panel in your client UI). You should see browser-automation tools appear — names likebrowser_snapshot, browser_click, browser_type, etc. Those tools are now flowing through JD Codec.
If you don’t see them, your client probably hasn’t picked up the new MCP server. Quit and restart it; if that doesn’t work, run jdcodec doctor to diagnose, or jump to the Troubleshooting section below.
5. Run a task and watch compression land
Ask your agent to do anything browser-shaped:Open the Hacker News front page and tell me the top story.Behind the scenes, your agent’s
browser_snapshot calls now route through JD Codec. Every snapshot is redacted on your machine, compressed in the cloud, and the smaller representation is what your agent reads.
What just happened?
- Your first snapshot is a keyframe — the full DOM/ARIA state.
- Every subsequent snapshot is a delta — just the references and values that changed.
- PII never leaves your machine. The Privacy Shield ran on every snapshot before the cloud saw it.
- Pass-through kicks in automatically on snapshots where compression wouldn’t help (large table dumps, full-text scans).
Troubleshooting
The most common failures and what to check, in rough order of frequency.| Symptom | Likely cause | Fix |
|---|---|---|
command not found: jdcodec after install | npm global bin not on PATH, or nvm version switch lost the global | Use npx jdcodec as an immediate workaround. To fix permanently: check node --version returns 22+, confirm npm config get prefix gives a path whose bin/ is in $PATH, and re-run npm install -g jdcodec. Don’t use sudo npm install -g. If the prefix isn’t writable, follow npm’s official guide for fixing global install permissions. |
jdcodec start opens the browser but nothing happens after | The session_id never reaches the server; usually a network or DNS issue | Check connectivity to jdcodec.com. Try again; the connector retries gracefully. |
| Agent runs but no compression visible | API key not configured, or pasted as jdck_id only without the secret half | Verify your key has the jdck_id.secret shape (two parts joined by a dot). Re-export JDC_API_KEY and restart your agent. |
| MCP tools don’t appear in your AI client | Client didn’t pick up the new MCP server | Quit the client fully and restart. Some clients require a full app quit, not just a window close. |
~/.jdcodec/machine-id doesn’t exist after jdcodec start | Read-only home directory, or the connector exited before persisting | Confirm your home directory is writable. The Machine ID still works in-process, but won’t survive across restarts until the file persists. |
Errors mention privacy_shield_missing | Edge case — the connector’s Privacy Shield audit signal isn’t reaching the cloud | This is a connector bug. Email [email protected] with the request_id from the error and we’ll investigate. |
jdcodec doctor to check Node version, npx availability, your config file, your API key shape, and a live cloud-auth probe in one pass. Each failure links to the relevant docs.
Next steps
Sessions, tasks, steps
The unit framing the API uses — and what each one means for your usage.
Privacy posture
What’s redacted, what’s persisted, what the cloud never sees.
API Reference
The full surface — endpoints, schemas, error codes.
Get help
Stuck? Reply to your waitlist email or reach out at [email protected].