Claude Code model router
WindsurfAPI
Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, Anthropic- & Gemini-compatible APIs. Zero-dependency self-hosted reverse proxy for Claude Code, Cline & Cursor. 把 Windsurf/Devin 云端 100+ 模型变成三套兼容 API。
Install
git clone https://github.com/dwgx/WindsurfAPI.gitFrom the README
WindsurfAPI · DevinAPI
JavaScript · MIT · ★3,107
docs · releases · issues
把 Windsurf / Devin 的 100+ AI 模型(Claude、GPT、Gemini、DeepSeek、Kimi、GLM、SWE…)变成 OpenAI Chat / Responses / Anthropic / Gemini 四套标准 API。零 npm 运行时依赖。
历史账本 · 把 1387 次提交、196 个版本、82 个 PR、180 个 issue(账本自己的口径,数字跟到 v3.9.34 / 2026-09-15)摊开给你看:时间线主账 + 贡献者分析 + Git 树三形态(竖/横/环)+ 自伤与返工全记录 —— 打开可视化账本(纯原生渲染,零依赖)
·
English
声明
没点 Star 和 Follow 的:严禁商业使用、转售、代部署、挂后台对外提供服务、包装成中转服务出售。
点了 Star 和 Follow 的:随便用,我睁一只眼闭一只眼。
代码本体按 MIT License 开源(见 LICENSE),上面这段是作者个人态度。
把 Windsurf(原 Codeium,现 Devin Desktop)的 AI 模型变成四套标准 API 同时兼容:
- POST /v1/chat/completions — OpenAI 兼容 任何 OpenAI SDK 直接用
- POST /v1/completions — OpenAI 旧 Completions(非流式;prompt 包成一条 user turn,流式请走 chat)
- POST /v1/responses — OpenAI Responses 兼容(另有 GET / DELETE /v1/responses/{id} 读取与删除已存响应,需带身份 header,见下)
- POST /v1/messages — Anthropic 兼容 Claude Code / Cline / Cursor 直接连
- POST /v1beta/models/* — Gemini 兼容 直接对接 Gemini SDK
100+ 模型:Claude 4.5/4.6/Opus 4.7/5 · GPT-5/5.1/5.2/5.4/5.5/5.6-Luna 全系 · Gemini 2.5/3.0/3.1 · Grok · Qwen · Kimi K2.x · GLM 4.7/5/5.1/5.2 · MiniMax · SWE 1.5/1.6/1.7/2 · Arena 等。零 npm 依赖 纯 Node.js。
关键词:Windsurf 逆向 · Devin 代理 · Claude Code 中转 · Cursor 镜像 · AI 中转 API · OpenAI 兼容接口 · 免费 Claude/GPT/Gemini · 大模型反代 · Codeium 逆向
原理 ·
5 分钟跑起来 ·
客户端接入 ·
环境开关 ·
全部文档 ·
English
项目定位与使用边界
WindsurfAPI 是一个独立的、开源的、自托管协议兼容网关,用于将部署者自己拥有或获授权使用的 Windsurf / Devin 账号能力接入 OpenAI、Anthropic 和 Gemini 兼容客户端。
使用模型
- Bring Your Own Account(BYO-account):部署者自行提供并控制自己的上游账号与凭据。
- 项目本身不提供、出售、出租、共享或打包任何 Windsurf / Devin 账号、订阅或凭据。
- 多账号能力用于同一部署者拥有或获授权管理的账号集合,例如故障切换、健康检查和限流隔离;它不是公共共享账号池。
- 本项目的目标是协议互操作、自托管客户端兼容和工程研究,不以订阅转售、跨用户账号共享、绕过上游配额或规避访问控制为目的。
-…Details
- Repository
- dwgx/WindsurfAPI
- Website
- dwgx.github.io/WindsurfAPI
- Language
- JavaScript
- License
- MIT
- Last updated
- 3 November 2026
- Topics
- anthropic-compatibleapi-gatewayclaudeclaude-codeclinecodeiumcursordeepseekdevindevin-apigeminigemini-compatible
FAQ
What is WindsurfAPI?
Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, Anthropic- & Gemini-compatible APIs. Zero-dependency self-hosted reverse proxy for Claude Code, Cline & Cursor. 把 Windsurf/Devin 云端 100+ 模型变成三套兼容 API。 It is a model router for Claude Code, from dwgx/WindsurfAPI on GitHub.
How do I install WindsurfAPI?
Clone dwgx/WindsurfAPI from GitHub and follow the setup steps in its README.
Is WindsurfAPI popular?
dwgx/WindsurfAPI has 3,122 GitHub stars and 636 forks. It was last updated on 3 November 2026.
More model routers & proxies
ccflare
1.1ksnipeship/ccflare
Load-balancing proxy for Claude Code that spreads requests across multiple accounts with a usage dashboard.
ccNexus
973lich0821/ccNexus
API gateway for Claude Code that rotates endpoints and bridges OpenAI and Gemini backends.
CC Mirror
2.3knumman-ali/cc-mirror
Create multiple isolated Claude Code variants with custom providers (Z.ai, MiniMax, OpenRouter, LiteLLM)
AntigravityManager
2.4kDraculabo/AntigravityManager
Antigravity Manager is a desktop application for managing the Google accounts used by Antigravity clients (including Classic, Antigravity IDE and agy CLI). View model quota in real time, switch client accounts seamlessly, and connect AI coding tools like Claude Code, Codex and OpenCode through a high-performance local API gateway.
Claude Code Local
3.5knicedreamzapp/claude-code-local
Hit your Claude Code usage limit or ran out of credits? Keep working on a local model. Claude Code on your own Mac (MLX), Linux or Windows (llama.cpp) with no API key and no rate limits. Your code stays home.
Agent Vault
2.5kInfisical/agent-vault
A HTTP credential proxy and vault for AI agents like Claude Code, OpenClaw, Hermes, custom agents + harnesses, and more.
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.