Two environment variables and Codex CLI runs against our OpenAI Responses-compatible endpoint. No subscription, no card, no minimum: prepaid credits are consumed per token at roughly 7% of the official list price, and the line stops the moment the balance reaches zero.
macOS / Linux
export OPENAI_BASE_URL=https://api.mddtech.cn/p/v1 export OPENAI_API_KEY=sk-your-key codex
Windows PowerShell
$env:OPENAI_BASE_URL="https://api.mddtech.cn/p/v1" $env:OPENAI_API_KEY="sk-your-key" codex
If you switch between providers — official API, a relay, your own gateway — hand-editing
~/.codex/config.toml gets old fast. ccpkit keeps each provider as a named profile and writes
the config for you, with automatic backups.
pipx install ccpkit # or: pip install ccpkit ccpkit add mdd --preset mdd --claude-key sk-your-key --codex-key sk-your-other-key --use ccpkit use mdd # switch, any time ccpkit doctor mdd # is it reachable? how fast? which models? ccpkit restore # undo — roll back to the previous config
Prefer clicking to typing? It ships a local web UI — ccpkit ui —
and on Windows you don't even need Python. Download the exe and double-click it:
https://github.com/kanfangwang/ccpkit/releases/latest/download/ccpkit.exe
ccpkit is an independent open-source tool (MIT, zero dependencies). The
mdd preset is just one of several — it works with any OpenAI- or Anthropic-compatible endpoint.
Source: github.com/kanfangwang/ccpkit
Using CC Switch, or any other profile manager? You do not need us to be in its built-in preset list — add it as a custom provider. Works in CC Switch, ccpkit, or anything else that lets you set a base URL:
Name 麦多 API / MadeMore API Claude https://api.mddtech.cn/p Codex https://api.mddtech.cn/p/v1 Key your own key (starts with sk-)
Save it, select it, done. Nothing else to configure.
| What you pay | Official-priced usage you get | Typical use |
|---|---|---|
| $5 | ≈ $70 | a few evenings of agent work |
| $10 | ≈ $140 | a light week of Codex CLI |
| $20 | ≈ $280 | heavy use, multiple repos |
Rates follow the official published token prices ÷ 7 on the Claude line and ÷ 14 on the Codex line. Credits do not expire and the balance cannot go negative.
Only models that genuinely work are enabled — a request for an unsupported model is rejected before it reaches upstream and is not billed. We would rather expose three working models than twenty that fail halfway through a task.
Yes. Codex CLI honours OPENAI_BASE_URL and OPENAI_API_KEY, so any endpoint that
implements the OpenAI Responses API works. Ours does, and it is Anthropic-compatible too, so the same portal
serves both tools.
Upstream capacity is third-party, so it can degrade — that is the honest risk of a relay. What we control is the model list (kept in sync with what actually works) and transparency: the live status panel on the home page shows real probe latency and availability, not an invented uptime figure.
With WeChat Pay: the portal shows a one-time QR code, you scan it in WeChat and confirm, and the balance is credited automatically — usually within seconds. No card details ever reach this service. If WeChat Pay is not an option for you, email us and we will arrange something by hand.
Yes, self-service and without an email address, so you can benchmark the endpoint from your own machine before paying.
No. This is an independent third-party relay. Model names describe API compatibility only.