System Framework v4.7.0 // BRUCEAI API Gateway
+ 01
+ 02

BRUCEAI

OPENAI_PROVIDER

Copilot setup

Copilot CLI can connect to BRUCEAI through OpenAI-compatible mode. You only need to set environment variables in the current terminal.

If you already have your own GitHub Copilot login, these variables only affect the copilot command in the current terminal session.

Supported model IDs

Copy these model IDs into config files, API request bodies, or any OpenAI-compatible client that asks for a model name.

STEP 01 / API_KEY_REQUIRED

Prepare your API key

1. Go to the API key page

After signing in, open the API key page to create or copy an API key. It looks like sk-or-v1-xxxxxxxxxxxx. Treat it like a password.

Create API key
2. Confirm Base URL
https://api.bruceai.net/v1

Copilot uses the OpenAI-compatible interface, so this Base URL must include /v1.

Do not share your API key with anyone, and do not commit it to GitHub, GitLab, or any public repository.

Choose your system first

The commands below will switch to the system you choose.

STEP 02

Install Copilot CLI

Run this only if Copilot CLI is not installed yet.

macOS / Linux
bash
npm install -g @github/copilot
STEP 03

Configure and start

macOS / Linux
bash
export COPILOT_PROVIDER_TYPE=openai
export COPILOT_PROVIDER_BASE_URL="https://api.bruceai.net/v1"
export COPILOT_PROVIDER_API_KEY="sk-or-v1-your-bruceai-key"
export COPILOT_MODEL="gpt-5.6-terra"

copilot