A high-performance HTTP/2-enabled proxy server designed specifically to enable Cursor IDE's Composer to use DeepSeek's and OpenRouter's language models. This proxy translates OpenAI-compatible API requests to DeepSeek/OpenRouter API format, allowing Cursor's Composer and other OpenAI API-compatible tools to seamlessly work with these models.
danilofalcao/cursor-deepseek 排名第 15,554,有 647 个星标。
同类别比较
danilofalcao/cursor-deepseek 排名第 15,554,此处有 8 个同类条目;DaveBben/esp32-llm 排名第 15,578。
同类别比较| 名称 | 排名 | 指标 |
|---|
| BlackSamorez/tensor_parallel | 15,463 | - 语言:
- Python
- 星标数:
- 652
- 分叉数:
- 42
- 简介:
- Automatically split your PyTorch models on multiple GPUs for training & inference
|
|---|
| SforAiDl/KD_Lib | 15,483 | - 语言:
- Python
- 星标数:
- 651
- 分叉数:
- 60
- 简介:
- A Pytorch Knowledge Distillation library for benchmarking and extending works in the domains of Knowledge Distillation, Pruning, and Quantization.
|
|---|
| ParisNeo/lollms_hub | 15,520 | - 语言:
- Python
- 星标数:
- 649
- 分叉数:
- 102
- 简介:
- A proxy server for multiple ollama instances with Key security
|
|---|
| mlcommons/ck | 15,527 | - 语言:
- Python
- 星标数:
- 649
- 分叉数:
- 122
- 简介:
- Collective Knowledge (CK), Collective Mind (CM/CMX) and MLPerf automations: community-driven projects to learn how to run AI, ML, and other emerging workloads more efficiently and cost-effectively across diverse models, datasets, software, and hardware using MLPerf methodology and benchmarks.
|
|---|
| DaveBben/esp32-llm | 15,578 | - 语言:
- C
- 星标数:
- 645
- 分叉数:
- 82
- 简介:
- Running a LLM on the ESP32
|
|---|
| WW-AI-Lab/openclaw-office | 15,580 | - 语言:
- TypeScript
- 星标数:
- 645
- 分叉数:
- 115
|
|---|
| princeton-nlp/LLM-Shearing | 15,622 | - 语言:
- Python
- 星标数:
- 643
- 分叉数:
- 59
- 简介:
- [ICLR 2024] Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning
|
|---|
| apache/casbin-gateway | 15,630 | - 语言:
- Go
- 星标数:
- 642
- 分叉数:
- 71
- 简介:
- See what every AI coding agent on your machine is doing, and whether the API behind it is the one you paid for. Claude Code, Codex, Cursor, Gemini CLI and more: one endpoint for 44 model vendors, A–F API authenticity grading, per-agent permissions, usage and prompt records.
|
|---|
关键参数与规格
关键参数与规格| 参数 | 值 |
|---|
| 语言 | Go |
|---|
| 类别 | Infrastructure |
|---|
| 子类别 | Gateway |
|---|
| 星标数 | 647 |
|---|
| 分叉数 | 51 |
|---|
| 贡献者 | 6 |
|---|
| 创建日期 | 2025-01-21 |
|---|
| 更新日期 | 2026-10-14 |
|---|
| 1 天星标数 | 0 |
|---|
| 7 天星标数 | 1 |
|---|
| 排名 | 15,554 |
|---|
| 上次排名 | 15,362 |
|---|
| 排名变化 | -192 |
|---|
| 7 天星标排名 | 11,056 |
|---|
| 上次 7 天星标排名 | 11,123 |
|---|
| 7 天星标排名变化 | 67 |
|---|
| 总星标排名 | 15,827 |
|---|
| 上次总星标排名 | 15,798 |
|---|
| 总星标排名变化 | -29 |
|---|
| 国家 | Brazil |
|---|
README 摘录
DeepSeek API Proxy A high-performance HTTP/2-enabled proxy server designed specifically to enable Cursor IDE's Composer to use DeepSeek's, OpenRouter's and Ollama's language models. This proxy translates OpenAI-compatible API requests to DeepSeek/OpenRouter/Ollama API format, allowing Cursor's Composer and other OpenAI API-compatible tools to seamlessly work with these models. Primary Use Case This proxy was created to enable Cursor IDE users to leverage DeepSeek's, OpenRouter's and Ollama's powerful language models through Cursor's Composer interface as
an alternative to OpenAI's models. By running this proxy locally, you can configure Cursor's Composer to use these models for AI assistance, code generation, and other AI features. It handles all the necessary request/response translations and format conversions to make the integration seamless. Features HTTP/2 support for improved performance Full CORS support Streaming responses Support for function calling/tools Automatic message format conversion Compression support (Brotli, Gzip, Deflate) Compatible with OpenAI API client libraries API key validation for
secure access Docker container support with multi-variant builds Prerequisites Cursor Pro Subscription Go 1. 19 or higher DeepSeek or OpenRouter API key Ollama server running locally (optional, for Ollama support) Public Endpoint Installation 1. Install dependencies: Docker Installation The proxy supports both DeepSeek and OpenRouter variants. Choose the appropriate build command for your needs: 1. Build the Docker image: For DeepSeek (default): For OpenRouter: For Ollama: 2. Configure environment variables: Copy the example configuration: Edit and add your API
key (either DeepSeek or OpenRouter) 3. Run the container: Configuration The repository includes an file showing the required environment variables. Edit and add your API key: Note: Only configure ONE of the API keys based on which variant you're using. Start the proxy server: The server will start on port 9000 by default. Use the proxy with your OpenAI API clients by setting the base URL to Exposing the Endpoint Publicly You can expose your local proxy server to the
internet using ngrok or similar services. This is useful when you need to access the proxy from external applications or different networks. Start your proxy server locally (it will run on port 9000) 3. ngrok will provide you with a public URL (e. Use this URL as your OpenAI API base URL in Cursor's settings: Alternative Methods You can also use other services to expose your endpoint: 1. **Cloudflare Tunnel**: Install cloudflared Run: 2. **LocalTunnel**: Install: Run: Remember to always
secure your endpoint appropriately when exposing it to the internet. Supported Endpoints - Chat completions endpoint - Models listing endpoint Model Mapping maps to DeepSeek's GPT-4o equivalent model for DeepSeek's native chat model for OpenRouter's DeepSeek model Dependencies - Brotli compression support - Environment variable management - HTTP/2 support Security The proxy includes CORS headers for cross-origin requests API keys are required and validated against environment variables Secure handling of request/response data Strict API key validation for all requests HTTPS support
through HTTP/2 Environment variables are never committed to the repository License This project is licensed under the GNU General
常见问题
记录了多少星标和分叉?
danilofalcao/cursor-deepseek 有 647 个星标和 51 个分叉。
仓库排名是多少?
danilofalcao/cursor-deepseek 排名第 15,554。
记录的语言和类别是什么?
danilofalcao/cursor-deepseek 有 647 个星标,语言为 Go,类别为 Infrastructure。
哪个仓库排名最接近?
danilofalcao/cursor-deepseek 与 DaveBben/esp32-llm 比较,后者排名第 15,578,有 645 个星标。
DeepSeek API Proxy
A high-performance HTTP/2-enabled proxy server designed specifically to enable Cursor IDE's Composer to use DeepSeek's, OpenRouter's and Ollama's language models. This proxy translates OpenAI-compatible API requests to DeepSeek/OpenRouter/Ollama API format, allowing Cursor's Composer and other OpenAI API-compatible tools to seamlessly work with these models.
Primary Use Case
This proxy was created to enable Cursor IDE users to leverage DeepSeek's, OpenRouter's and Ollama's powerful language models through Cursor's Composer interface as an alternative to OpenAI's models. By running this proxy locally, you can configure Cursor's Composer to use these models for AI assistance, code generation, and other AI features. It handles all the necessary request/response translations and format conversions to make the integration seamless.
Features
- HTTP/2 support for improved performance
- Full CORS support
- Streaming responses
- Support for function calling/tools
- Automatic message format conversion
- Compression support (Brotli, Gzip, Deflate)
- Compatible with OpenAI API client libraries
- API key validation for secure access
- Docker container support with multi-variant builds
Prerequisites
- Cursor Pro Subscription
- Go 1.19 or higher
- DeepSeek or OpenRouter API key
- Ollama server running locally (optional, for Ollama support)
- Public Endpoint
Installation
- Clone the repository
- Install dependencies:
go mod download
Docker Installation
The proxy supports both DeepSeek and OpenRouter variants. Choose the appropriate build command for your needs:
-
Build the Docker image:
docker build -t cursor-deepseek .
docker build -t cursor-openrouter --build-arg PROXY_VARIANT=openrouter .
docker build -t cursor-ollama --build-arg PROXY_VARIANT=ollama .
-
Configure environment variables:
- Copy the example configuration:
cp .env.example .env
- Edit
.env and add your API key (either DeepSeek or OpenRouter)
-
Run the container:
docker run -p 9000:9000 --env-file .env cursor-deepseek
# OR for OpenRouter
docker run -p 9000:9000 --env-file .env cursor-openrouter
# OR for Ollama
docker run -p 9000:9000 --env-file .env cursor-ollama
Configuration
The repository includes an .env.example file showing the required environment variables. To configure:
- Copy the example configuration:
cp .env.example .env
- Edit
.env and add your API key:
# For DeepSeek
DEEPSEEK_API_KEY=your_deepseek_api_key_here
# OR for OpenRouter
OPENROUTER_API_KEY=your_openrouter_api_key_here
# OR for Ollama
OLLAMA_API_KEY=your_ollama_api_key_here
Note: Only configure ONE of the API keys based on which variant you're using.
Usage
- Start the proxy server:
go run proxy.go
# OR you can specify a model:
go run proxy.go -model coder
# OR
go run proxy.go -model chat
# OR for OpenRouter
go run proxy-openrouter.go
# OR for Ollama
go run proxy-ollama.go
The server will start on port 9000 by default.
- Use the proxy with your OpenAI API clients by setting the base URL to
http://your-public-endpoint:9000/v1
Exposing the Endpoint Publicly
You can expose your local proxy server to the internet using ngrok or similar services. This is useful when you need to access the proxy from external applications or different networks.
Using ngrok
-
Install ngrok from https://ngrok.com/download
-
Start your proxy server locally (it will run on port 9000)
-
In a new terminal, run ngrok:
ngrok http 9000
-
ngrok will provide you with a public URL (e.g., https://your-unique-id.ngrok.io)
-
Use this URL as your OpenAI API base URL in Cursor's settings:
https://your-unique-id.ngrok.io/v1
Alternative Methods
You can also use other services to expose your endpoint:
-
Cloudflare Tunnel:
- Install cloudflared
- Run:
cloudflared tunnel --url http://localhost:9000
-
LocalTunnel:
- Install:
npm install -g localtunnel
- Run:
lt --port 9000
Remember to always secure your endpoint appropriately when exposing it to the internet.
Supported Endpoints
/v1/chat/completions - Chat completions endpoint
/v1/models - Models listing endpoint
Model Mapping
gpt-4o maps to DeepSeek's GPT-4o equivalent model
deepseek-chat for DeepSeek's native chat model
deepseek/deepseek-chat for OpenRouter's DeepSeek model
Dependencies
github.com/andybalholm/brotli - Brotli compression support
github.com/joho/godotenv - Environment variable management
golang.org/x/net - HTTP/2 support
Security
- The proxy includes CORS headers for cross-origin requests
- API keys are required and validated against environment variables
- Secure handling of request/response data
- Strict API key validation for all requests
- HTTPS support through HTTP/2
- Environment variables are never committed to the repository
License
This project is licensed under the GNU General Public License v2.0 (GPLv2). See the LICENSE.md file for details.