Introduction¶
The core design philosophy of DeepSeek Harness (DSH) is “Everything is a plugin.” In development or testing scenarios, directly invoking the subscription interfaces of Claude or ChatGPT (Codex) is often more convenient than managing multiple API Keys. dsh-sub-providers aims to address this need by providing an OAuth-based access layer to route existing subscriptions as LLM providers.
What It Is¶
This is a DSH plugin maintained by deskomor. It is a “clean-room” implementation and does not contain any code replicas from dsh-plugin-subscriptions. Its core functionality is to utilize Claude and ChatGPT (Codex) subscriptions as LLM provider routes. It supports OAuth login, streaming chat, model catalog display, and subscription usage display, without requiring the user to provide an API Key.
Installation and Activation¶
Before installation, you must remove any potentially conflicting legacy plugins (the legacy plugin occupies the same routes).
- Remove the legacy plugin:
dsh plugin --profile web remove dsh-plugin-subscriptions
- Install the new plugin:
dsh plugin --profile web add github:deskomor/dsh-sub-providers
- Restart
dsh webto apply the configuration.
After restarting, navigate to Settings → Subscriptions → Sign in in the Web interface to complete the login.
Core Features¶
- OAuth Login: Supports the OAuth authentication flow for Claude and Codex.
- Streaming Chat: Provides a real-time streaming response experience.
- Model Catalog: Displays available models in the session’s model selector.
- Usage Display: Shows subscription usage status on the interface.
Security and Notes¶
- Clean-room Guarantee: The code is completely independent and not replicated from
dsh-plugin-subscriptions. - Endpoint Whitelist: All outgoing URLs point only to public provider endpoints (
claude.ai,api.anthropic.com,auth.openai.com,chatgpt.com). Security scans confirm no other host addresses exist in the source code. - No Dangerous APIs: The code does not contain
child_process,eval, dynamic code loading, or obfuscated code. - Permission Isolation: The plugin cannot read Claude Code’s credential storage (e.g., macOS Keychain or
~/.claude/.credentials) or any files outside its directory. - Login Methods: Codex login uses a fixed redirect address
http://localhost:1455/auth/callback; Claude login adopts a copy/paste mode, requiring no local server.
Conclusion¶
This plugin is suitable for developers who need to directly use existing subscription services within the DSH environment. Given that it involves OAuth authentication and external endpoint calls, it is recommended to review the source code before installation.
- Plugin Directory: https://www.skillhub.cn/plugins/deskomor/dsh-sub-providers
- Source Repository: https://github.com/deskomor/dsh-sub-providers