dwgx/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。
What it solves
This project solves the problem of using Windsurf/Devin's cloud AI models (like Claude, GPT, Gemini, etc.) with standard client tools that expect OpenAI, Anthropic, or Gemini APIs. Instead of being locked into Windsurf's proprietary interface, users can point any existing SDK or agent (like Claude Code, Cline, Cursor) at this gateway and get access to 100+ models.
How it works
WindsurfAPI is a self-hosted Node.js HTTP service (port 3003) that listens for requests in OpenAI, Anthropic, and Gemini formats. It translates these requests into the internal gRPC protocol that Windsurf's Language Server binary understands, then forwards them to the Windsurf cloud. It maintains an account pool (you bring your own Windsurf/Devin accounts) for load balancing, failover, and rate-limit isolation. Before returning the response, it strips the upstream Windsurf identity so the model claims to be the underlying model (e.g., "Claude Opus 4.6"). The gateway also supports stateful Responses API with server-side session storage.
Who it's for
Developers and teams who already have Windsurf/Devin subscriptions and want to plug those models into their existing tooling—like using Claude Code, Cursor, or any OpenAI/Anthropic/Gemini SDK—without writing custom adapters. It's also for those who want a self-hosted, account-managed proxy with failover and isolation.
Highlights
- Zero npm runtime dependencies, pure Node.js.
- Exposes four API surfaces: OpenAI Chat/Completions, OpenAI Responses, Anthropic Messages, and Gemini.
- Account pool with rotation, rate-limit isolation, and automatic failover.
- Identifies as the underlying model (removes Windsurf branding).
- Supports streaming (SSE) and non-streaming for multiple protocols.
- Includes a dashboard for account management and health monitoring.
- Docker deployment and one-click update scripts.
Related
- Project
- Project
- Project
- Project
- Project