-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GitHub Copilot provider #6468
Comments
Thank you for the proposal. In the link provided, I don't see that Cline has implemented it, the issue is linked to a PR that has been closed, not merged. We have seen previously another proposal for a github workaround, but that code was never going to work. The example linked here is better, but it still needs to get a token in a way that feels like getting around the normal use of Copilot? More importantly, we don't connect to models directly, we use |
Besides authentication with Github, the API is 100% openai-like. The difficult is indeed implementing the mechanism for oath with GitHub to get the api token. Cline used some vscode api, so I presume Open Hands would have to use a different approach, maybe like the vim plugins that support copilot. Anyway, because of the authentication with Github, I don't expect litellm to support it directly (seems out of scope for them). But if you code this authentication and get the token, you could use litellm to talk to the api just like any other openai compatible provider. |
@openhands-agent do you have some solutions? |
Main IDEA is GitHub Copilot subscription is excellent and cheap. It can be integrated into Cline, similar to codecompanion.nvim
What problem or use case are you trying to solve?
Developers need access to powerful AI models for coding assistance, but enterprise-grade solutions are often expensive. GitHub Copilot offers access to advanced models (including Claude 3.5 Sonnet) at a very competitive price point ($10/month). Projects like Cline have demonstrated that it's possible to integrate with Copilot's API through VS Code's extension system to provide this functionality in other tools.
Describe the UX of the solution you'd like
Do you have thoughts on the technical implementation?
Based on successful implementations in other projects:
Describe alternatives you've considered
GitHub Copilot integration offers the best balance of:
Additional context
Several projects have successfully implemented this integration:
This would provide All-Hands users with enterprise-grade AI capabilities while maintaining reasonable costs and leveraging existing GitHub infrastructure.
The text was updated successfully, but these errors were encountered: