Skip to content

Allow Claude Agent to run through Anthropic subscription instead of Copilot quota #314952

Closed

Description

@Beldaa

I would like VS Code to support using Claude Agent (Preview) directly through an Anthropic / Claude subscription or Anthropic API credentials, instead of only consuming the user’s GitHub Copilot subscription.

This feature request comes from a real misunderstanding I had while using the feature. Since Claude Agent is described as using the official Anthropic agent harness / Claude Agent SDK, I initially assumed that the Claude usage would be tied to my existing Claude/Anthropic subscription, or at least that there would be a way to use it directly through Anthropic.

The confusion mainly came from the agent/model selector, where seeing Claude Agent listed made me assume that it could be used through my Claude/Anthropic subscription.

Image

Because I misunderstood this billing model, I ended up spending around $300 extra in requests in a single week. This is not meant as a complaint, but as context for why making the billing/authentication model more explicit, or supporting direct Anthropic usage, would be valuable.

Ideally, Claude Agent could offer a provider/authentication option such as:

  • Use via GitHub Copilot subscription
  • Use via Anthropic / Claude subscription
  • Use via Anthropic API key or Claude Code authentication

This would allow users to choose explicitly how Claude Agent usage is authenticated and billed.

If supporting direct Anthropic authentication inside the existing Claude Agent option is not desirable, I would also see it as a viable alternative to add a separate option to the current agent/model selector, clearly indicating that this version runs through the user’s Anthropic/Claude subscription instead of Copilot.

For example, the selector could include two clearly separated entries:

  • Claude Agent — via Copilot subscription
  • Claude Agent — via Anthropic subscription

This would make the billing model explicit and avoid confusion, while still preserving the current Copilot-based integration as the default or recommended option.

From a user perspective, this seems potentially feasible, since the existing Claude extension for VS Code already allows users to work with Claude through their own Claude/Anthropic access. I understand there may be product, technical, or legal considerations on the VS Code/Copilot side, but having a similar option in the integrated chat/agent selector would be much more convenient.

The main benefit would be that developers who already use Claude or Claude Code could use the full Claude Agent SDK experience inside VS Code without consuming Copilot quota or premium requests. It would also make the integration more flexible and clearer, especially for users who want to keep Copilot and Anthropic usage separate.

Even if direct Anthropic authentication is not planned, it would be very helpful to make the billing/usage model more explicit in the UI, so users do not mistakenly assume that Claude Agent usage is covered by their Claude subscription.

