Codex Provider Setup
May 8, 2026 ยท View on GitHub
PaperFit's Codex adapter does not require api.openai.com specifically.
Principle
- PaperFit installs skills, agent guidance, and project rules.
- PaperFit does not overwrite
~/.codex/config.toml. - Codex model provider, base URL, auth mode, and model choice remain under the user's control.
That means PaperFit can run on:
- the user's default Codex login flow
- a third-party OpenAI-compatible gateway
- a self-hosted proxy or enterprise relay
as long as the local codex CLI itself is already configured and usable.
Recommended Strategy
Use the user's existing Codex setup as the primary path.
PaperFit should be layered on top of:
- a working
codexCLI - a valid
~/.codex/config.tomlwhen custom providers are needed paperfit install-global --target codex
Example Third-Party Provider
model_provider = "mygateway"
model = "gpt-5.4"
[model_providers.mygateway]
name = "mygateway"
base_url = "https://your-openai-compatible-gateway.example.com"
wire_api = "responses"
requires_openai_auth = true
Adjust auth and endpoint settings to match the actual gateway you use.
Verification
Run:
paperfit doctor --target codex
PaperFit will report:
- whether Codex assets were installed
- whether
~/.codex/config.tomlexists - the detected
model_provider,model, andbase_urlsummary
Boundary
If Codex cannot reach its configured backend, that is a Codex/provider connectivity issue, not a PaperFit asset-install issue.