Compare by what matters

Can a coding agent use your ChatGPT or Claude plan, or does it need an API key?

A chat subscription and an API key are two different ways to pay for a model. A subscription is a fixed monthly price with a usage limit; an API key is billed for every token used. On 1 December 2026 several coding agents let you use a subscription you already pay for: Devin links a personal ChatGPT plan, Factory's free plan signs in with ChatGPT or GitHub Copilot, and Amp links ChatGPT and Claude plans. Codex and Claude Code come with their own chat plans. Others need an API key or their own plan.

Published December 1, 2026. Editorial.

Key takeaways

  • Devin can bill the GPT part of a session to a linked personal ChatGPT Go, Plus or Pro plan; ChatGPT Business, Team, Enterprise and Free accounts cannot be linked.
  • Factory's Free plan signs in with ChatGPT, GitHub Copilot, OpenRouter or Vercel AI Gateway, or takes your own API keys; its paid plans use Factory's own model access.
  • Amp says tokens from your own ChatGPT or Claude subscription carry no Amp fees or limits on every tier except Enterprise.
  • Codex cloud tasks need a ChatGPT plan; an API key alone gives the command line, kit and editor without cloud features.
  • The Claude Code GitHub Action accepts either an API key or a token tied to a Claude subscription.

Many developers already pay for a chat assistant: ChatGPT, Claude or GitHub Copilot. When they look at coding agents, the first practical question is whether that subscription can pay for the agent's model use, or whether they need a separate account and an API key. The answers changed through 2026, and they differ for every agent.

This page explains the two ways to pay for a model, then lists what each agent accepts, from each vendor's own pages read on 1 December 2026.

Two ways to pay for a model

A chat plan is a monthly subscription sold to a person: ChatGPT Plus, Claude Pro, Copilot Pro and their larger versions. The price is fixed, and the plan sets a usage limit, often over a time window. When you reach the limit, you wait, buy extra usage or move to a larger plan.

An API key is a credential for a developer account with a model provider. It is billed for every token, the small pieces of text a model reads and writes. There is no fixed price: a quiet month costs little, a heavy month costs a lot. Companies often buy model access this way because it comes under a business contract and can be limited and audited centrally.

Coding agents use a lot of tokens, because they read files, run commands, read the output and try again. That makes the payment method matter more for agents than for chat, and it is why limits run out faster when an agent does the work.

What each agent accepts

Agent Chat subscription Own API key Notes from the vendor
Devin Personal ChatGPT Go, Plus or Pro, for the GPT part of sessions [1] Not described on the pages we read Business, Team, Enterprise and Free ChatGPT accounts cannot be linked [1]
Factory Free plan: ChatGPT, GitHub Copilot, OpenRouter or Vercel AI Gateway sign-in [2] Free plan: your own keys or custom endpoint [2] Paid plans use Factory's managed model access [2]
Amp ChatGPT and Claude subscriptions can be linked [3] Yes [3] No Amp fees or limits on those tokens, except on Enterprise [3]
OpenAI Codex Comes with ChatGPT plans from Plus for cloud work [4] Command line, kit and editor only; no cloud features [4] Shares the allowance with ChatGPT [4]
Claude Code Comes with Claude plans from Pro for cloud sessions GitHub Action accepts an API key [5] GitHub Action also accepts a Claude subscription token [5]
GitHub Copilot Comes with Copilot plans [6] Not applicable Pro+ and up can hand tasks to Claude and Codex, as a preview [6]
Grok Build Comes with Grok plans Not described on the pages we read "Third-party models in Grok Build are billed separately" [9]
OpenHands No Yes, on every plan [7] Can also run other agents such as Codex and Claude [7]
Harness No Anthropic API key for pipeline agents [8] Harness AI must be enabled on the account

Sources: each vendor's pages, as cited. "Not described" means the pages we read do not mention it; ask the vendor.

The agents that accept a subscription you already have

Three agents accept a chat subscription from another company.

Devin links a personal ChatGPT plan. Cognition calls it token sharing: once linked, "GPT model usage in your sessions is billed to your ChatGPT plan instead of your Devin quota" [1]. In Devin Cloud, linking switches sessions to GPT models, and a session where you pick a model from another provider is billed to Devin as usual [1]. The limit that matters for companies is in the same document: only personal Go, Plus and Pro plans can be linked, not Business, Team or Enterprise workspaces [1].

Factory's Free plan is built on this idea. You "bring your own inference" by signing in with ChatGPT, GitHub Copilot, OpenRouter or Vercel AI Gateway, or by connecting your own keys [2]. The paid plans switch to Factory's managed model access with rolling limits [2].

