Codex CLI
Codex CLI កំណត់ custom providers ក្នុង ~/.codex/config.toml។
Base URL សម្រាប់ឧបករណ៍នេះ
https://api.laalaa.me/v1Protocol
/v1/chat/completions (OpenAI)១. កំណត់ API key
Provider ប្រើ env_key — ឈ្មោះ environment variable ដែលផ្ទុក gateway key របស់អ្នក។
bash (macOS / Linux)
export LAALAA_API_KEY="sk-xxxxxxxxxxxx"PowerShell (Windows)
$env:LAALAA_API_KEY = "sk-xxxxxxxxxxxx"២. បន្ថែម provider ក្នុង config.toml
toml · ~/.codex/config.toml
model = "claude-opus-4-8"
model_provider = "laalaa"
[model_providers.laalaa]
name = "Laalaa Gateway"
base_url = "https://api.laalaa.me/v1"
env_key = "LAALAA_API_KEY"
wire_api = "chat"base_urlជា URL ដែលមាន/v1— Codex បន្ថែម /chat/completions ខ្លួនឯង។wire_api = "chat"ប្រើ /v1/chat/completions។"responses"ក៏ដំណើរការដែរ ព្រោះ gateway អនុវត្ត /v1/responses។
៣. បើក Codex
bash
codex "Explain this repository"ការជូនដំណឹង
ជ្រើស model
កំណត់ model = ឈ្មោះ model ពិតពី /docs/models។ អ្នកអាចបង្កើត [profiles] សម្រាប់ប្តូររហ័ស។
ឧបករណ៍ផ្សេងទៀន
ទំព័រនេះមានប្រយោជន៍?