# Client guides

> Step-by-step setup for AI clients such as Claude Code, Codex, and Cursor, with a made-up Swedish data verification test.
>
> Canonical: https://maskera.dev/en/docs/clients (en) · sv: https://maskera.dev/docs/klienter · Markdown: https://maskera.dev/en/docs/clients.md · Overview for agents: https://maskera.dev/llms.txt

Exact steps and commands per client. Every configuration can also be written or previewed with npx -y @maskera/mcp install <client>.

[Overview](https://maskera.dev/en/docs) · [@maskera/mcp](https://maskera.dev/en/docs/mcp) · [Client guides](https://maskera.dev/en/docs/clients) · [SDK & operations](https://maskera.dev/en/docs/sdk) · [Troubleshooting](https://maskera.dev/en/docs/troubleshooting)

Let your agent set up Maskera

[Open llms.txt](https://maskera.dev/llms.txt)

You know it worked when

Type a made-up address such as provnamn.maskera@example.com. The inspector at [http://127.0.0.1:8787/\_maskera](http://127.0.0.1:8787/_maskera) should show `[EPOST_1]` in what was sent.

## 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](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.

Terminal

```
npx -y @maskera/mcp proxy --root /path/to/your/files
```

## Claude 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.

Terminal

```
# 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 export
claude mcp add --transport http maskera 'http://127.0.0.1:8787/mcp?no_raw_restore=1'

# Or standalone stdio MCP
claude mcp add maskera -- npx -y @maskera/mcp --root . --no-raw-restore
```

## Codex (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.

Terminal

```
# 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 HTTP
codex 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.

Terminal

```
# 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-restore
```

## OpenCode and T3 Code

Both OpenCode (opencode.json under mcp.servers) and T3 Code support stdio and Streamable HTTP through the same installer.

Terminal

```
# 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-restore
```

## Test with made-up data

Terminal

```
# Run automated diagnostics
npx -y @maskera/mcp doctor --root .

# Open local live inspector and approvals view
open http://127.0.0.1:8787/_maskera
```

## Read next

- [Overview →Pick a mode and check that masking works.](https://maskera.dev/en/docs)
- [@maskera/mcp →Proxy, MCP server and hook for AI agents.](https://maskera.dev/en/docs/mcp)
- [SDK & operations →Masking in your own TypeScript and JavaScript code.](https://maskera.dev/en/docs/sdk)
- [Troubleshooting →Common issues and what local masking does not cover.](https://maskera.dev/en/docs/troubleshooting)

- [Agent setup prompt (setup-prompt.md)](https://maskera.dev/setup-prompt.md)
- [Machine-readable index (llms.txt)](https://maskera.dev/llms.txt)
- [@maskera/mcp on npm](https://www.npmjs.com/package/@maskera/mcp)
- [maskera on npm](https://www.npmjs.com/package/maskera)
- [Source code on GitHub](https://github.com/joelhagvall/maskera)
- [Model on Hugging Face](https://huggingface.co/joelhagvall/maskera-sv-ner)

Product

- [Products](https://maskera.dev/en/services)
- [Documentation](https://maskera.dev/en/docs)
- [Industries](https://maskera.dev/en/industries)
- [Accuracy](https://maskera.dev/en/accuracy)
- [Customer portal](https://app.maskera.dev/en/login?utm_source=maskera_dev&utm_medium=referral&utm_content=footer_portal)

Trust

- [Security](https://maskera.dev/en/security)
- [Privacy & transparency](https://maskera.dev/en/privacy)
- [FAQ](https://maskera.dev/en/faq)
- [Privacy policy](https://maskera.dev/en/privacy-policy)
- [Test data](https://maskera.dev/en/test-data)

Project

- [Open source](https://github.com/joelhagvall/maskera)
- [Custom-trained Swedish AI model](https://huggingface.co/joelhagvall/maskera-sv-ner)
- [White paper (PDF)](https://maskera.dev/whitepaper.pdf)
- [About & contact](https://maskera.dev/en/about)

A product of [Hägvall Labs AB](https://hagvall-labs.com).
