Docs · Guide
JetBrains Copilot on any model
The GitHub Copilot plugin in JetBrains IDEs (IntelliJ IDEA, PyCharm, GoLand and the rest) and Android Studio takes other vendors' models through Bring Your Own Key: Manage Models… in Copilot Chat's model picker, then Add Custom Endpoint Provider. packinggoods writes that custom endpoint for you, named packinggoods, so every model in packinggoods (DeepSeek, GLM, Kimi, Qwen, Claude, a ChatGPT subscription and the rest) is in Copilot Chat's picker. To use a Copilot subscription in other agents instead, see GitHub Copilot in Claude Code, Codex, Gemini CLI and OpenCode.
Set up JetBrains Copilot
- Add a provider in packinggoodsAdd an API key on the Providers page, or sign in to a subscription.
- Set Copilot (JetBrains)'s provider to packinggoods on the Agents pagepackinggoods writes its endpoint into Copilot's byok.json.
- Restart the IDEThe IDE lists the endpoints when Copilot signs in, so packinggoods's models show after a restart.
- Pick a model in Copilot Chat's model pickerpackinggoods's models are listed under packinggoods. The IDE keeps the one you pick in its project files.
packinggoods lists Copilot (JetBrains) on the Agents page when a JetBrains IDE or Android Studio has the github-copilot-intellij plugin in its plugins folder, or when byok.json already has packinggoods's endpoint.
Which Copilot plan
Bring Your Own Key needs Copilot signed in to GitHub. The personal plans, Copilot Free, Pro and Pro+, have it; Business and Enterprise have it when the organisation's policy allows it. Its requests say GithubCopilot/<server version>, as every client of the Copilot language server does, so packinggoods tells them apart by their key.
byok.json
The JetBrains plugin keeps none of this itself. It asks the Copilot language server it bundles (copilot-language-server), which keeps every custom endpoint in one JSON file and reads it again each time it is used:
- With
$XDG_CONFIG_HOMEset (and absolute):$XDG_CONFIG_HOME/github-copilot/byok.json - Windows:
%USERPROFILE%\AppData\Local\github-copilot\byok.json - macOS and Linux:
~/.config/github-copilot/byok.json
A custom endpoint is three keys there. packinggoods writes them as the language server itself saves them:
// ~/.config/github-copilot/byok.json
{
"packinggoods-provider-config": { "groupName": "packinggoods", "apiType": "chatCompletions" },
"packinggoods-api-key": "",
"packinggoods-models-config": {
"…": {
"deploymentUrl": "http://127.0.0.1:3425/v1/chat/completions",
"isRegistered": true,
"isCustomModel": true,
"modelCapabilities": {
"name": "…", "maxInputTokens": …, "maxOutputTokens": …,
"toolCalling": true, "vision": …
}
}
},
…
} Each model points at the gateway's /v1/chat/completions, with the key sent as a Bearer token. The key is in this file in plain text, not in the IDE's password safe. Xcode's and Eclipse's Copilot run the same language server and read the same file, so they list packinggoods's models too.
Agent mode and context
Tool calling is on for every model, as Copilot's agent mode lists only models that call tools. maxInputTokens is the window the server fills: the context length from packinggoods's catalog, or the server's own 128K default for a custom endpoint when that isn't known. maxOutputTokens stays within that window.
What stays yours
Your other endpoints and keys in byok.json stay as they are. A packinggoods model you hid in the IDE's Manage Models stays hidden after a sync. When nothing changed, packinggoods doesn't write the file, so it stays as the language server last wrote it.
Switching back
When you switch Copilot (JetBrains) off in packinggoods, packinggoods deletes its three keys from byok.json. Your own endpoints are left alone.
FAQ
Can Copilot in JetBrains use DeepSeek or GLM?
Yes. packinggoods writes a custom endpoint into Copilot's byok.json; restart the IDE and pick a model under packinggoods in Copilot Chat's picker.
Does Copilot Business work?
Bring Your Own Key works on Business and Enterprise when the organisation's policy allows it, and on Free, Pro and Pro+.
Can agent mode use packinggoods's models?
Yes. packinggoods turns tool calling on for every model, and Copilot's agent mode lists only models that call tools.
Do Xcode's and Eclipse's Copilot get them too?
Yes. They run the same Copilot language server and read the same byok.json.
More agents on the same models: VS Code on any model, Copilot CLI on any model, OpenMausBot on any model and Kiro Crew on any model. Something fails? See Fixing common errors, or ask on Discord.