Hướng dẫn tích hợp Codex CLI với d92.uk
Cấu hình Codex CLI native gọi qua d92.uk gateway — 1 token unlimited models
OpenAI Codex CLI là tool dev mạnh nhất hiện tại. Mặc định gọi chatgpt.com/backend-api/codex/responses qua OAuth Plus/Team. Nhưng có thể đổi base URL về d92.uk để tận dụng pool model rộng hơn + giá rẻ hơn.
Bước 1: Tạo token d92.uk
- Vào /register → tạo account
- Vào console → Tạo token mới
- Copy
sk-...
Bước 2: Cấu hình Codex CLI
Sửa ~/.codex/config.toml:
model = "cx/gpt-5.5"
model_reasoning_effort = "xhigh"
[model_providers.d92]
name = "d92.uk"
base_url = "https://api.d92.uk/v1"
env_key = "D92_KEY"
wire_api = "responses"
Set env variable:
export D92_KEY=sk-YOUR_TOKEN_HERE
Bước 3: Sử dụng
codex --provider d92 "Refactor this function for clarity"
Models recommend
| Use case | Model | Lý do |
|---|---|---|
| Daily coding | cx/gpt-5.5 | Default GPT-5.5, fast |
| Hard math/proof | cx/gpt-5.5-xhigh | Max reasoning effort |
| Code review | claude-opus-4.6 | Anthropic Claude expertise |
| Cheap chat | kimi-k2.6 | 0.37× ratio, rất rẻ |
| Image gen | gpt-image-2 qua tools | Free via /codex |
Tips
- Dùng
cx/gpt-5.4cho quick task — rẻ hơn 5.5 - xhigh chỉ dùng cho hard problems — output tăng 35-100%, cost tăng tương ứng
- Combo
chatgpt-5.5-xhighauto fallback nếu 1 provider down
Vấn đề?
Telegram @david_d92.
💬 Telegram @david_d92 cho questions hoặc suggestions.