deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
Reuse the Codex CLI's ChatGPT OAuth login in DeepSeek Harness (DSH).
The package is a Host Cordis bundle. It reads Codex's auth.json, keeps the OAuth token fresh through pi-ai's native openai-codex OAuth implementation, synchronizes the access token into DSH's credential service, and configures pi-ai's built-in openai-codex model route.
It does not contain, upload, or commit any token.
dsh-llm-pi-ai adapter~/.codex/auth.json contains auth_mode: "chatgpt")Run this on each device after logging in with Codex:
npx --yes github:shaomingbo/dsh-codex-auth-bridge#v0.1.0
The installer:
~/.dsh/profiles/web/package.json;dsh-codex-auth-bridge to that profile's dsh.profile.bundles list;pnpm install in the profile.Restart dsh web afterward. The model picker will include the models exposed by pi-ai's installed openai-codex catalog.
Use another profile or source when needed:
npx --yes github:shaomingbo/dsh-codex-auth-bridge#v0.1.0 --profile web
node ./bin/install.js --source file:../../packages/dsh-codex-auth-bridge
At startup, every ten minutes, and immediately before an openai-codex LLM stream:
${CODEX_HOME:-~/.codex}/auth.json;@earendil-works/pi-ai;auth.json;OPENAI_CODEX_ACCESS_TOKEN using DSH's credential service.The bundle also configures this composition base:
llm-pi-ai:
providers:
openai-codex:
apiKeyEnv: OPENAI_CODEX_ACCESS_TOKEN
Because api is intentionally omitted, dsh-llm-pi-ai reuses pi-ai's provider-native openai-codex-responses transport instead of treating the ChatGPT backend as a generic OpenAI endpoint.
| Variable | Default | Purpose |
|---|---|---|
DSH_CODEX_AUTH_PATH |
${CODEX_HOME:-~/.codex}/auth.json |
Exact Codex auth file |
DSH_CODEX_CREDENTIAL_REF |
OPENAI_CODEX_ACCESS_TOKEN |
DSH credential reference |
DSH_CODEX_PROVIDER_ID |
openai-codex |
Provider route preflighted before requests |
DSH_CODEX_REFRESH_MARGIN_MS |
300000 |
Refresh margin before JWT expiry |
DSH_CODEX_SYNC_INTERVAL_MS |
600000 |
Background synchronization interval |
If you override DSH_CODEX_CREDENTIAL_REF, also update apiKeyEnv in the bundle or your DSH settings.
auth.json contains a rotating refresh token and must remain private.$DSH_HOME/.credentials.yaml, normally with mode 0600.npm install
npm test
npm run check
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。