Codex CLI is OpenAI's terminal-based coding agent. It can understand your codebase, generate code, and execute commands.
- Up to 70% cheaper than official OpenAI pricing
- Access GPT-5.5, GPT-5.4 and all latest models
- No region restrictions
- Same OpenAI-compatible API
export OPENAI_BASE_URL=https://texapi.dev/v1
export OPENAI_API_KEY=tex-YOUR_API_KEYAdd to ~/.bashrc or ~/.zshrc for persistence.
$env:OPENAI_BASE_URL = "https://texapi.dev/v1"
$env:OPENAI_API_KEY = "tex-YOUR_API_KEY"set OPENAI_BASE_URL=https://texapi.dev/v1
set OPENAI_API_KEY=tex-YOUR_API_KEYcodex "explain this codebase"| Feature | Status |
|---|---|
| Chat Completions | ✅ |
| Streaming | ✅ |
| Responses API | ✅ |
| Function Calling | ✅ |
| File Operations | ✅ |
| Model | Best For | Cost |
|---|---|---|
gpt-5.4 |
Daily coding | 0.75 / 4.5 credits per 1M tokens |
gpt-5.5 |
Complex tasks | 1.5 / 9.0 credits per 1M tokens |
gpt-5.4-mini |
Quick tasks | 0.225 / 1.35 credits per 1M tokens |
gpt-5.4-nano |
Ultra-cheap | 0.06 / 0.375 credits per 1M tokens |
- TexAPI keys start with
tex-, notsk- - Ensure
OPENAI_BASE_URLpoints tohttps://texapi.dev/v1(with/v1)
- Use TexAPI model names:
gpt-5.4, notgpt-4o - Check available models:
curl https://texapi.dev/v1/models -H "Authorization: Bearer tex-YOUR_KEY"