young1lin/dsh-gpt-sub
Drives DSH's openai-codex provider with your ChatGPT subscription token, adds proxied egress for the Codex hosts and keeps native compaction.
Uses a ChatGPT/Codex subscription as the model behind DSH's openai-codex provider without a loopback port, a shared local key or an external proxy binary. Normal conversation requests go through pi-ai; the plugin refreshes the Codex token, routes egress for the three Codex hosts, and uses Codex's own native context compaction, storing the encrypted checkpoints in the session and restoring them into later Responses requests. A sidebar gives one bar per rate-limit window the account actually reports — the 5-hour rolling window and the weekly one — with an exact reset countdown (4h22m, not rounded), and shows a note instead of a bar where a plan has no such window. Reset-credit counts are read only on demand, and the folder picker runs through a read-only host listing with names and paths only, because a browser dialog cannot hand back absolute paths. The README limits the retry claim honestly: dropped-connection retries are transport-level and statusCodes is deliberately empty, and the retry is a response to an observed random TLS/connection failure on a proxied machine, not a generic knob.
Install
dsh plugin --profile web add @young1lin/dsh-gpt-subOption A from the README's Setup, the npm install that mounts the bundled cordis.patch.yml with no manual yml editing. The prerequisites line is part of the instruction here: Node ≥ 22.19, DSH 0.2.1-alpha.1 with the llm-pi-ai/stream extension, and pnpm on PATH. Then dsh web to restart the host, because the host half is module code. The codex CLI still owns the login — run it once and complete the sign-in, which writes ~/.codex/auth.json; that file is the only token source this plugin reads.
Compatibility
Targets DSH 0.2.1-alpha.1 with the llm-pi-ai/stream extension and Node ≥ 22.19. It does not stand in front of every host: the process-global undici dispatcher is scoped to chatgpt.com, auth.openai.com and api.openai.com, and every other host is untouched — so if another plugin later installs its own dispatcher, that interaction is the thing to check first. The credential it republishes is CODEX_NATIVE_TOKEN; if it is missing the provider reports Provider is not configured. Refreshed tokens are written back atomically with a temp file plus rename, so the CLI never observes a partial auth.json and keeps working.
Details
- Repo: young1lin/dsh-gpt-sub
- Category: Models & Providers
- Stars: 0
- Version: 0.1.3 (npm)
Alternatives
songoao25/dsh-chatgpt-subscription · Fynth/dsh-nanogpt · kinoward/dsh-plugin-subhub