Amp goes furthest. Its pricing document opens by saying you can link a ChatGPT subscription for more GPT use and a Claude subscription for Claude models, and then says that on every tier except Enterprise, tokens from your own subscriptions and API keys "have no Amp fees or limits" [3].

The agents that come with their own subscription

Codex, Claude Code and Copilot are each paid by the maker's own plan. OpenAI says "ChatGPT Work and Codex share pricing, credits, and usage limits" [4]. Anthropic counts Claude Code cloud sessions toward the Claude plan's limits. GitHub counts Copilot agent work in AI credits on the Copilot plan [6].

Two details cross the line between the methods. Codex with an API key alone gives the command line, kit and editor, but "No cloud-based features (GitHub code review, Slack, etc.)" [4]. And the Claude Code GitHub Action can use either "a Claude API key" or "an OAuth token that authenticates with your Claude subscription, available on Pro, Max, Ultra, Team, and Enterprise plans" [5]. For a small team that wants an agent in its pipeline without a separate API account, that second option is useful.

GitHub adds a different crossing. On Copilot Pro+ and higher, its plans page lists handing tasks to "third-party coding agents like Claude by Anthropic and OpenAI Codex (Preview)" [6]. The Copilot plan becomes the place you start the work, whichever agent does it.

The agents that need your own key

OpenHands uses your own model key on every plan, from the free open-source version to Enterprise [7]. Harness's documented pull request agents take an Anthropic API key, stored as a secret in the pipeline [8]. With both, the model provider bills you directly and its terms decide how long your code is kept. This arrangement suits a company that already has a business contract with a model provider: the agent adds no second model bill and no second set of data terms.

What happens when a limit runs out

A subscription's limit decides what an agent does on a busy day, so it is worth knowing each vendor's answer before you rely on one.

Factory says that when a rolling limit is reached, "The current request finishes, then subsequent requests receive a Rate Limit error". You can then switch to Droid Core, its pool of smaller open models with separate limits, or turn on Extra Usage, prepaid credit with a $10 minimum [2].

GitHub's plans page says that when you have used the monthly allowance, you can wait for the next cycle, when the included allowance resets, or buy additional GitHub AI Credits [6].

OpenAI says eligible plans can extend Codex usage with credits or usage-based billing [4].

Amp says that after the included usage runs out, you buy credits at list price, and that tokens from linked subscriptions and your own keys carry no Amp limits on the non-enterprise tiers [3]. The linked subscription's own limit still applies.

For an agent started by hand, a limit is an interruption. For an agent started by a schedule or a pipeline, it is a design question: the job will either stop, slow down or spend more. Decide which, write it into the job's settings, and tell the person who reads the results.

Three mistakes to avoid

Using one person's plan for the whole team. Read the vendor's terms on shared accounts before anyone tries it. A shared login also hides who started which task, makes it impossible to remove one person's access without stopping everyone, and puts the whole team's work behind one person's limit.

Mixing chat and agent work on one limit without watching it. Codex shares the ChatGPT allowance and Claude Code shares the Claude limit [4]. A developer who spends the morning in chat may find the afternoon's agent tasks stopped. Watch the first week's usage and move heavy users to a larger plan or a separate account for agent work.

Storing API keys in the wrong place. A key in a repository, a chat message or a laptop file can be copied. Keep keys in the secret store your pipeline or agent offers, such as a repository secret for the Claude Code GitHub Action [5] or a pipeline secret for Harness's agents [8], and rotate them when someone leaves.

Policy questions for a company

Linking a personal subscription to a work tool is easy to do and harder to approve. Three questions come before any technical setup.

Whose terms apply? When an agent bills a chat plan, the model provider's terms for that plan apply to the code the agent sends. OpenAI says Business, Enterprise and Edu workspace data is not used to train its models by default [10]; personal plans have their own settings. A company that wants all code under business terms should check which account pays for each agent.

Who pays, and who can see the bill? A personal plan is paid by a person. If agent work runs through it, the company cannot see or limit the spending in one place, and the person may hit a limit in the middle of company work.

What happens when someone leaves? A token tied to a person's subscription stops working when that subscription ends. Agents running on schedules or in pipelines should use company accounts or company keys, stored in the company's secret store.

How to decide

For a person trying agents, a linked chat plan is the cheapest start: Factory's free plan or Amp with a plan you already pay for, or Devin with a personal ChatGPT plan. For a team, use the agent's own team plan or company API keys, so usage, limits and data terms sit under one contract. Then run the comparison in the two-week pilot plan, and record which account paid for each task, so the final cost per merged pull request includes every bill.

Best for

  • Developers who already pay for ChatGPT, Claude or Copilot and want to try an agent at low extra cost.
  • Companies setting a policy on which accounts may pay for agent work.

Avoid if

  • Relying on a personal subscription for company work your rules say must run under a company contract.
  • Planning heavy automated use on a subscription built for one person's interactive use.

