Copilot CLI: Permissions, Config, Trusted Folders, and Environment Variables/Set the model for a session
Choose a model using an environment variable.
Section: Environment variables and common options
Set the model for a session
bash
bash
export COPILOT_MODEL="MODEL_NAME"Explanation
Model identifiers evolve, so use the names accepted by your installed CLI version.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Environment variables and common options
Allow all permissions via environment variable
Enable fully automatic permissions in scripts.
Authenticate with a token environment variable
Set a token for non-interactive environments.
Override the Copilot home directory
Change where config and state files are stored.