OpenAI Codex 프로바이더 심층 분석 — 모델, 인증, 기능, 구성.
Codex 프로바이더는 OAuth Bearer 토큰 인증을 통해 scorpiox code를 OpenAI Codex 백엔드에 연결합니다. ChatGPT 백엔드 API를 대상으로 하며 스트리밍, 확장 사고, 도구 사용, 함수 호출, 비전 및 자동 토큰 갱신을 지원합니다.
Codex는 Authorization 헤더를 통한 OAuth Bearer 토큰 인증을 사용합니다. 토큰은 scorpiox-codex-fetchtoken에 의해 관리되며 세 가지 소스에서 가져올 수 있습니다:
CODEX_TOKEN_SOURCE=localscorpiox-codex-fetchtoken. Default mode — no network calls needed for token acquisition. The token file is stored alongside your scorpiox configuration.CODEX_TOKEN_SOURCE=remoteCODEX_REMOTE_URL. Default URL: https://token.scorpiox.net/codex. Useful for centralized token management across teams.CODEX_TOKEN_SOURCE=sshCODEX_SSH_HOST, CODEX_SSH_USER, CODEX_SSH_PASS, and CODEX_SSH_PORT. Ideal for air-gapped or private infrastructure environments.모든 Codex 설정은 프로젝트 루트의 scorpiox-env.txt에 저장됩니다. scorpiox-config를 실행하여 대화형으로 구성하세요.
| Key | Description | Default |
|---|---|---|
| PROVIDER | Set to codex to use this provider | scorpiox |
| MODEL | Model name or alias (e.g. gpt-5.3-codex) | sonnet |
| TOOLS | Enable/disable all tool execution | 1 |
| CODEX_TOKEN_SOURCE | Token acquisition method: local, remote, ssh | local |
| CODEX_REMOTE_URL | Remote HTTP endpoint for token fetching | https://token.scorpiox.net/codex |
| CODEX_SSH_HOST | SSH hostname for remote token retrieval | — |
| CODEX_SSH_USER | SSH username | — |
| CODEX_SSH_PASS | SSH password | — |
| CODEX_SSH_PORT | SSH port number | — |
| Feature | Codex | Claude Code | Anthropic | Gemini | OpenAI | Router |
|---|---|---|---|---|---|---|
| Streaming | ✓ | ✓ | ✓ | — | — | ✓ |
| Thinking | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Tool Use | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Function Calling | ✓ | — | — | — | — | — |
| Vision | ✓ | — | — | — | — | — |
| Token Refresh | ✓ | ✓ | — | — | — | — |
| Context Caching | — | — | — | ✓ | — | — |
| Auth Method | OAuth Bearer | OAuth Bearer | x-api-key | API Key | API Key | None |
The Codex provider is implemented as a single-file C module following the scorpiox provider interface pattern:
All providers compile as part of libsxnet and are statically linked into the sx binary. Zero runtime dependencies — the Codex provider uses raw socket HTTP built into scorpiox's networking layer.