Private coding agent (obscurify-code)
obscurify-code is an open-source (GPL-3.0) coding agent built on pi that keeps your machine, local paths, and credentials out of model prompts. You can install it as an extension inside an existing pi setup or run the standalone obscurify-code launcher with an isolated config directory (~/.obscurify-code/agent).
Every part that inspects payloads or checks enclaves runs on your machine (github.com/Obscurify-ai/obscurify-code). Model calls go either to standard Obscurify.ai routes, through the local unlinkable-inference voucher proxy, or end-to-end encrypted inside attested Intel TDX hardware enclaves.
Install and choose package vs launcher
Requires Node 20.19 or later (cargo install unlinkable-inference-cli for unlinkable sessions, bwrap / bubblewrap on Linux for the shell jail):
# Option A: install inside your existing pi setup
pi install git:github.com/Obscurify-ai/obscurify-code
# Option B: standalone launcher with isolated ~/.obscurify-code/agent state
npm install -g github:Obscurify-ai/obscurify-code
obscurify-code
Need a no-email account key (sk-obs1_...)? Run npx -y @obscurify/cli signup on your device and pass it with OBSCURIFY_API_KEY or /login, or fund from inside the agent with /fund 20 xmr.
- Using the standalone launcher is best when privacy defaults must apply before any extension loads: it keeps a separate config directory, disables
pi’s install telemetry and version checks via environment variables, and defaults new sessions to the localunlinkableproxy route. - Using the
pipackage modifies everypisession you run by withholding personal skills and out-of-repoAGENTS.mdfiles and jailing shell commands offline by default (/privacy share-context onand/sandbox net onrelax those per session). If yourmodels.jsonalready definesobscurify, the extension preserves it; add<tee id>:encryptedentries pointing athttps://tee.obscurify.invalid/v1to route encrypted models through the extension.
How the fail-closed privacy screen works
Before any payload leaves your machine, obscurify-code rewrites sensitive identifiers in tool output, file reads, bash results, messages, and system prompts, then reverses the mapping locally before edits or bash commands execute:
| Local machine value | Sent to the model |
|---|---|
| Project root directory | /obscured/project |
| Home directory | /obscured/home |
| OS username and hostname | obscured-user and obscured-host |
Git user.name and user.email | Obscured User and obscured-user@example.invalid |
.env values, secret env vars, known token formats (sk-, sk_live_, ghp_, github_pat_, AWS, Slack, JWTs, PEM keys, Obscurify vouchers, git remote URLs) | OBSC_SECRET_<12 hex> |
- Two inspection hooks: Rewriting runs both in
pi’s payload hook and on processfetch(catching background calls such as compaction summaries). - Cache-friendly and unlinkable: The same secret keeps a deterministic placeholder within one session so provider prompt caches stay warm, then rotates across sessions.
- Header stripping: Runtime OS, CPU, and Node headers are removed; only
User-Agent: obscurify-codeis sent. - Fail closed: If the privacy screen fails to initialize, model calls abort rather than sending unredacted text. Generic system names (
root,node,runner) and genuine repo conventions (WORKDIR /workspace) stay intact.
Pick a privacy route
One provider supports three distinct threat models:
| Route | How you enable it | What Obscurify.ai and the model host can see |
|---|---|---|
Standard API (https://obscurify.ai/v1) | Set OBSCURIFY_API_KEY (default if no proxy running) | Account id and redacted prompt text reach Obscurify.ai; upstream sees redacted prompt only (ZDR-tagged models follow zero-retention policies) |
Unlinkable sessions (127.0.0.1:8899) | Start unlinkable-inference-cli (default on launcher) | Session pays with blind-signed vouchers and fresh per-chat secret; Obscurify.ai cannot tie chats to your account; excludes frontier/uncensored pass-gated models when not supported on route |
Encrypted TEE (<model>:encrypted) | Pick a tee/* model (:encrypted suffix) | Requires your API key (not combinable with unlinkable vouchers); prompts, replies, and randomized <tool_call_...> tool calls stay E2EE inside attested Intel TDX enclaves; receipts logged to tee-audit.jsonl without content |
Read the End-to-End Encrypted AI Chat guide and unlinkable coding agents tutorial for the underlying protocols.
Shell sandbox, Tor, and /fund commands
- Bubblewrap shell jail (
/sandbox): Active by default on Linux whenbwrapis installed. Shell commands mount the OS read-only, the project read-write, and only toolchain/package directories (mise,cargo,rustup,bun,nvm,pyenv,go,npm) from home while withholding~/.ssh, GPG/session sockets, Docker socket, and secret env vars. Loopback and network access stay off by default (/sandbox net onenables network when needed). - Tor onion routing (
/tor onor--tor): Routes model inference, attestation checks, receipts, and funding requests strictly over127.0.0.1:9050(Tor SOCKS) to Obscurify.ai’s.onionaddress (18898for unlinkable-over-Tor with anunlinkable-inferencebuild supporting SOCKS). Model shell commands run offline while Tor is active. - Private
/fundorders: Run/fund 20 xmr(orbtc,lightning,eth,usdc,usdt) to generate a voucher order with a QR code, mint blinded RFC 9474 vouchers once confirmed, and auto-deposit them after a random5to60minute delay./fund statusand/fund redeemmanage pending deposits using the shared@obscurify/cliwallet file. - Inspecting traffic: Run
/privacyto verify active route, encryption state, and redacted token counts, and/wire [n]or/wire saveto inspect the exact HTTP requests leaving the process.
Honest limits to keep in mind
- Heuristic secret detection: Pattern matching catches known token prefixes,
.enventries, andAPI_KEY=...assignments, not arbitrary unlabeled secrets inside free prose. Check/wirebefore sending sensitive files. - Prompt meaning stays visible on non-TEE routes: Even with masked paths and secrets, natural-language descriptions of unreleased code remain readable to non-TEE upstream providers. Pick
:encryptedIntel TDX models when plaintext confidentiality against the server host matters. - Live agent execution checks: Because the privacy screen translates placeholders back locally before running shell commands, the model can still exfiltrate values if you approve arbitrary outbound commands (
--sandboxnetwork stays off by default for this reason). - Models unlocked per tier: General coding and
OrcaCybermodels work on any funded balance; uncensored tool-calling builds (such asz-ai/glm-5.3-flash-uncensoredanddeepseek/deepseek-v4.1-flash-1017-uncensored:thinking) require Pro, Dev, or Max plan. Compare models in the uncensored coding AI guide.
Private coding agent questions
How is obscurify-code different from stock Claude Code, Codex CLI, or OpenCode?
Stock terminal agents send your real project paths, local username, git config, and raw .env values if read into context, and require an account tied to an email or IDE login. obscurify-code masks paths, git identity, and known credential formats on both payload hooks and HTTP fetch, jails shell commands offline with bwrap, supports Tor onion routing, and works with attested Intel TDX encrypted models using an anonymous 20-character account code.
Can obscurify-code use my existing pi skills and extensions?
Yes. All normal pi TUI features, /tree branching, compaction, prompt templates, themes, and third-party pi extensions work unchanged. By default, personal ~/.agents/skills and out-of-repo AGENTS.md files are withheld to protect host privacy unless you run /privacy share-context on or set OBSCURIFY_SHARE_CONTEXT=1.
Why can’t Encrypted TEE models run through the unlinkable proxy at the same time?
Encrypted :encrypted models (tee/*) verify an Intel TDX enclave quote and require an authenticated account API key (sk-obs1_...) rather than unlinkable session vouchers. Use the unlinkable proxy when detaching sessions from your account matters most, or choose :encrypted with Tor (/tor on) when prompt confidentiality from Obscurify.ai’s server and network ingress matters most.
Are tool calls supported in Encrypted TEE mode?
Yes. obscurify-code serializes tool schemas inside the sealed system prompt and parses randomized <tool_call_...> tags from the encrypted response stream before returning <tool_result> blocks, preventing literal <tool_call> echoes in source files from triggering false tool calls. Images are disabled in Encrypted Mode (text-only).
Can I disable the privacy screen or sandbox for one command?
Use /sandbox off, /sandbox net on, or OBSCURIFY_CODE_PRIVACY_SCREEN=0 when debugging an edge case; the footer updates immediately (NO SANDBOX or PRIVACY SCREEN OFF) so you can see the weakened state. Always keep /sandbox enabled when testing untrusted repositories.
Which plan works best for obscurify-code?
Pay As You Go ($0 monthly fee) works for standard models, tee/* open models, and orca/orcacyber-minimax-m3.1-flash via /fund Monero or crypto blind vouchers. Heavy daily loops or uncensored tool-calling models run on Pro, Dev, or Max plan (check pricing and the pi coding agent tutorial).
Last updated 2026-12-06. Plan prices and model lists on this page are read live from the site.
Create a 20-character account code with no email or phone and copy your API key for OpenAI and Anthropic clients, or start in free guest chat.
Get an API key, no email Agent & API pricing