無制限 Claude で GitHub Copilot を動かす
Copilot のエージェントモードはファイルの再読込・計画・編集をループで繰り返すため、集中した一回のセッションでも驚くほどのトークンを動かします。その背後に定額・無制限の Claude プランを置けば、その量は問題でなくなります——エージェントが10回呼ぼうと1万回呼ぼうと、料金は同じです。
Bring your own key, without the meter
Copilot's bring-your-own-key flow is what makes this possible. Open the model picker, go to Manage Language Models, Add Models, and choose Custom Endpoint. With an unlimited plan you can wire it once and never think about per-request cost again.
Custom Endpoint replaced the old OpenAI Compatible option. Add one entry per Claude model you want available, knowing every one of them draws from the same flat-rate plan rather than a separate meter.
This changes how you think about which models to register. On metered access people add the cheapest model that will do and leave it there; on a flat-rate plan there is no reason not to register the strongest model alongside it, because using either one costs exactly the same over the period. Registering the full set of Claude models up front costs nothing on this plan and saves you a config trip later.
Point it at the Messages surface
For each model pick the Messages API type and set the URL to the full /v1/messages endpoint. The unlimited gateway serves Claude over the native Anthropic surface, so Messages is the type that matches.
Getting the type right on the first try matters more when you intend to lean on the model. You want the entry solid so that long unlimited sessions never trip on a mismatched wire format halfway through a task.
Spend a minute confirming the entry with a short prompt before you start relying on it. The whole appeal of unlimited is leaving the model running through long work, and a five-second sanity check up front is what lets you trust those long runs not to fail on a misconfigured URL. A solid entry pays for itself across the many long sessions an unlimited plan invites you to run.
Token limits you no longer ration
Each model entry takes an id such as claude-sonnet-4-5 or claude-opus-4-8 and token limits where maxInput plus maxOutput stays within the context window. On metered billing people deliberately shrink these to save money; on unlimited you can set them to the full window.
That difference is the whole point. With the meter gone you stop trimming context to control spend and instead size the request for the best result, because a larger request costs exactly the same as a small one.
Bigger limits translate directly into better answers in Copilot. A generous maxInput lets the agent pull in more of the surrounding code before it responds, and a generous maxOutput lets it return a complete edit instead of a truncated one — both of which you would normally hesitate to allow on a meter. Full-window limits turn out to be one of the most tangible everyday benefits of dropping the meter.
Let agent mode run long
Agent mode needs tool calling, and the gateway forwards Claude's tool calls so it works. The real benefit of unlimited shows up here: an agent that retries, explores, and edits across many files would be unpredictable on per-token pricing.
On a flat-rate plan you simply let it finish. A loop that runs for an hour and a loop that runs for five minutes land on the same bill, so you point the agent at a hard task and walk away.
It also removes the temptation to interrupt the agent early to save money, which often produces worse results than letting it complete. When stopping and continuing both cost nothing, you make that decision purely on whether the work is done, not on what the next batch of tokens will add to the invoice. Letting agent runs complete is, in practice, where most of the value of a flat rate actually lands.
If a model does not show
If a newly added model is missing from the picker, restart VS Code — the list is cached and a restart refreshes it. This is the same quirk everyone hits regardless of plan.
Beyond that, confirm the key works against the gateway and keep the agent-capable model selected for heavy work. Because the plan is unlimited there is no reason to switch down to a weaker model to save tokens.
If the key checks out against the gateway but Copilot still errors, the problem is almost always the entry rather than the plan — an API type that does not match the URL, or a token limit set above the context window. None of these relate to usage, so they are quick to rule out and fix. Because none of these checks touch usage, you can rule them out without ever glancing at a counter.
// VS Code -> model picker -> Manage Language Models -> Add Models
// -> Custom Endpoint (NOT the deprecated OpenAI Compatible)
// API type: Messages
// URL: https://claudeapikey.dev/v1/messages
// Model id: claude-sonnet-4-5
// API key: <your gateway key>
// maxInput + maxOutput must be <= the model context window
// Restart VS Code if the model does not appear in the picker.
FAQ
無制限 Claude プランで GitHub Copilot を動かせますか?
はい——Copilot に Custom Endpoint を追加し、API タイプを Messages、URL を {SITE}/v1/messages、Claude のモデル ID を指定します。定額プランがすべてのリクエストをカバーします。
なぜ Copilot に無制限が向いているのですか?
エージェントモードはファイルと編集をループし、高く予測しにくいトークン量を生みます。無制限ならセッションがどれだけ長くても料金は固定です。
モデルがピッカーに出てきません——なぜ?
Copilot はモデル一覧をキャッシュします。VS Code を再起動すれば表示されます。Messages API タイプが /v1/messages の URL と一致しているかも確認してください。
無制限プランにトークン上限はありますか?
プラン期間中はトークン上限なし。ゲートウェイの応答性を保つためのフェアユースのレート制限のみです。
Get an API key — no Anthropic account or waitlist required.
Get your API key