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
{{ message }}
Repository navigation
Does it support configuring the model provider? #47
@sisrnb , are you asking Copilot ACP to suppot BYOK?
In latest version, it should be supported. You could be able to config acp.json of JetBrains IDE like below:
I am using copilot-language-server to provide AI code completion for neovim.
Line 108 of https://github.com/neovim/nvim-lspconfig/blob/master/lsp/copilot.lua specifies the startup command and arguments for copilot-language-server, which do not include the --acp parameter. copilot-language-server needs to run in LSP mode; otherwise, code completion does not work. I tried adding the --acp parameter, but code completion failed to function properly.
I have confirmed that GitHub Copilot CLI supports BYOK (Bring Your Own Key). That is, after setting the following environment variables and then running the copilot command, copilot can directly converse without prompting for login:
I downloaded the latest version 1.509.0 of copilot-language-server and replaced the older one, but it still does not respond to the above environment variables (when running without the --acp parameter).
As far as i know BYOK/Offline mode has been implemented for Copilot in VSCode, Copilot CLI and has been announced to be implemented for VS Professional. Seems to be part of a new strategy at MS. So it should probably be enabled for LSP mode too. Otherwise integrations depending on LSP (f.e. the official copilot plugin for eclipse?) might not be able to implement this BYOK/Offline mode.
Activity
formulahendry commentedon Jun 18, 2026
@sisrnb , are you asking Copilot ACP to suppot BYOK?
In latest version, it should be supported. You could be able to config acp.json of JetBrains IDE like below:
{ "agent_servers": { "GitHub Copilot npx": { "command": "npx", "args": [ "@github/copilot-language-server@latest", "--acp" ], "env": { "COPILOT_PROVIDER_BASE_URL": "https://openrouter.ai/api/v1", "COPILOT_PROVIDER_API_KEY": "sk-or-v1-xxxxxx", "COPILOT_MODEL": "cohere/north-mini-code:free" } } } }sisrnb commentedon Jun 21, 2026
@formulahendry Hi,
I am using
copilot-language-serverto provide AI code completion forneovim.Line 108 of https://github.com/neovim/nvim-lspconfig/blob/master/lsp/copilot.lua specifies the startup command and arguments for
copilot-language-server, which do not include the--acpparameter.copilot-language-serverneeds to run in LSP mode; otherwise, code completion does not work. I tried adding the--acpparameter, but code completion failed to function properly.I have confirmed that GitHub Copilot CLI supports BYOK (Bring Your Own Key). That is, after setting the following environment variables and then running the
copilotcommand,copilotcan directly converse without prompting for login:I downloaded the latest version 1.509.0 of
copilot-language-serverand replaced the older one, but it still does not respond to the above environment variables (when running without the--acpparameter).My operating system is Ubuntu 24.04.3 LTS.
formulahendry commentedon Jun 24, 2026
For now, only with
--acpparameter, the copilot-language-server will respect thoseCOPILOT_PROVIDER_BASE_URLenv.You may try with a neovim ACP Client: https://agentclientprotocol.com/get-started/clients#editors-and-ides
bstoltefuss commentedon Jul 2, 2026
As far as i know BYOK/Offline mode has been implemented for Copilot in VSCode, Copilot CLI and has been announced to be implemented for VS Professional. Seems to be part of a new strategy at MS. So it should probably be enabled for LSP mode too. Otherwise integrations depending on LSP (f.e. the official copilot plugin for eclipse?) might not be able to implement this BYOK/Offline mode.
sisrnb commentedon Jul 7, 2026
Thank you all for your replies.
One more question: In the future, without the
--acpparameter, will the copilot-language-server respect those COPILOT_PROVIDER_BASE_URL env vars?