Standalone Codex OAuth proxy module.
- Loads Codex OAuth tokens from the local machine
- Refreshes them when needed
- Calls the Codex backend directly
- Exposes a small HTTP API for Android integration
This module is isolated from direct Android OAuth handling, but Android integration is already implemented through a dedicated provider.
GET /healthGET /api/v1/auth/statusGET /api/v1/providersPOST /api/v1/chatPOST /api/v1/self-test
cd codex_proxy
npm install
npm run devcd codex_proxy
npm run buildcurl -s http://127.0.0.1:4317/api/v1/chat \
-H 'content-type: application/json' \
-d '{"prompt":"Say hi in Korean."}'- Default token source is
~/.codex/auth.json. - If a local fallback token file is needed, set
CODEX_FALLBACK_AUTH_PATH. - This proxy uses the Codex ChatGPT OAuth flow. It is not an OpenAI API key proxy.
- Current Android development bridge path is
adb reverse tcp:4317 tcp:4317. - Android
Codex Proxyprovider depends on a host machine that already has valid Codex OAuth state.