🚀 Great News! We now support Codex transit service! Through cometapi, you can seamlessly access OpenAI's powerful code generation models (like GPT-5) without worrying about regional restrictions or complex configurations. Whether you're a developer or an AI enthusiast, you can easily launch your programming assistant. Try it now and boost your coding efficiency! (Register on cometapi to get your API key: https://cometapi.com)
Windows 10/11
, macOS 10.15+
, Ubuntu 20.04+
or Debian 10+
18
or higher (if installing via npm)Note: Ensure your Node.js version is ≥ 18.0
~/.codex/config.toml
(replace sk-xxx
with your cometapi key):model_provider = "cometapi"
model = "gpt-5"
model_reasoning_effort = "high"
disable_response_storage = true
[model_providers.cometapi]
name = "cometapi"
base_url = "https://api.cometapi.com/v1"
wire_api = "responses"
env_key = "sk-xxx"
~/.codex/auth.json
(replace sk-xxx
with your cometapi key):{
"OPENAI_API_KEY": "sk-xxx"
}
Tip: For permanent environment variable support, refer to the OpenAI official documentation or add export commands to your shell configuration file.
Important Note: cometapi serves only as a transit proxy for the official Codex, supporting standard API requests. If you encounter issues, first check your key and network.
config.toml
and auth.json
.sk-
. Set the quota to unlimited to avoid restrictions.offline
or fetch failed
?