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)) |
105
+
|`VERTEXAI_PROJECT`| For Google Cloud VertexAI (Gemini) |
106
+
|`VERTEXAI_LOCATION`| For Google Cloud VertexAI (Gemini) |
107
+
|`GROQ_API_KEY`| For Groq models |
108
+
|`AWS_ACCESS_KEY_ID`| For AWS Bedrock (Claude) |
109
+
|`AWS_SECRET_ACCESS_KEY`| For AWS Bedrock (Claude) |
110
+
|`AWS_REGION`| For AWS Bedrock (Claude) |
111
+
|`AZURE_OPENAI_ENDPOINT`| For Azure OpenAI models |
112
+
|`AZURE_OPENAI_API_KEY`| For Azure OpenAI models (optional when using Entra ID) |
113
+
|`AZURE_OPENAI_API_VERSION`| For Azure OpenAI models |
114
+
|`LOCAL_ENDPOINT`| For self-hosted models |
115
+
|`SHELL`| Default shell to use (if not specified in config) |
115
116
116
117
### Shell Configuration
117
118
@@ -146,6 +147,9 @@ This is useful if you want to use a different shell than your default system she
146
147
"apiKey": "your-api-key",
147
148
"disabled": false
148
149
},
150
+
"copilot": {
151
+
"disabled": false
152
+
},
149
153
"groq": {
150
154
"apiKey": "your-api-key",
151
155
"disabled": false
@@ -216,6 +220,23 @@ OpenCode supports a variety of AI models from different providers:
216
220
- Claude 3 Haiku
217
221
- Claude 3 Opus
218
222
223
+
### GitHub Copilot
224
+
225
+
- GPT-3.5 Turbo
226
+
- GPT-4
227
+
- GPT-4o
228
+
- GPT-4o Mini
229
+
- GPT-4.1
230
+
- Claude 3.5 Sonnet
231
+
- Claude 3.7 Sonnet
232
+
- Claude 3.7 Sonnet Thinking
233
+
- Claude Sonnet 4
234
+
- O1
235
+
- O3 Mini
236
+
- O4 Mini
237
+
- Gemini 2.0 Flash
238
+
- Gemini 2.5 Pro
239
+
219
240
### Google
220
241
221
242
- Gemini 2.5
@@ -579,6 +600,25 @@ The AI assistant can access LSP features through the `diagnostics` tool, allowin
579
600
580
601
While the LSP client implementation supports the full LSP protocol (including completions, hover, definition, etc.), currently only diagnostics are exposed to the AI assistant.
581
602
603
+
## Using Github Copilot
604
+
605
+
_Copilot support is currently experimental._
606
+
607
+
### Requirements
608
+
-[Copilot chat in the IDE](https://github.com/settings/copilot) enabled in GitHub settings
609
+
- One of:
610
+
- VSCode Github Copilot chat extension
611
+
- Github `gh` CLI
612
+
- Neovim Github Copilot plugin (`copilot.vim` or `copilot.lua`)
613
+
- Github token with copilot permissions
614
+
615
+
If using one of the above plugins or cli tools, make sure you use the authenticate
616
+
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`.
621
+
582
622
## Using a self-hosted model provider
583
623
584
624
OpenCode can also load and use models from a self-hosted (OpenAI-like) provider.
0 commit comments