You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`GITHUB_TOKEN`| For Github Copilot models (see [Using Github Copilot](#using-github-copilot)) |
100
+
|`VERTEXAI_PROJECT`| For Google Cloud VertexAI (Gemini) |
101
+
|`VERTEXAI_LOCATION`| For Google Cloud VertexAI (Gemini) |
102
+
|`GROQ_API_KEY`| For Groq models |
103
+
|`AWS_ACCESS_KEY_ID`| For AWS Bedrock (Claude) |
104
+
|`AWS_SECRET_ACCESS_KEY`| For AWS Bedrock (Claude) |
105
+
|`AWS_REGION`| For AWS Bedrock (Claude) |
106
+
|`AZURE_OPENAI_ENDPOINT`| For Azure OpenAI models |
107
+
|`AZURE_OPENAI_API_KEY`| For Azure OpenAI models (optional when using Entra ID) |
108
+
|`AZURE_OPENAI_API_VERSION`| For Azure OpenAI models |
109
+
|`LOCAL_ENDPOINT`| For self-hosted models |
110
+
|`SHELL`| Default shell to use (if not specified in config) |
110
111
111
112
### Shell Configuration
112
113
@@ -141,6 +142,9 @@ This is useful if you want to use a different shell than your default system she
141
142
"apiKey": "your-api-key",
142
143
"disabled": false
143
144
},
145
+
"copilot": {
146
+
"disabled": false
147
+
},
144
148
"groq": {
145
149
"apiKey": "your-api-key",
146
150
"disabled": false
@@ -211,6 +215,23 @@ OpenCode supports a variety of AI models from different providers:
211
215
- Claude 3 Haiku
212
216
- Claude 3 Opus
213
217
218
+
### GitHub Copilot
219
+
220
+
- GPT-3.5 Turbo
221
+
- GPT-4
222
+
- GPT-4o
223
+
- GPT-4o Mini
224
+
- GPT-4.1
225
+
- Claude 3.5 Sonnet
226
+
- Claude 3.7 Sonnet
227
+
- Claude 3.7 Sonnet Thinking
228
+
- Claude Sonnet 4
229
+
- O1
230
+
- O3 Mini
231
+
- O4 Mini
232
+
- Gemini 2.0 Flash
233
+
- Gemini 2.5 Pro
234
+
214
235
### Google
215
236
216
237
- Gemini 2.5
@@ -574,6 +595,25 @@ The AI assistant can access LSP features through the `diagnostics` tool, allowin
574
595
575
596
While the LSP client implementation supports the full LSP protocol (including completions, hover, definition, etc.), currently only diagnostics are exposed to the AI assistant.
576
597
598
+
## Using Github Copilot
599
+
600
+
_Copilot support is currently experimental._
601
+
602
+
### Requirements
603
+
-[Copilot chat in the IDE](https://github.com/settings/copilot) enabled in GitHub settings
604
+
- One of:
605
+
- VSCode Github Copilot chat extension
606
+
- Github `gh` CLI
607
+
- Neovim Github Copilot plugin (`copilot.vim` or `copilot.lua`)
608
+
- Github token with copilot permissions
609
+
610
+
If using one of the above plugins or cli tools, make sure you use the authenticate
611
+
the tool with your github account. This should create a github token at one of the following locations:
If using an explicit github token, you may either set the $GITHUB_TOKEN environment variable or add it to the opencode.json config file at `providers.copilot.apiKey`.
616
+
577
617
## Using a self-hosted model provider
578
618
579
619
OpenCode can also load and use models from a self-hosted (OpenAI-like) provider.
0 commit comments