Activity

  1. DraftProducts commented on May 23, 2026

    @DraftProducts

    +1 on this. I ran into exactly the same confusion.

    What makes it especially misleading, in my opinion, is that in the "new session" creation UI, Claude is presented as separate from Copilot CLI. Seeing it listed as its own distinct entry naturally suggests it runs through your own Claude access, not through Copilot quota.

  2. etomeiphone-spec commented on May 24, 2026

    @etomeiphone-spec

    +1 here

  3. wagnerpaz commented on May 29, 2026

    @wagnerpaz

    Please!

  4. Javierx1 commented on Jun 1, 2026

    @Javierx1

    +1 here

  5. RauchenwaldC commented on Jun 2, 2026

    @RauchenwaldC

    +1 blew through 7,000 AI credits in two prompts today due to that misunderstanding.

  6. yCodeTech commented on Jun 3, 2026

    @yCodeTech

    I would also love to see this too. I have a personal copilot pro subscription but my work has a anthropic/claude subscription. It would be beneficial to allow claude agent to run using anthropic subscription, so I'm not using my personal copilot subscription at work.

  7. p0rsche commented on Jun 25, 2026

    @p0rsche

    +1 to this. would like to differentiate my claude sub from copilot in Agents window

  8. added
    feature-request
    claude-agent
    agent-host
    on Jun 25, 2026
  9. 7 remaining items

  10. vs-code-engineering commented on Jun 26, 2026

    @vs-code-engineering
    Contributor

    Sharing media and context from merged PR #323037 for verification:

    What

    Adds native (BYOK) access for the Claude agent host and the transport-branched model source it builds on (roadmap Phases 18 & 19).

    When claudeUseCopilotProxy: false, the Claude Agent SDK uses whatever Claude is configured with directly on the user's own credentials — no Copilot proxy in the request path. Proxy mode (the default) is unchanged.

    How to use

    This is only through the Agent Host, so first apply these VS Code settings:

    "chat.agentHost.enabled": true,
    "chat.editor.claude.preferAgentHost": true,
    "chat.agents.claude.preferAgentHost": true
    

    Then, we need to apply Agent Host Settings so right click on an agent host session in the Agents Window:
    image

    Choose "Open Host Settings" and then add claudeUseCopilotProxy: false to that.

    Highlights

    • Phase 18 — transport-branched model source. Proxy mode lists Claude models from CAPI; native mode enumerates via the SDK's query().supportedModels(). Single branch point (_refreshModels → proxy/native).
    • Phase 19 — direct Claude access. Native transport omits the proxy base-url/auth-token and lets the SDK resolve credentials itself.
    • Native auth = subprocess env. ANTHROPIC_API_KEY, or a subscription OAuth token in CLAUDE_CODE_OAUTH_TOKEN (from claude setup-token). Fixes SDK ≥0.3 env-replace semantics by spreading process.env in native mode so the token + PATH actually reach the claude subprocess (previously wiped → "Not logged in").
    • IClaudeAgentSdkService stays 1:1 with the SDK. Adds a query() passthrough; the model-enumeration orchestration moved to the caller, which close()s the throwaway query (leak guard, covered by a test).
    • Cleanup: removed the speculative native-binary-path feature (it only selects which claude build runs, never the credentials); moved ClaudeTransport into claudeProxyService.ts; dropped a trivial model-list helper; simplified buildSubprocessEnv.

    Note: the interactive claude login keychain session is not used in headless/SDK mode — verified empirically. Headless subscription auth requires CLAUDE_CODE_OAUTH_TOKEN.

    Test plan

    • ./scripts/test.sh --grep "claude|Claude" — all green (incl. native env-inheritance, native model enumeration, and the new close()/leak-guard test).
    • npm run typecheck-client — clean.
    • E2E: launched Code OSS --agents with claudeUseCopilotProxy: false + CLAUDE_CODE_OAUTH_TOKEN; native turns authenticate and the model picker shows native models with no proxy started.

    Draft — opening for early review.

    Source PR: #323037

  11. added
    insiders-released
    verification-needed
    and removed
    unreleased
    on Jun 26, 2026
  12. redfalcon6 commented on Jul 5, 2026

    @redfalcon6

    I don't have that context menu?

    Image
  13. added
    verified
    and removed
    verification-needed
    on Jul 6, 2026
  14. TylerLeonhardt commented on Jul 6, 2026

    @TylerLeonhardt
    Member

    You gotta apply those settings and then restart VS Code. Then, it'll show up in the context menu of one of the Claude sessions.

  15. vuon9 commented on Jul 24, 2026

    @vuon9
    Contributor

    You gotta apply those settings and then restart VS Code. Then, it'll show up in the context menu of one of the Claude sessions.

    I'm on v1.130.0 (Universal) and can't see those Context menu options when those settings are all enabled.

  16. Da-Teach commented on Aug 27, 2026

    @Da-Teach

    Another victim here, although not $300, only this month's credits... Well positive point, I could resume my (failed) chats with Claude fine, so it's not too bad I guess :)

  17. stavthal commented on Sep 9, 2026

    @stavthal

    Still, the agent is buggy as hell . You cannot even choose Claude Opus on a Max subscription through the Agents window.

  18. gabriel-vanca commented on Sep 23, 2026

    @gabriel-vanca

    +1. I ran into exactly the same confusion. Absolutely unacceptable to not make it clear to people what they are consuming/paying for.

  19. locked and limited conversation to collaborators on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agent-hostclaude-agentfeature-requestinsiders-releasedverified

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions