GodD6366/dsh-sub2api
Connect a 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 global vision/image tools.
Connects a sub2api gateway to DeepSeek Harness as model providers: four routes (sub2api-openai / -claude / -grok / -gemini), each with its own key, served by the harness's pi-ai adapter. One-click model discovery, reasoning-effort passthrough with per-model levels from models.dev, usage lookup (quota/balance/rate limits/subscription windows), and standards-based config in the llm-sub2api: settings section with keys in the credential store.
Install
dsh plugin --profile web add @godd6366/dsh-sub2apinpm package @godd6366/dsh-sub2api 0.1.4 (registry-verified 2026-08-28): dsh plugin --profile web add @godd6366/dsh-sub2api, or from the repo dsh plugin --profile web add .. Configure Settings → Sub2API Models: baseURL (e.g. http://localhost:8080) plus per-provider keys through the credentials service (web Models page, or SUB2API_OPENAI_API_KEY=… exports). A route activates only when its platform has a key.
Compatibility
DeepSeek Harness. Requires a sub2api gateway (turns subscription quota into OpenAI-compatible endpoints). Providers served by the harness's own pi-ai adapter.
Details
- Repo: GodD6366/dsh-sub2api
- Category: Models & Providers
- Stars: 2
- Version: npm @godd6366/dsh-sub2api 0.1.4 (registry-verified 2026-08-28)
- Last push: 2026-08-15
- First seen: 2026-08-15
Recent updates
sub2api gateway → 4 provider routes; model discovery; reasoning-effort passthrough; usage lookup; credentials-store keys.
FAQ
- What is sub2api?
- An AI API gateway that turns subscription quota into OpenAI-compatible endpoints; each API key is bound to a group that decides the platform (OpenAI/Claude/Grok/Gemini).
- How many routes does it create?
- Four provider routes — sub2api-openai, sub2api-claude, sub2api-grok, sub2api-gemini — each registered as a live LLM provider once its key is set.
- Where do keys live?
- In the harness credential store (the web Models page writes them, or export SUB2API_*_API_KEY); a route activates only when its platform has a key.
Alternatives
suntianc/dsh-codex-auth · Player-MINEPIG/dsh-llm-codex-oauth · ziyou979/dsh-llm-oauth