Install — Claude Code, Cursor, or Windsurf
Install — Claude Code, Cursor, or Windsurf
Section titled “Install — Claude Code, Cursor, or Windsurf”Run the Worthless proxy locally, then point your editor’s SDK at it.
[!NOTE] Worthless includes both an HTTP proxy and an MCP server. Your editor talks to AI providers through the proxy via
BASE_URL. The MCP server (worthless mcp) exposes lock, scan, status, and spend tools for agent-driven workflows (Claude Code, Cursor, Windsurf).
Prerequisites
Section titled “Prerequisites”git clone https://github.com/shacharm2/worthless && cd worthlessuv pip install -e .worthless lock # protect your .env keysClaude Code
Section titled “Claude Code”Option A — use wrap (recommended):
worthless wrap claude # starts proxy, injects BASE_URL, launches Claude CodeOption B — run the proxy separately:
worthless up -d # start proxy in background on port 8787export OPENAI_BASE_URL=http://localhost:8787export ANTHROPIC_BASE_URL=http://localhost:8787claude # SDK calls route through the proxyCursor
Section titled “Cursor”Start the proxy, then configure Cursor’s environment:
worthless up -dIn Cursor settings, add:
OPENAI_BASE_URL=http://localhost:8787Or use worthless wrap cursor if Cursor supports being launched from the command line.
Windsurf
Section titled “Windsurf”Start the proxy, then configure Windsurf’s environment:
worthless up -dIn Windsurf settings, add:
OPENAI_BASE_URL=http://localhost:8787How it works
Section titled “How it works”worthless locksplits your API key and replaces.envwith shard-A (format-preserving, looks like a real key)worthless up(orwrap) starts a local HTTP proxy on port 8787- Your editor’s SDK calls hit
localhost:8787instead of the provider directly - The proxy reconstructs the real key in memory, makes the upstream call, and zeros the key
Your editor works identically. Your key is never stored in plaintext.
[!NOTE] Planned: Cloud proxy. A hosted proxy that eliminates the need to run locally is planned. See the roadmap for timeline.