GodD6366/dsh-sub2api

GodD6366★ 0TypeScript最后同步: 2026-08-15

在 GitHub 打开

Connect your sub2api gateway to DeepSeek Harness: OpenAI-compatible multi-provider routes (OpenAI / Claude / Grok / Gemini) behind one base URL, with per-key model discovery, usage lookup, and a settings page.

README 摘要

dsh-sub2api 中文文档 Connect your sub2api gateway to DeepSeek Harness as model providers. Sub2API is an AI API gateway that turns subscription quota into OpenAI-compatible endpoints. In its model, each API key is bound to a group, and the group decides the platform (OpenAI / Claude / Grok / Gemini) and the models that key can serve. The four provider routes ( sub2api-openai , sub2api-claude , sub2api-grok , sub2api-gemini ) are served by the harness's own pi-ai adapter ( dsh-llm-pi-ai ): this plugin translates its llm-sub2api: settings into llm-pi-ai: provider profiles (all sharing one bare-host base URL, no /v1 ), and protocol serialization, streaming, and usage accounting all live in pi-ai. The same gateway serves OpenAI, Claude, Grok, and Gemini models side by side, and the harness routes each request to the key whose group owns the requested model. Features - One base URL, four provider routes : sub2api-openai , sub2api-claude , sub2api-grok , sub2api-gemini — each configured with its own key, registered as a live LLM provider the moment the key is set. - Streaming chat (backed by pi-ai) : SSE streaming, tool calls, reasoning deltas, and token usage are mapped to the harness protoc…

在 GitHub 查看完整 README →
工具/开发dsh-plugin

分类