zhangxiubo/dsh-llm-chatgpt-oauth ↗★ 0
dsh-llm-chatgpt-oauth
为平台提供 ChatGPT Plus/Pro 的 OAuth 模型接入。 适合拥有 ChatGPT Plus/Pro 并希望接入其模型的用户,需 OAuth 授权。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zhangxiubo/dsh-llm-chatgpt-oauth说明文档
阅读完整 README ↗Optional plugin configuration
Set connector options in ${DSH_HOME:-~/.dsh}/settings.yaml; valid changes apply live and refresh both the adapter metadata and Models provider directory:
llm-chatgpt-oauth:
displayName: OpenAI Codex (ChatGPT)
streamIdleTimeoutMs: 300000
bootstrapFromCodexCli: true
# Optional explicit paths:
# codexAuthFile: /path/to/codex/auth.json
# credentialFile: /path/to/dsh/oauth.json
# Optional provider request headers (redacted as secret on settings wires):
# headers:
# X-Custom-Header: value
The same fields may be set as the composition base by targeting llm-chatgpt-oauth in the profile's cordis.patch.yml; settings values override that base. OAuth access and refresh tokens never enter either file. Custom headers are validated, redacted from settings wire responses, and cannot override authorization, cookie, proxy-authorization, or HTTP transport headers.
To disable the route without uninstalling the package:
- id: llm-chatgpt-oauth
disabled: true