Overview of Codex2API
mainCodex2API transforms a pool of Codex accounts into an observable, schedulable, and maintainable gateway that is compatible with OpenAI and Anthropic APIs. It acts as a central hub for long-term Codex access rather than a simple proxy layer.
Key Capabilities:
- Unified Compatible Entry Points: Supports OpenAI-style
Chat Completions,Responses,Images, andModels, as well as AnthropicMessagesand native CodexResponsesforwarding. This allows seamless integration with clients like Codex CLI, Claude Code, or any OpenAI SDK by simply changing the Base URL. - Account Pool Scheduling: Manages account status, health levels, dynamic concurrency, and rate-limit recovery. It supports
round_robinandremaining_quotascheduling modes to automatically avoid unavailable accounts. - Visual Management Dashboard: A built-in React/Vite admin panel for account testing, API key management, proxy pool configuration, image generation (text-to-image and image-to-image), prompt filtering, usage statistics, and system monitoring.
- Flexible Deployment: Supports production-grade setups using PostgreSQL + Redis, or lightweight single-container deployments using SQLite + In-memory cache.
- Observability & Billing: Provides USD cost tracking (5h/7d windows), credit quota support, API key usage tracking, and usage dashboards with request logs and trend charts.