← Blog

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

  1. Vào /register → tạo account
  2. Vào console → Tạo token mới
  3. 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 caseModelLý do
Daily codingcx/gpt-5.5Default GPT-5.5, fast
Hard math/proofcx/gpt-5.5-xhighMax reasoning effort
Code reviewclaude-opus-4.6Anthropic Claude expertise
Cheap chatkimi-k2.60.37× ratio, rất rẻ
Image gengpt-image-2 qua toolsFree via /codex

Tips

  • Dùng cx/gpt-5.4 cho 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-xhigh auto fallback nếu 1 provider down

Vấn đề?

Telegram @david_d92.


💬 Telegram @david_d92 cho questions hoặc suggestions.