Client guides
Exact steps and commands per client. Every configuration can also be written or previewed with npx -y @maskera/mcp install <client>.
Let your agent set up Maskera
Claude Desktop (local proxy)
Start the proxy first and leave it running. Choose Help -> Troubleshooting -> Enable Developer Mode, then Developer -> Configure Third-Party Inference. Select third-party inference with Static API key, set base URL http://127.0.0.1:8787 (without /v1), enter your Anthropic API key, and change the auth scheme to x-api-key (Anthropic rejects the default Bearer scheme). Click Apply Changes, then Save & Restart.
- Requests are billed to your Anthropic API key rather than a Claude plan.
- While the proxy is stopped, Desktop fails instead of sending unmasked text.
- To switch back, pick the Anthropic sign-in option on the sign-in screen.
npx -y @maskera/mcp proxy --root /path/to/your/filesClaude Code (proxy or MCP)
With the proxy, every prompt and tool output is masked automatically. For local files over MCP, connect either to the warm Streamable HTTP /mcp endpoint or directly over stdio.
# Proxy (masks full chat + tool outputs)npx -y @maskera/mcp proxy --root .ANTHROPIC_BASE_URL=http://127.0.0.1:8787 claude# Or warm Streamable HTTP MCP blocking raw PII exportclaude mcp add --transport http maskera 'http://127.0.0.1:8787/mcp?no_raw_restore=1'# Or standalone stdio MCPclaude mcp add maskera -- npx -y @maskera/mcp --root . --no-raw-restoreCodex (API key or ChatGPT account)
With an OpenAI API key, Codex routes straight through the local proxy. If you sign in with a ChatGPT account, Codex requires HTTPS for its base URL, so use the MCP server instead.
# With OpenAI API key (proxy)npx -y @maskera/mcp proxy --root .OPENAI_BASE_URL=http://127.0.0.1:8787/v1 codex# Signed in with ChatGPT account (MCP stdio)codex mcp add maskera -- npx -y @maskera/mcp --root . --no-raw-restore# Or connect to an already running proxy over Streamable HTTPcodex mcp add maskera --url 'http://127.0.0.1:8787/mcp?no_raw_restore=1'Cursor
Run the installer inside your project folder to merge the Maskera entry into .cursor/mcp.json without touching your other servers.
# Write .cursor/mcp.json automatically (stdio)npx -y @maskera/mcp install cursor --root . --no-raw-restore# Or connect to a running warm proxy (/mcp)npx -y @maskera/mcp install cursor --transport http --no-raw-restoreOpenCode and T3 Code
Both OpenCode (opencode.json under mcp.servers) and T3 Code support stdio and Streamable HTTP through the same installer.
# OpenCode (merges into opencode.json)npx -y @maskera/mcp install opencode --root . --no-raw-restore# T3 Code (prints ready-to-paste JSON)npx -y @maskera/mcp install t3-code --root . --no-raw-restoreTest with made-up data
# Run automated diagnosticsnpx -y @maskera/mcp doctor --root .# Open local live inspector and approvals viewopen http://127.0.0.1:8787/_maskera