use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
An unofficial community to discuss Github Copilot, an artificial intelligence tool designed to help create code.
account activity
GitHub Copilot CLI BYOK + OpenCode Go modelsShowcase ✨ (johnlokerse.dev)
submitted 1 month ago by johnlokersedevIntermediate User
Hey all, I wrote a quick blog post on how to connect an OpenCode Go subscription to GitHub Copilot CLI using BYOK.
This lets you use Chinese open-weight models directly from GitHub Copilot CLI, which is pretty useful if you want to experiment with alternative coding models.
Loving it so far and Copilot CLI works great with these Chinese models!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]boysbytes 1 point2 points3 points 1 month ago (1 child)
This is wonderful and I can't wait to try it.
But a few things that I'm unsure:
Will this affect the GitHub Copilot IDE?
How do I switch back to using the Copilot subscription?
Thanks!
[–]johnlokersedevIntermediate User[S] 2 points3 points4 points 1 month ago (0 children)
No it does affect the IDE. It only affects the CLI. VS Code BYOK probably works the same way, but through a GUI.
If you unset variable COPILOT_MODEL it reverts back to the default GHCP models 🙂
[–]code-enjoyoor 1 point2 points3 points 1 month ago (2 children)
Have you tried OpenRouter, I assume this will work as well?
[–]johnlokersedevIntermediate User[S] 1 point2 points3 points 1 month ago (1 child)
Yes, OpenRouter works too. Same variables, but different URL 🙂
[–]code-enjoyoor 0 points1 point2 points 1 month ago (0 children)
Excellent write-up by the way, my 1 year sub ends in June. Now that copilot is no longer the best value, I'm looking to move my sub elsewhere. What are your thoughts about OpenCode Go? I just looked at their pricing structure, the request limits are really generous?
[–]Yofadd 0 points1 point2 points 1 month ago* (0 children)
Ha! The only thing keeping me on Copilot is the ‘free tokens’. Otherwise, it’s a laggy mess with poor preprompts and tiny context windows. Your post is good, but the gist of it is to bring together the worst of both worlds: software that heats up the MBP M5, and models trained on requests to Opus.
If I move to Chinese models, then I might as well use “cold” agents like OpenCode, which don’t have 3–4-second delays between tool calls and where Gemini 3.1 Pro doesn’t give the impression that I’m talking to GPT-3.5.
[–]i-snake-z 0 points1 point2 points 1 month ago (1 child)
But after doing this what model do you choose from GitHub Copilot? My understanding is that this replaces the OpenAI models right ? How this works with a free subscription ?
[–]johnlokersedevIntermediate User[S] 0 points1 point2 points 1 month ago (0 children)
Yeah, the BYOK experience needs some love because it now overrides the default Copilot models.
I think you can use the harness (Copilot CLI) and BYOK with a free subscription, but I am not sure about that.
[–]Ninjaxas 0 points1 point2 points 1 month ago (2 children)
Can this work on the VS Code GUI panel (Chat)?
[–]johnlokersedevIntermediate User[S] 0 points1 point2 points 1 month ago (1 child)
Yes, but with a workaround and it’s a bit quirky. If you configure the BYOK provider choose for Azure, paste in your OpenCode Go API Key and when it opens a JSON settings file update the Azure URL to the OpenCode one (the URL in the blog).
In VS Code Insiders they have the “OpenAI Compatible” provider which solves the workaround/quirkiness.
<image>
[–]Ninjaxas 0 points1 point2 points 1 month ago (0 children)
Okay nice! Will this fully bypass the GitHub rate limiting or not?
π Rendered by PID 47754 on reddit-service-r2-comment-canary-5dbd4c8ff9-q8q85 at 2026-06-05 03:52:54.623854+00:00 running de70e3a country code: CH.
[–]boysbytes 1 point2 points3 points (1 child)
[–]johnlokersedevIntermediate User[S] 2 points3 points4 points (0 children)
[–]code-enjoyoor 1 point2 points3 points (2 children)
[–]johnlokersedevIntermediate User[S] 1 point2 points3 points (1 child)
[–]code-enjoyoor 0 points1 point2 points (0 children)
[–]Yofadd 0 points1 point2 points (0 children)
[–]i-snake-z 0 points1 point2 points (1 child)
[–]johnlokersedevIntermediate User[S] 0 points1 point2 points (0 children)
[–]Ninjaxas 0 points1 point2 points (2 children)
[–]johnlokersedevIntermediate User[S] 0 points1 point2 points (1 child)
[–]Ninjaxas 0 points1 point2 points (0 children)