BRUCEAI
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.
Copy these model IDs into config files, API request bodies, or any OpenAI-compatible client that asks for a model name.
Prepare your API key
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 keyCopilot 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.
The commands below will switch to the system you choose.
Install Copilot CLI
Run this only if Copilot CLI is not installed yet.
npm install -g @github/copilotConfigure and start
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