The Base URL must end with /v1; otherwise, an error will occur.
Replace the following baseURL, OPENAI_API_KEY, and model with the actual API Key information applied for in the NL system.
1
Add the following
export line to ~/.zshrc, then run source ~/.zshrc to apply the changes:export OPENAI_API_KEY="sk-xxx"
source ~/.zshrc
1
Create and edit
~/.codex/config.toml:model_provider = "ailink"
model = "gpt-5.6-terra"
[model_providers.ailink]
name = "ailink"
base_url = "https://ailink.nativex.com/v1"
env_key = "OPENAI_API_KEY"
wire_api = "responses"
Modify the model field to switch models.