← All applications · Connect apps section on /docs
OpenAIManual setup
Codex App
Also known as: Codex GUI · OpenAI Codex app
Giao diện Codex (GUI). Thường dùng chung cấu hình ~/.codex với Codex CLI.
Base URL to paste
Paste exactly one of two formats — wrong URL yields 404 (not 401).
https://vietrouter.com.vn/v1Prerequisites
- Codex App hoặc CLI đã tạo ~/.codex
- sk-mtm-... trong môi trường
- Đã cấu hình provider api-cli trong config.toml
Recommended model: gpt-5.6-sol
Quick way — command / config
# 1) Settings như Codex CLI (khuyến nghị API CLI):
api-cli configure codex -k 'sk-mtm-...' -m gpt-5.6-sol
# API key (dán vào cấu hình app): sk-mtm-...
# 2) Mở Codex App — chọn provider/model api-cli / gpt-5.6-sol trong Settings nếu UI có
# 3) File quan trọng:
# ~/.codex/config.toml
# base_url = "https://vietrouter.com.vn/v1"Where to place file / fill Settings
Filemacos
~/.codex/config.toml
Giống hướng dẫn codex-cli. Mở lại Codex App sau khi sửa.
Filelinux
~/.codex/config.toml
Giống macOS.
Filewindows
%USERPROFILE%\.codex\config.toml
Sửa TOML rồi khởi động lại app.
Interfaceany
Codex App → Settings → Models / Providers
Chọn custom provider Vietrouter nếu UI liệt kê; khớp model gpt-5.6-sol.
Verify connection
- Chat trong Codex App một câu.
- Đối chiếu Dashboard Sử dụng.
Troubleshooting
| Symptom | Reason | How to handle |
|---|---|---|
| App vẫn gọi OpenAI tài khoản ChatGPT | Đang login OAuth thay vì API provider custom. | Trong Settings chuyển sang API / custom provider; đảm bảo config.toml model_provider = mientaymedia. |