DSH Market
C

Codex Switch

by kuangre123 · kuangre123/codex-switch

Not checkedunknownactive

Codex Switch 是一个 macOS 工具,一键配置 Codex 的自定义 API,同时保留官方 OpenAI 登录。保存后 Codex 的模型选择器里只会出现你选的那个 provider 的模型。也支持 Claude Code 的官方 / 自定义 API 切换。Codex Switch is a lightweight helper for configuring multiple coding-agent API routes. For Codex, it keeps Official OpenAI and a custom API provider configured in parallel, registers the custom model in Codex's mod

Install Codex Switch

No package.json found — installability could not be checked.

Not checked — and that is not the same as fine

We could not find a package.json for this repository, so none of the publish spec rules could be applied. We do not know whether dsh plugin add activates anything here.

Best-effort git install — unverified, may activate nothing

# 1. add the bundle to a profile — --profile my-profile points at $DSH_HOME/profiles/my-profile
dsh plugin --profile my-profile add github:kuangre123/codex-switch

# 2. verify: the bundle should show up as a layer in the resolved config
dsh --profile my-profile --dump-config

# 3. boot the profile
dsh --profile my-profile

Step 2 is the one that matters here: if --dump-config shows no new layer after the install, this repository is not a bundle and there is nothing to activate.

Before you run it

  • A plugin runs with your permissions once loaded: it can read your files, use your credentials and reach the network. Tool approvals do not sandbox it.
  • Installing from git resolves a moving branch. Pin a commit — github:kuangre123/codex-switch#<commit-sha> — so the code you reviewed is the code you install.

Prerequisites

API key
Not required.
Network access
Required at runtime.
Language
Python

Install check

Every field the verdict was derived from, so you can re-derive it yourself

Field checkedResultWeightWhat the spec says about it
package.jsonmissingfatalno package.json found in the repository
Verdict reason
cannot audit without a package.json
Rules applied from
docs/user/develop/basic/publish.md
Checked at
2026-08-15

From the README

Excerpt as published by the author, plain text, unedited

> 一个小巧的 macOS 工具:一键把 Codex 在「官方 OpenAI」和「你自己的自定义 / 第三方 API」之间切换,**切换后对话记录始终都在**。 > > A tiny macOS app to switch Codex between Official OpenAI and your own custom / third‑party API — **without ever losing your conversations**. Codex Switch 把原本要手改 `~/.codex/auth.json` 和 `~/.codex/config.toml` 的事变成一次点击:官方 OpenAI 和你的自定义 provider 同时保留在配置里,切换只改「默认走哪一路」,不会重写已保存对话的 provider/model 归属。它内置了国内主流大模型的快速预设,并能在本地启动一个适配器,把只支持 Chat Completions 的接口自动桥接成 Codex 需要的 Responses 协议。 It turns hand‑editing `~/.codex/auth.json` and `config.toml` into one save: Official OpenAI and your custom provider both stay configured, switching changes the default route without retagging saved conversations. It ships quick presets for popular Chinese LLM providers and can run a local adapter that bridges Chat‑Completions‑only API

Topics

GitHub topics on this repository

Related entries

Nearest entries by similarity — this one landed in no themed cluster