Guide

Use Claude Code or Codex in Zed: choose your billing route

Choose between Zed Agent, external agents and terminal threads before connecting Claude or ChatGPT. Check who owns sign-in, tools and billing.

By BringYourSubs5 min read

To use a Claude or ChatGPT plan in Zed, first choose the agent surface, then configure that surface's sign-in. A key saved for Zed Agent does not automatically configure a Claude Agent or Codex external thread. Zed says external agents own their provider relationship and that Zed does not charge for those agents. Inference billing still belongs to the selected provider route. See Zed's external-agent documentation.

That distinction matters before you send code. The editor, the agent runtime and the model account can be separate. This guide maps those boundaries from documentation checked on 1 December 2026; it is not a paid-session test. Start with the Zed listing for directory context, or the Claude and ChatGPT hubs for other apps.

Which Zed surface uses which account?

Zed's existing-subscription guide and AI by Company table separate native provider configuration, ACP external agents and terminal workflows. Use the table below to identify the route you intend to configure.

Surface What you are choosing Billing check before a request
Zed-hosted models Zed's hosted model service Zed lists this as billed through Zed
Zed Agent with an OpenAI or Anthropic API key API access configured in Zed Provider API billing, rather than assuming a chat subscription pays
Zed's ChatGPT Subscription provider path Subscription-backed OpenAI models for Zed AI features Zed lists ChatGPT Plus or Pro; sign in with OpenAI in Zed, without an OpenAI API key
Claude Agent or Codex through ACP A separate agent process shown inside Zed Configure and check that agent's own authentication and billing
Claude Code or Codex in a Terminal Thread The native CLI or TUI inside a terminal-backed thread Check the CLI's account and provider configuration

This is a route map, not a promise that every model or plan works through every row. In particular, do not transfer eligibility from a commercial app's general ChatGPT plan list to a different Zed integration. OpenAI's app-plan help says account eligibility and the participating app's requirements both matter.

How do you start a subscription-backed external agent?

Zed documents the ACP Registry as the primary installation path. Open zed: acp registry, or open Agent Settings, choose External Agents, then Add Agent and Install from Registry. After installation, start the selected agent from the Agent Panel or Threads Sidebar. These steps come from Zed's external-agent setup.

For Claude Agent, Zed says to open its thread and run /login to choose authentication with an API key or Claude Code where supported. An Anthropic API key configured for Zed Agent does not automatically configure Claude Agent. For Codex, Zed directs you to the thread's native login/logout flow and warns that supported authentication depends on the installed version and environment. Do not assume a successful OpenAI API setup elsewhere in the editor establishes a ChatGPT-funded Codex session.

Our recommended stopping point is before the first substantive request: identify the agent, the signed-in account and the selected billing route. If any is unclear, resolve it in that integration's setup flow rather than adding an API key merely to make an error disappear. The broader login-failure guide explains why a sign-in failure and exhausted usage need different fixes.

What does a Claude subscription permit here?

Zed's company routing page points Claude subscription users toward Claude Agent or Claude Code where supported, rather than treating Pro or Max as Anthropic API credits. That is a maker-documented route, not an independent approval of every ACP adapter or version.

Anthropic's Claude Code legal page distinguishes an end user signing in to the unmodified Claude Code binary from a third party collecting credentials or routing requests on users' behalf. Keep authentication in Anthropic's own flow. Do not copy session tokens into an editor setting, a plugin or a chat to reproduce a subscription connection.

If the integration asks for an API key, treat that as an API route until its documentation establishes otherwise. The Claude subscription policy guide explains the wider distinction; this page does not claim that ACP itself grants an entitlement.

Do Zed's tools and permissions follow the agent?

Not as one package. Zed's configuration-boundary table says Zed Agent profiles do not apply unless the integration says otherwise, and Zed Skills do not apply as Zed Skills. Native skills and instructions depend on the agent. Zed-configured MCP servers may be forwarded over ACP, while the agent may also read its own MCP configuration.

Before continuing work in an external thread, review both sides: which MCP servers Zed forwards, which servers the agent loads natively, and which permissions govern the tools you intend to use. A visible tool is not proof that an old approval policy was preserved. Keep the initial task limited to reviewing the project and proposing changes if you have not checked those controls.

For a missing MCP tool, Zed recommends checking its MCP configuration and the agent's native configuration. For protocol problems, it documents dev: open acp logs. Redact account details and sensitive request content before sharing diagnostics. For portable instruction files, use the separate skills migration guide.

What should you check on a remote project?

Zed warns that external agents can read credentials locally, remotely or through their own sign-in flow. Local Zed provider keys are not automatically the external agent's credentials. On SSH projects or dev containers, check the agent-specific setup path instead of assuming the account from your local terminal is active. See Zed's remote-project notes.

Record the integration version, project location, active account and intended funding route before starting a long job. This is our suggested acceptance note, not an output we observed. Keep credentials out of it. After an authorized request, inspect the provider's usage view rather than inferring billing from the editor's appearance.

What is the shortest reliable preflight?

Choose one surface. Install or configure that surface using its own documentation. Confirm its account and whether it uses subscription entitlement or API billing. Review native tools and forwarded MCP servers. Then decide whether to authorize a small request, keeping any resulting usage receipt separate from a setup checklist.

If you are moving existing work rather than starting fresh, compare this with Kilo's documented transcript-import workflow. A familiar conversation does not establish a familiar runtime or payer in either editor.

What are the common questions?

Does Zed charge for external agents? Zed says it does not. The agent provider's billing and terms still apply; that statement is not a promise of free inference.

Will Zed's API key automatically sign Codex into ChatGPT? No. Zed explicitly separates those configurations. Use the installed Codex integration's native authentication flow.

Can I assume a Claude Agent thread uses my Claude plan? No. Check its selected authentication route. Zed documents both API-key and Claude Code authentication where supported.

Is an imported thread proof that permissions carried over? No. Review the external agent's native configuration and Zed's forwarding controls separately.

Was a paid session tested for this article? No. This is a documentation-based route map, with no installed-app or billing certification.

Questions people ask

Does paying for Zed give me Claude Code or Codex usage?
Zed says external agents have their own provider relationships and Zed does not charge for them. Their inference entitlement and billing still depend on the agent's account and selected authentication route.
Does an API key saved for Zed Agent configure an external agent?
Not automatically. Zed explicitly separates its OpenAI and Anthropic provider keys from the authentication used by Codex and Claude Agent threads.
Can I use my Claude subscription instead of an Anthropic API key?
Zed directs subscription users to Claude Agent or Claude Code where supported. Check the installed integration and use Anthropic's own sign-in flow; a subscription is not Anthropic API credit.
Do my Zed Agent profiles and skills apply to external agents?
Zed says profiles do not apply unless the integration states otherwise, and Zed Skills do not apply as Zed Skills. Native agent instructions and permissions need their own review.
Has this guide tested a paid Zed session?
No. It maps the current maker documentation and provides a preflight checklist. It does not certify a particular installation, model request or billing result.

Sources

  1. Use an Existing Subscription, Zed, 2026-12-01
  2. External Agents, Zed, 2026-12-01
  3. AI by Company, Zed, 2026-12-01
  4. Legal and compliance, Anthropic, 2026-12-01
  5. Using your ChatGPT plan in other apps and sites, OpenAI, 2026-12-01