---
title: "DS2API Lets Developers Run DeepSeek Behind Any AI SDK"
subtitle: "A Go middleware that wraps DeepSeek's web chat as OpenAI, Claude and Gemini compatible APIs, with account pooling and tool calling built in."
url: "https://alphasignal.ai/news/ds2api-lets-developers-run-deepseek-behind-any-ai-sdk"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-04-28T14:17:02.000Z"
updated: "2026-08-22T14:17:28.508Z"
type: "Repo"
topics:
  - "Infra"
  - "Open Source"
subtopics:
  - "Model Serving"
  - "Inference Optimization"
  - "Monitoring"
upvotes: 73
source_url: "https://github.com/CJackHwang/ds2api"
comments: 0
truncated: true
---

# DS2API Lets Developers Run DeepSeek Behind Any AI SDK

> A Go middleware that wraps DeepSeek's web chat as OpenAI, Claude and Gemini compatible APIs, with account pooling and tool calling built in.

An open source project called [DS2API](https://github.com/CJackHwang/ds2api) has been quietly picking up traction, crossing 4.8k stars and 1.6k forks before its maintainer flipped it to read-only. The pitch is simple: wrap DeepSeek's web chat interface in the API contracts your tooling already speaks, and let you point Codex, Claude Code, or the OpenAI SDK at it without changing a line of client code.

The repo has since been [archived](https://github.com/CJackHwang/ds2api) by its owner, but the code remains available under AGPL-3.0, and the architecture is worth a look if you build against multiple LLM protocols.

## One backend, three API dialects

DS2API converts DeepSeek Web chat capability into OpenAI, Claude and Gemini compatible APIs. The backend is pure Go with no Python runtime, and a React admin panel is served under `/admin`. Whichever SDK your codebase already uses can talk to DeepSeek by changing only the base URL and API key.

Coverage across the three protocol families is fairly complete:

* **OpenAI**: `/v1/chat/completions`, `/v1/responses`, `/v1/embeddings`, `/v1/files`, plus model listing endpoints
* **Claude**: `/anthropic/v1/messages` and `count_tokens`, with shortcut paths at `/v1/messages` and `/messages`
* **Gemini**: `generateContent` and `streamGenerateContent` under `/v1beta/models/{model}:*`
* **Ollama**: `/api/version`, `/api/tags`, `/api/show` for tools that assume a local Ollama server

The compatibility matrix explicitly lists Codex CLI/SDK with both chat and responses wire APIs, OpenAI SDK, Vercel AI SDK, Anthropic SDK, Google Gemini SDK, and LangChain / LlamaIndex / OpenWebUI as verified integrations.

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [CJackHwang/ds2api](https://github.com/CJackHwang/ds2api)
- [DS2API Architecture Documentation](https://github.com/CJackHwang/ds2api/blob/main/docs/ARCHITECTURE.md)
- [DS2API API Reference](https://github.com/CJackHwang/ds2api/blob/main/API.md)
- [DS2API Deploy Guide](https://github.com/CJackHwang/ds2api/blob/main/docs/DEPLOY.md)
