Skip to main content
GitHub Copilot CLI supports BYOK (Bring Your Own Key) for OpenAI Chat Completions-compatible endpoints. The Nusabase OpenAI-compatible Base URL is https://api.nusabasedigital.com/v1.

When To Use This

  • You want to use Copilot CLI in the terminal.
  • You want Copilot CLI model calls to go through Nusabase.
  • Your selected model supports tool calling and streaming.
Copilot CLI BYOK requires the model to support tool calling/function calling and streaming. If the selected model or channel does not support these capabilities, Copilot CLI will return an error. Confirm available models with /v1/models, then choose according to model capability.

Prerequisites

  • GitHub Copilot CLI is installed according to GitHub’s official docs.
  • You have a Nusabase API key: sk-....
  • Your machine can reach https://api.nusabasedigital.com.
  • The example model qwen3.5-flash appears in the current pricing docs. Use /v1/models as the source of truth.
Check the CLI:

Configure Environment Variables

Linux / macOS / WSL:
Windows PowerShell:
If the model is not in Copilot CLI’s built-in catalog, set token limits explicitly:

Verify API First

Start Copilot CLI

Then send:

Troubleshooting

For VS Code workflows, see GitHub Copilot.

References