Overview
Type: Coding agent CLIPrimary Path: OpenAI-compatible Chat CompletionsSupport Confidence: Official BYOK path
Install
With Node.js 22 or later, install through npm:GitHub currently requires an active Copilot plan. Organization-managed accounts also need the Copilot CLI policy enabled.
Configure AI Sonar
Set the provider variables before starting Copilot CLI:
GitHub requires the selected model to support both streaming and tool calling.
kimi-k3 exposes tool use and a context window larger than GitHub’s recommended 128K minimum.
Verify
Inside Copilot CLI, ask for a read-only action first, such as:Troubleshooting
Authentication failed
Authentication failed
Confirm
COPILOT_PROVIDER_API_KEY contains an active AI Sonar key and restart copilot after changing environment variables.Model not found
Model not found
Use the exact ID from the live AI Sonar model catalog. Do not add a provider prefix to
kimi-k3.Tool calling or streaming error
Tool calling or streaming error
Copilot CLI rejects models without both capabilities. Choose a tool-capable chat model such as
kimi-k3.