Feature Request: Add OpenCode as a Provider in GitHub Copilot
- 主要语言
- 没有语言数据
- 星标
- 2.1k
- 派生
- 153
- PR 合并指标
- 30 天内没有已合并 PR
描述
### Feature summary
Please add support for OpenCode as a model provider within the GitHub Copilot application, similar to the existing support for other third-party AI providers and local/custom model endpoints.
### What problem are you trying to solve?
Many developers prefer using OpenCode because it offers:
* Greater flexibility in model selection and deployment.
* The ability to use self-hosted or custom AI models.
* More control over privacy, costs, and data handling.
* An open ecosystem that can be tailored to individual workflows.
Currently, there is no straightforward way to use OpenCode directly within GitHub Copilot, which limits developers who have standardized on OpenCode for their AI infrastructure.
### Proposed solution
Add **OpenCode** as a configurable provider in GitHub Copilot, allowing users to:
1. Select OpenCode from the list of available providers.
2. Configure:
* Server URL / endpoint
* API key or authentication method
* Model selection
* Optional provider-specific settings
3. Use OpenCode-powered completions, chat, and agent capabilities through the existing GitHub Copilot interface.
## Example Configuration
```json
{
"provider": "opencode",
"endpoint": "https://your-opencode-server.com",
"apiKey": "your-api-key",
"model": "your-model"
}
```
## Benefits
* Increases flexibility and developer choice.
* Enables self-hosted and privacy-focused AI workflows.
* Expands GitHub Copilot's compatibility with the growing open-source AI ecosystem.
* Allows teams already using OpenCode to adopt GitHub Copilot without changing their existing infrastructure.
## Additional Context
OpenCode is gaining adoption among developers who want an open and customizable AI backend. Supporting it as a provider would make GitHub Copilot more extensible and appealing to teams with diverse AI deployment requirements.
Thank you for considering this enhancement.
### Workflow impact
_No response_
### Installation context
_No response_
### Additional context
There is already a project on GitHub which is [VS Code extension which integrates OpenCode as provider](https://github.com/ltmoerdani/opencode-copilot-chat) in the Copliot Chat. It might act as a referece on how the implementation may work.
I see there is a [bug report about a similar implementation](https://github.com/github/app/issues/1409) but it focuses on the OpenAI Compatible endpoint, while I suggest to implement OpenCode as built-in provider, like the VS Code extension is doing it.
On a side note, worth mentioning that the extension registeres OpenCode for the Local sessions in the Agent Window in VS Code but not yet in the Remote.
贡献指南
调研方向
首先查看链接的 VS Code 扩展 opencode-copilot-chat 和 GitHub issue #1409,了解现有的 provider 以及兼容 OpenAI 的 endpoint 相关背景。然后定位 Copilot 应用的 provider 集成点,并确定 configuration、completions、chat 和 agent capabilities 是如何表示的。当 OpenCode 可通过现有应用工作流作为可配置的 provider 使用时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github
- 领域
- ai, desktop
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100