Skip to content

一款高性能 HTTP1.1和HTTP2.0 NodeJS代理服务器,专为支持 Cursor IDE 的 Composer 使用 DeepSeek 的语言模型而设计。此代理将 OpenAI 兼容 API 请求转换为 DeepSeek API 格式,让 Cursor 的 Composer 和其他 OpenAI API 兼容工具能够无缝地与 DeepSeek 的模型配合使用。

License

Notifications You must be signed in to change notification settings

dubeno/cursor-deepseek-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

inspired by https://github.com/danilofalcao/cursor-deepseek This is a nodejs version

install node js v18.17.0

https://nodejs.org/en/download

set npm mirror for quick install

npm config set registry https://registry.npmmirror.com

init project

npm init -y

install dependency

npm install dotenv http2

#set deepseek api in .env DEEPSEEK_API_KEY=sk-xx*************(yours)

start proxy server on 9001

node deepseek-proxy.js

#test curl http://localhost:9001/v1/models

use this one to get a public url for your local server, or cursor may complain with error。

https://www.cpolar.com/

cursor model setting set openai base url and model use gpt-4o:

-- baseurl: http://xxxx.cpolar.top -- apikey:your deepseek apikey

About

一款高性能 HTTP1.1和HTTP2.0 NodeJS代理服务器,专为支持 Cursor IDE 的 Composer 使用 DeepSeek 的语言模型而设计。此代理将 OpenAI 兼容 API 请求转换为 DeepSeek API 格式,让 Cursor 的 Composer 和其他 OpenAI API 兼容工具能够无缝地与 DeepSeek 的模型配合使用。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published