Check before you decide

  • Your company's policy on linking personal subscriptions to work tools.
  • The chat provider's terms for using its plan through another company's tool.
  • The data terms of the account that pays, since they decide training and retention.

Common questions

What is the difference between a chat plan and an API key?

A chat plan, such as ChatGPT Plus or Claude Pro, is a monthly subscription with a usage limit, sold to a person. An API key is a credential for a developer account that bills for every token the model reads and writes. Agents that accept a chat plan give a fixed cost; agents on an API key give a variable one.

Can I use my ChatGPT plan with Devin?

Yes, if it is a personal ChatGPT Go, Plus or Pro plan. Cognition's billing page says you can link it so GPT model use in your sessions is billed to ChatGPT instead of your Devin quota. Free ChatGPT accounts and Business, Team or Enterprise workspaces cannot be linked, and sessions on non-GPT models still use the Devin quota.

Can I use my Copilot subscription with an agent other than Copilot?

Factory's Free plan lists signing in with GitHub Copilot among its ways to bring model access. The reverse also exists: GitHub's plans page lists handing tasks to third-party agents such as Claude and Codex as a preview on Copilot Pro+ and higher. Check each vendor's current terms before relying on either.

Can I use my Claude subscription outside Claude Code?

Amp's pricing documentation says you can link a Claude subscription to use it for Claude models in Amp. Inside Anthropic's own tools, the Claude Code GitHub Action can authenticate with a token from a Claude subscription on Pro, Max, Ultra, Team or Enterprise. Read Anthropic's terms for the plan before connecting it elsewhere.

Does Codex work with only an API key?

Partly. OpenAI's pricing page says an API key gives Codex in the command line, the software kit and the editor, with no cloud-based features such as GitHub code review or Slack, and that usage is billed at API prices. Cloud tasks need a ChatGPT plan, from Plus upward.

Which agents need my own API key?

OpenHands uses your own model key on every plan. Harness's documented pull request agents take an Anthropic API key in the pipeline. Factory's Free plan and Amp accept your own keys as one option among several. With these, the model provider bills you directly, under that provider's terms.

Is it cheaper to use a chat plan than an API key?

For steady interactive use it often is, because the price is fixed. For heavy automated use, a chat plan's limit can run out, and then work stops or moves to paid extra usage. Compare a week of your real tasks on both before you decide, because the answer depends on how much and when you use it.

Can a company use employees' personal chat plans for agent work?

It can be technically possible, but it is a policy question first. Personal plans come under personal terms, and the company may want its code covered by a business contract with business data terms. Several vendors, such as Devin, allow only personal ChatGPT plans to be linked, so check before you write a policy.

Does the paying account change how my code is treated?

It can. OpenAI says Business, Enterprise and Edu workspace data is not used to train its models by default. Personal plans have their own settings. When an agent bills a chat plan, the model provider's terms for that plan apply to the code sent to the model, so read them for the account that pays.

What should a team decide before using subscriptions for agents?

Decide which accounts may pay for agent work, whether personal plans are allowed, who holds API keys and where they are stored, and which spending limits apply. Write it down once, and review it when a vendor changes its terms. Our [prices page](/guides/autonomous-coding-agents-compared/coding-agent-prices-and-plans) shows what each option costs.

More in Compare by what matters

Coding agent prices and plans compared, December 2026

Every coding agent in this guide has a published price on 1 December 2026, and they are hard to compare because each counts usage differently. Some charge per person, some per team, some for work done. Some count model use in compute units, credits or rolling limits, and some let you bring your own model access. This page puts the plans side by side from each vendor's price page, explains each way of counting, and shows the costs a list price leaves out: model bills, machine time, extra usage and reviewer time.

Where your code runs: security, self-hosting and training terms for each coding agent

A coding agent has two parts that can run in different places: the part that plans and calls the model, and the machine where it runs commands and edits your code. On 1 December 2026 most agents in this guide run both in the vendor's cloud by default, and several let the machine run on your own infrastructure while planning stays with the vendor. Only OpenHands self-hosted and Factory's command line tool keep the whole agent on your machines. This page compares where each part runs, the network defaults, the certifications vendors list and their training terms.

Benchmarks and evidence: what claims about coding agents can tell you

Coding agents are sold with benchmark scores and productivity claims, and both need careful reading. SWE-bench, built from real GitHub issues, became the standard test, and OpenAI later said its Verified version had become contaminated. METR's randomized trial in 2025 found experienced developers took longer with AI tools on their own repositories while believing they were faster. In 2026 Cognition began offering enterprise customers a guarantee tied to its own estimate of Devin's output. This page explains each and shows how to test an agent on your own work.

Start a project