Cursor Bridge – 使用您的 Cursor 订阅运行无限量的 Claude Code
Cursor Bridge – Run Unlimited Claude Code on Your Cursor Subscription

原始链接: https://github.com/hkc5/cursor-bridge

**cursor-bridge** 是一款轻量级、零配置工具,让你可以通过现有的 **Cursor 订阅**免费使用 **Claude Code CLI**。 通常情况下,使用 Claude Code 需要额外购买 Anthropic API 额度。`cursor-bridge` 通过将请求路由至 Cursor 后端(其中已包含订阅内的“Auto”模型)绕过了这一限制。 **主要优势:** * **零配置:** 无需管理代理、环境变量或后台守护进程。它是一个单一的、静态编译的 Rust 二进制文件(约 780 KB)。 * **无缝集成:** 它会自动处理身份验证(通过 macOS 钥匙串或 Linux 环境变量)、启动 Claude CLI,并在终端会话结束时自动清理。 * **高效:** 与需要手动设置和持续运行后台进程的 Node.js 代理不同,`cursor-bridge` 随命令的启动而生,随命令的结束而灭,避免了端口冲突和进程冗余。 **要求:** * 拥有有效的 Cursor 订阅,且 `agent` CLI 已完成身份验证。 * 已在 PATH 中安装 `claude` CLI。 只需运行 `cursor-bridge` 即可开启交互式会话。这是一个即用即走的方案,让 Cursor 用户能够免费使用 Claude Code 的代理功能。

一款名为“Cursor Bridge”的新工具近日在 Hacker News 上引起关注,它允许用户通过现有的 Cursor 订阅使用 Claude Code。该工具充当了一个轻量级中间件,使用户能够绕过额外的 Anthropic API 费用,从而利用 Cursor 的“无限”访问权限来运行 Claude Code,且无需额外配置。 该项目引发了关于“无限”订阅模式可持续性的争论。批评者认为,这种激进的“价值榨取”行为——将无限访问权限视为绕过服务商限制的漏洞——不可避免地会导致公司取消此类优惠,或强制实施更严格的使用限制。虽然一些用户欣赏 Cursor 带来的便利和卓越的客户端体验,但另一些人则警告称,此类变通方法可能会迫使服务商为了遏制滥用而放弃慷慨的定价结构,从而损害整个社区的利益。
相关文章

原文

One binary. Claude Code on Cursor's backend. Zero config.

You have a Cursor subscription. You want to use Claude Code (the CLI). Cursor's Auto model is included with your subscription — free, unlimited, no extra per-token cost.

Without cursor-bridge, you'd pay separately for Anthropic API credits or a Claude Pro plan. With cursor-bridge, you just run cursor-bridge and it works — Claude Code runs on your Cursor backend.

Use cases:

  • You're already paying for Cursor → get Claude Code for free on top
  • You want Claude Code's agent capabilities (file editing, shell commands, tool use) without Anthropic billing
  • Cursor's Auto model is free and unlimited with subscription — Claude Code becomes effectively free to run
cursor-bridge                         # interactive session
cursor-bridge "refactor this file"    # one-shot prompt
cursor-bridge -p "list files"         # pipe mode

That's it. No proxy management. No env vars. Everything automatic.

cursor-bridge (Rust binary)
  ├── 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
  ├── Proxy translates Anthropic API calls → Cursor agent CLI
  └── Cleans up on exit

You don't see the proxy. You don't manage it. It's there and gone.

# Prerequisites
# - Cursor installed with `agent` CLI authenticated (`agent login`)
# - Claude Code installed (`curl -O https://claude-code.anthropic.com/claude && chmod +x claude`)

cargo install cursor-bridge

# Then just use it
cursor-bridge

Or download a binary from Releases.

  • macOS or Linux
  • Cursor subscription (with agent CLI in PATH)
  • Claude Code CLI (claude in PATH)
  • macOS: token auto-read from keychain
  • Linux: set CURSOR_TOKEN env var (no keychain fallback)

How it differs from other proxies

All other solutions are background servers you manage. cursor-bridge is a command you run.

Existing proxies (cursor-api-proxy, cursor-composer-in-claude, cursor-proxy) are Node.js servers that live in your process list, occupy a port, and need manual env var wiring. They don't ship with Claude Code — they sit between you and it, adding ceremony.

cursor-bridge is the opposite. There is nothing to start, stop, or configure. It is the session:

The old way cursor-bridge
Start a proxy daemon, note the port, set env vars, then run claude Run cursor-bridge — done
Background process that outlives your session Lives and dies with your terminal
Pick a port, pray it doesn't clash Random port, zero conflicts
npm install + npx + Node.js runtime (60+ MB) One Rust binary, ~780 KB, statically compiled
Multiple npm packages, peer deps, version mismatches cargo install or download. One binary. Nothing else.

No daemon. No npm install. No env vars. No port hunting. No cleanup. Just a single binary that works.

cursor-bridge replaces claude entirely — it manages the proxy lifecycle internally, spawns the CLI, and cleans up after itself when you're done.

  • Linux: requires CURSOR_TOKEN env var (no keychain support).
  • No workspace sandboxing — the agent runs in your current directory.
  • Single account — no multi-account rotation (yet).

This project is not affiliated with Anthropic or Cursor/Anysphere. Use at your own risk.

MIT

联系我们 contact @ memedata.com