codex-as-api
v0.6.0
Published
Local OpenAI-compatible API server backed by ChatGPT/Codex OAuth
Maintainers
Readme
codex-as-api
Use ChatGPT / Codex OAuth as a local OpenAI-compatible API server.
Prerequisite
Install the official Codex CLI and sign in once so ~/.codex/auth.json exists:
npm install -g @openai/codex
codex loginInstall and run
npm install -g codex-as-api
codex-as-apiThe server listens on 127.0.0.1:18080 by default.
For configuration, supported endpoints, model behavior, and examples, see the canonical GitHub documentation.
