openclaw/docs/providers
RebelSyntax c800a686e7 fix(github-copilot): use gho_ tokens directly without exchange
Tokens from the GitHub Copilot CLI (prefixed with `gho_`) can be used
directly with the Copilot API without requiring a token exchange via
/copilot_internal/v2/token (which returns HTTP 404 for these tokens).

This fixes authentication for users who:
- Installed the Copilot CLI (`npm install -g @github/copilot`)
- Authenticated via `copilot auth login`
- Set COPILOT_GITHUB_TOKEN or GH_TOKEN to their gho_ token

The fix detects gho_ prefixed tokens and skips the exchange, caching
them with an 8-hour TTL (matching typical OAuth token lifetimes).

Also adds COPILOT_API_BASE_URL env var support for enterprise users
whose proxy blocks api.individual.githubcopilot.com. Set this to your
enterprise endpoint (e.g., https://api.business.githubcopilot.com).

[AI-assisted] Tested with GitHub Copilot CLI 0.0.399 on WSL2.

Closes #3437
2026-01-29 23:36:52 -05:00
..
anthropic.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
claude-max-api-proxy.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
deepgram.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
github-copilot.md fix(github-copilot): use gho_ tokens directly without exchange 2026-01-29 23:36:52 -05:00
glm.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
index.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
minimax.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
models.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
moonshot.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
ollama.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
openai.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
opencode.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
openrouter.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
qwen.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
synthetic.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
venice.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
vercel-ai-gateway.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
xiaomi.md fix: migrate legacy gateway services 2026-01-30 04:01:31 +01:00
zai.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00