Khellendros97/dsh-subscription-auth

Khellendros97★ 4JavaScript最后同步: 2026-08-15

在 GitHub 打开

dsh对接openai、grok、anthropic、kimi订阅渠道

README 摘要

dsh-subscription-auth 给 dsh 增加 订阅会员 OAuth 登录 支持(模型提供商按订阅账号登录,而不是 API key)。内置四个订阅渠道: 渠道 登录方式 推理 API ChatGPT 订阅(Plus/Pro) 授权码 + PKCE + localhost 回调 codex Responses API Claude(Pro/Max) 授权码 + PKCE + localhost 回调 Anthropic Messages API Grok(SuperGrok / X Premium+) RFC 8628 设备授权流 xAI Responses API Kimi(Kimi Code) RFC 8628 设备授权流 Kimi Anthropic Messages API 每个渠道是一个自包含模块( src/channels/ .ts ,实现 ChannelDefinition 契约), src/index.ts 是薄的通用驱动(遍历渠道定义注册 settings / provider / adapter / 路由)。OAuth 常量与 wire 格式以 omp( @oh-my-pi/pi-ai 、 @oh-my-pi/pi-catalog )源码为准。对接方法见内置 skill: subscription-channel-migration 。 渠道详情 环节 ChatGPT Claude Grok Kimi 授权端点 https://auth.openai.com/oauth/authorize https://claude.ai/oauth/authorize https://auth.x.ai/oauth2/device/code https://auth.kimi.com/api/oauth/device authorization 令牌端点 https://auth.openai.com/oauth/token https://api.anthropic.com/v1/oauth/token (OIDC 发现 https://auth.x.ai/.well-known/openid-configuration ) https://auth.kimi.com/api/oauth/token client id app EMoamEEZ73f0CkXaXp7hrann 9d1c250a-e61b-44d9-88ed-5944d1962f5e b1a00492-073a-47ea-816f-4c329264a828 17e5f671-d194-4dfb-9706-5516cb48c098 scope openid profile email offline access api.connectors.read api.connec…

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

分类