HeadlinesBriefing favicon HeadlinesBriefing.com

cursor-bridge: Run Claude Code Free on Cursor Subscription

Hacker News •
×

cursor-bridge is a single Rust binary (~780 KB) that lets you run Claude Code on your Cursor subscription backend — zero config, no daemon, no extra API costs. Since Cursor's Auto model is free and unlimited with your subscription, cursor-bridge makes Claude Code's agent capabilities (file editing, shell commands, tool use) effectively free.

How it works: cursor-bridge starts a local HTTP proxy on a random port, reads your Cursor auth token from macOS keychain (or `CURSOR_TOKEN` env var on Linux), spawns `claude` with env vars pointing at the proxy, translates Anthropic API calls to Cursor's agent CLI, and cleans up on exit. You just run `cursor-bridge` — interactive, one-shot, or pipe mode.

Install via `cargo install cursor-bridge` (requires Cursor with authenticated `agent` CLI and Claude Code CLI in PATH). On macOS tokens auto-read from keychain; Linux needs `CURSOR_TOKEN` env var.

Unlike other proxies (cursor-api-proxy, cursor-composer-in-claude) that are persistent Node.js servers requiring manual port/env var management, cursor-bridge is a command that lives and dies with your terminal — no npm, no background processes, no port conflicts, no cleanup.