Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
GitHub Copilot is GitHub's AI coding assistant. It provides access to Copilot models for your GitHub account and plan. OpenClaw can use Copilot as a model provider in two different ways.
text<Steps> <Step title="Run the login command"> ```bash} openclaw models auth login-github-copilot ``` You will be prompted to visit a URL and enter a one-time code. Keep the terminal open until it completes. </Step> <Step title="Set a default model"> ```bash} openclaw models set github-copilot/claude-opus-4.7 ``` Or in config: ```json5} { agents: { defaults: { model: { primary: "github-copilot/claude-opus-4.7" } }, }, } ``` </Step> </Steps>
text<Note> Choose this when you already run Copilot Proxy in VS Code or need to route through it. You must enable the plugin and keep the VS Code extension running. </Note>
| Flag | Description |
|---|---|
text --yes | Skip the confirmation prompt |
text --set-default | Also apply the provider's recommended default model |
bash# Skip confirmation openclaw models auth login-github-copilot --yes # Login and set the default model in one step openclaw models auth login --provider github-copilot --method device --set-default
If you already have a GitHub OAuth access token for Copilot, import it during headless setup with
openclaw onboard --non-interactivebashopenclaw onboard --non-interactive --accept-risk \ --auth-choice github-copilot \ --github-copilot-token "$COPILOT_GITHUB_TOKEN" \ --skip-channels --skip-health
You can also omit
--auth-choice--github-copilot-tokenCOPILOT_GITHUB_TOKENGH_TOKENGITHUB_TOKEN--secret-input-mode refCOPILOT_GITHUB_TOKENtokenRefauth-profiles.jsonGitHub Copilot can also serve as an embedding provider for memory search. If you have a Copilot subscription and have logged in, OpenClaw can use it for embeddings without a separate API key.
When
memorySearch.provider"auto"json5{ agents: { defaults: { memorySearch: { provider: "github-copilot", // Optional: override the auto-discovered model model: "text-embedding-3-small", }, }, }, }
/modelstext-embedding-3-small/embeddingsModel availability depends on your GitHub plan. If no embedding models are available, OpenClaw skips Copilot and tries the next provider.
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine