
Set up Grok Build
Merge the models default and model.larouter block into config.toml. Start grok, or switch with /model larouter. To return to the built-in model, use /model grok-build and remove only model.larouter.
Option 1: Use Configure
Sign in and select your local configuration file. Apply LaRouter fills your key and model and writes the file immediately; Reset defaults also writes immediately. If your browser cannot write local files, follow the manual instructions.
Configuration file location
- macOS
~/.grok/config.toml- Linux
~/.grok/config.toml- Windows
%USERPROFILE%\.grok\config.toml
These are default locations. For a tool running in WSL, use its Linux path inside WSL. If you changed the configuration directory, select the tool’s actual file. Your browser can only read or write files you select.
Option 2: Configure manually
Back up your files and replace only the placeholders shown below. Codex already uses gpt-5.6-sol. Use model names without router prefixes such as cx/. Keep tool-required local provider bindings such as larouter/ where shown, and preserve unrelated settings.
Setup steps
Merge the models default and model.larouter block into config.toml. Start grok, or switch with /model larouter. To return to the built-in model, use /model grok-build and remove only model.larouter.
[models]
default = "larouter"
[model.larouter]
name = "LaRouter"
model = "YOUR_MODEL_ID"
base_url = "https://i-larouter.lapage.vn/v1"
api_backend = "chat_completions"
api_key = "YOUR_API_KEY"