dsh-codex-oauth
Manifest validUse a ChatGPT Codex subscription in DeepSeek Harness through standalone OAuth
dsh-codex-oauth
A standalone DeepSeek Harness plugin for using ChatGPT Plus/Pro Codex models through OpenAI's Codex OAuth flow.
It uses the official openaiCodexProvider from @earendil-works/pi-ai and DSH's public dsh-llm-pi-ai adapter. It supports streaming, tool calls, reasoning, images, replay, compaction, automatic token refresh, and the Codex model catalog.
This is the ChatGPT Codex backend, not a general OpenAI Platform API-key adapter.
Install
dsh plugin --profile web add dsh-codex-oauth
dsh web
For an npx installation:
npx @deepseek-ai/dsh plugin --profile web add dsh-codex-oauth
npx @deepseek-ai/dsh web
Sign in
The plugin owns its own credential file and login flow. No Pi installation or token copying is needed.
Web UI
Open Settings → OpenAI Codex and click Sign in with ChatGPT. A browser window opens for the OAuth approval; after it completes, return to DSH and select openai-codex in the model picker.
CLI
dsh plugin --profile web exec dsh-openai-codex login
# headless machines:
dsh plugin --profile web exec dsh-openai-codex login --device-code
dsh plugin --profile web exec dsh-openai-codex status
dsh plugin --profile web exec dsh-openai-codex logout
The browser login opens OpenAI's authorization page and completes through a localhost callback. --device-code is the fallback for machines without a usable browser.
After signing in, choose openai-codex in the DSH model picker.
Credentials
Credentials are stored at:
$DSH_HOME/.openai-codex-auth.json
The default is ~/.dsh/.openai-codex-auth.json. The file is written atomically with owner-only permissions, and refresh/login/logout operations use a cross-process file lock. The plugin never reads or modifies ~/.pi/agent/auth.json or ~/.codex/auth.json.
Development
npm test
npm test rebuilds the Web bundle before running the smoke checks.
The test requires the DSH and pi-ai peer dependencies supplied by a DSH profile.
Limitations
- ChatGPT plan eligibility, model access, quotas, and backend behavior are controlled by OpenAI and may change.
- Codex endpoints are not public OpenAI Platform API endpoints.
- Filesystem, shell, MCP, permissions, attachments, and other DSH capabilities come from the active profile.
License
MIT
Comments
Loading…
From the same category
by zhu1090093659
DeepSeek Harness (DSH) Web Plugin Aggregation Ecosystem · Everything is a plugin, distributed via the Creative Workshop
★ 8.2k
↓ 134/wk
Apache-2.0
TypeScript
Oct 1, 2026
dsh plugin --profile web add dsh-webby ccch1mneyyy
DSH 官方公众号收录的 TUI 补位插件:Claude Code 风,鲸鱼顶栏/实时状态/流式思考/双击 Esc 回滚/上下文进度+TPS。npm 一键装。 DSH official WeChat featured TUI plugin — Claude Code style: whale bar, live status, streaming thoughts, double-Esc rol
★ 3.9k
↓ 11.6k/wk
MIT
TypeScript
Oct 1, 2026
dsh plugin --profile terminal add @deepseek-harness-tui/dsh-tuiby YuJunZhiXue
DeepSeek Harness 破甲:让所有模型都能破甲,不同模型可换不同提示词;默认提示词面向国模「小码酱」。Jailbreak for every model — swap prompts per model. 求 Star 收藏 ⭐
★ 2.9k
MIT
JavaScript
Oct 1, 2026
dsh plugin --profile web add dsh-purgeby bowenliang123
The best DeepSeek Harness plugin for context insight and management, with context dashboard / browser / sidebar and context command, for context statistics, composition, breakdown, evolution details,
★ 1.8k
↓ 32k/wk
Apache-2.0
TypeScript
Sep 30, 2026
dsh plugin --profile web add dsh-contextby agentrq
AgentRQ: Human-in-loop realtime conversational task manager for AI Agents. Self-hosted! Control your own agents from wherever you want Mobile, Web, Desktop. Designed to work well with your own Claude
★ 1.1k
↓ 56/wk
Apache-2.0
JavaScript
Oct 1, 2026
dsh plugin --profile web add @agentrq/dsh-plugin-agentrqby vshulcz
One memory shared by Claude Code, Codex, Cursor, Copilot CLI, OpenClaw and 20 more coding agents, built from the session history already on disk. A fix found in one agent comes back in any of them, in
★ 1.1k
↓ 1.2k/wk
MIT
Go
Oct 1, 2026
dsh plugin --profile web add dsh-deja