ds2api

Deepseek to API: A lightweight, high-performance full-stack middleware converting client protocols to universal APIs. Supports multi-account rotation, compiled binaries, Vercel Serverless, and Docker. Compatible with Google, Claude, and OpenAI API formats.

21 articles 1.6k View on GitHub ↗
21 articles
How the WebUI Admin Console Interacts with the Go Backend in DS2API

Discover how the DS2API WebUI admin console communicates with its Go backend through REST endpoints. Learn about Vite proxy and static file serving for seamless interaction.

how-to-guide
Apr 26, 2026
DS2API Deployment Methods: 7 Supported Ways to Run Your API Server

Discover 7 DS2API deployment methods including standalone binaries Docker containers serverless options like Vercel and Zeabur plus systemd services. Easily run your API server.

how-to-guide
Apr 26, 2026
How DS2API Handles Request Abortion and Uniform Error Contracts

Discover how DS2API handles request abortion with its lease-based lifecycle and enforces uniform error contracts using a four-field JSON schema for OpenAI and Gemini endpoints.

internals
Apr 26, 2026
DS2API Health Check Endpoints: Liveness and Readiness Probes Explained

Discover DS2API health check endpoints. Learn how /healthz and /readyz probes ensure your service is operational with JSON status payloads.

deep-dive
Apr 26, 2026
How DS2API Handles Gemini API Compatibility with Function Declarations

DS2API ensures Gemini API compatibility with function declarations by normalizing them into OpenAI tools. Learn how this process preserves schema integrity for seamless integration.

internals
Apr 26, 2026
DS2API /v1/chat/completions vs /v1/responses: Key Differences Explained

Understand the key differences between DS2API /v1/chat/completions and /v1/responses. Learn how /v1/responses offers structured payloads and retrieval API for advanced chat applications.

deep-dive
Apr 26, 2026
How DS2API Uses the X-Ds2-Target-Account Header for Account Pinning

Learn how the DS2API X-Ds2-Target-Account header lets clients select specific managed accounts, bypassing default assignments for precise control. Understand account pinning.

internals
Apr 26, 2026
How to Use the Dev Capture Feature in DS2API for Debugging

Learn to use DS2API dev capture for debugging. Enable capture, wrap responses, and inspect requests/responses via the admin endpoint for efficient troubleshooting.

how-to-guide
Apr 26, 2026
DS2API CORS Configuration: Custom Cross-Origin Middleware Implementation in Go-Chi

Explore DS2API CORS configuration in Go-Chi. Discover custom middleware that echoes Origin, validates headers, and secures internal tokens for enhanced cross-origin control.

how-to-guide
Apr 26, 2026
How DS2API Implements Account Pool Rotation with Token Refresh

Learn how DS2API implements account pool rotation with a round-robin queue and automatically refreshes tokens using time-based checks. Discover efficient token management for your API.

how-to-guide
Apr 26, 2026
What Is PromptCompat in DS2API and How Does It Work?

DS2API PromptCompat converts OpenAI chat requests to plain text prompts for LLMs. Learn how it normalizes messages injects tools and formats for any backend.

deep-dive
Apr 26, 2026
How DS2API Handles Server-Side Chat History Storage: Implementation Guide

Learn how DS2API handles server-side chat history storage with atomic JSON writes, configurable retention, and RESTful admin endpoints for resilient, real-time data management.

how-to-guide
Apr 26, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →