Discover and explore top open-source AI tools and projects—updated daily.
h88782481API proxy enabling Cursor to use third-party LLM relay stations
Top 97.0% on SourcePulse
Summary
API 2 Cursor addresses the incompatibility between Cursor's varied LLM API request formats and the standard protocols supported by third-party API gateways. It acts as a protocol bridge, enabling Cursor Pro users to leverage any LLM API via these gateways by translating request and response formats. This enhances flexibility for users seeking to integrate diverse AI models.
How It Works
The project functions as a protocol bridge, translating between Cursor's three input API formats (/v1/chat/completions, /v1/responses, /v1/messages) and various upstream backend protocols (OpenAI CC, Anthropic Messages, Responses, Gemini). Core logic resides in chat.py, responses.py, and messages.py, which adapt requests based on model mapping and upstream gateway capabilities. This architecture ensures seamless communication regardless of the specific API format used by Cursor or the gateway.
Quick Start & Requirements
pip install -r requirements.txt, copy and edit the .env.example file with gateway details, then run python start.py.docker compose up -d after configuring .env.requirements.txt dependencies..env file (PROXY_TARGET_URL, PROXY_API_KEY, PROXY_PORT). Model mapping and custom endpoints are configurable via the admin panel at http://localhost:3029/admin.http://localhost:3029 and using the ACCESS_API_KEY.Highlighted Details
tools format, reasoningContent, <think> tags, function_call to tool_calls conversion, missing tool_calls fields, smart quotes, file_path to path mapping, and finish_reason adjustments.off, simple, verbose) controllable via environment variables or the admin panel, with detailed conversation logging.Maintenance & Community
No specific details regarding maintainers, community channels (e.g., Discord, Slack), or project roadmap were found in the provided README content.
Licensing & Compatibility
Limitations & Caveats
The project requires an external third-party API gateway to function. Setup involves configuring environment variables and potentially adjusting Cursor's model settings. No explicit mention of alpha status, known bugs, or unsupported platforms was present in the README.
3 days ago
Inactive
philschmid