نظرة معمقة على مزود OpenAI Codex — النماذج والمصادقة والميزات والتكوين.
يربط مزود Codex أداة scorpiox code بواجهة OpenAI Codex الخلفية عبر مصادقة رمز OAuth Bearer. يستهدف واجهة ChatGPT الخلفية ويدعم البث والتفكير واستخدام الأدوات واستدعاء الوظائف والرؤية وتحديث الرمز التلقائي.
يستخدم Codex مصادقة رمز OAuth Bearer عبر رأس Authorization. تتم إدارة الرموز بواسطة 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.