Use PZERO in Codex
Run Codex on any live model in the catalog — prepaid USDC through PZERO at discounted marketplace rates.
Fund first
You need a key and confirmed USDC balance before Codex can spend your balance.
Create your own API key and keep it safe.
Install Codex
Follow OpenAI's Codex quickstart. When codex --version works in a new terminal, come back here.
Configure PZERO
Open ~/.codex/config.toml and add this block at the end. Replace pzero_… with your real API key. Leave the rest of the file alone — you pick the model when you launch.
[model_providers.pzero]
name = "PZERO"
base_url = "https://api.pzero.studio/v1"
experimental_bearer_token = "pzero_…"
wire_api = "responses"
requires_openai_auth = falseLaunch with PZERO
From your project folder, run:
codex -c model_provider="pzero" -c model="zai-org-glm-5-2"Swap the model id for any live text model from the model catalog. A pzero/ prefix is optional.