qwen3.5, glm-5.1:cloud, kimi-k2.5:cloud.
Install
Install Copilot CLI:brew install copilot-cli
Usage with Ollama
Quick setup
ollama launch copilot
Run directly with a model
ollama launch copilot --model kimi-k2.5:cloud
Recommended Models
kimi-k2.5:cloudglm-5:cloudminimax-m2.7:cloudqwen3.5:cloudglm-4.7-flashqwen3.5
Non-interactive (headless) mode
Run Copilot CLI without interaction for use in Docker, CI/CD, or scripts:ollama launch copilot --model kimi-k2.5:cloud --yes -- -p "how does this repository work?"
--yes flag auto-pulls the model, skips selectors, and requires --model to be specified. Arguments after -- are passed directly to Copilot CLI.
Manual setup
Copilot CLI connects to Ollama using the OpenAI-compatible API via environment variables.- Set the environment variables:
export COPILOT_PROVIDER_BASE_URL=http://localhost:11434/v1
export COPILOT_PROVIDER_API_KEY=
export COPILOT_PROVIDER_WIRE_API=responses
export COPILOT_MODEL=qwen3.5
- Run Copilot CLI:
copilot
COPILOT_PROVIDER_BASE_URL=http://localhost:11434/v1 COPILOT_PROVIDER_API_KEY= COPILOT_PROVIDER_WIRE_API=responses COPILOT_MODEL=glm-5:cloud copilot