What is BYOK in AI? Bring your own key, explained

BYOK in AI means a tool runs its AI on your own API key from Anthropic, OpenAI or another provider, so the usage bills to you. How it works, what it costs, and the catches.

By Brian Boisjoli 7 min read byokai-agentsgetting-started

Short answer: BYOK stands for "bring your own key." In AI tools it means the tool runs its AI on your own API key from a model provider, such as Anthropic or OpenAI. The AI usage is then billed to your account with that provider, instead of to the tool's credits or subscription.

We build VibeKit, which supports BYOK for Anthropic and OpenAI. Everything said about other companies here was checked against their own pages in November 2026.

What does BYOK stand for?

"Bring your own key." The phrase is older than AI tools, and it means two different things depending on where you meet it:

Same three letters, different key. If a search for "byok" showed you encryption pages, that is why. The rest of this post is about the AI meaning.

How does BYOK work in an AI tool?

  1. You create an API key with the provider. For Claude, keys are made in the Claude Console: Anthropic's docs say "API keys for the Claude API ... live in the Claude Console."
  2. You paste the key into the tool's settings. A careful tool stores it encrypted and never shows it back to you in full.
  3. The tool calls the model with your key. The provider counts the usage on your account and bills you at its own prices. OpenAI, for example, lists its API prices per million tokens (a token is a chunk of text, roughly three quarters of a word).

Without BYOK, the tool calls the model with its own key and charges you for it, usually through credits or a monthly plan. That price often includes a margin on top of what the provider charges the tool.

Is my Claude subscription the same as an API key?

No. For Claude, a chat subscription and the API are separate. An API key belongs to a Claude Console organization, and its usage is counted and billed there. Anthropic says API usage "is never charged to your Claude plan", and it doesn't use up your chat limits either.

There is one useful link between them: Max, Ultra and Team plans come with monthly API credits you can claim. Anthropic lists $100 a month for Max, $200 for Ultra, and a per-seat amount for Team, and says "Free, Pro, and Enterprise plans aren't eligible." To claim them, you link a Console organization to your plan; any API key from that organization then draws on the credits, with no card needed. Unused credits expire at the end of each billing cycle. So on Max, Ultra or Team, check what you can claim before you buy API credits.

Some tools blur the line by letting you sign in with a subscription instead of pasting a key. Claude Code and Codex both work this way, and we explain the details in does Claude Code support BYOK, and Codex?.

Why would you use BYOK?

What are the downsides of BYOK?

Where will you see BYOK in AI tools?

Tool What your key powers Source
Cursor Chat models, with keys from OpenAI, Anthropic, Google, Azure or AWS Bedrock. Tab completion stays on Cursor's own models. On Teams and Enterprise, eligible models still carry Cursor's token rate of $0.25 per million tokens, "including requests made with your own key". Cursor docs
OpenRouter Your own provider keys, used through OpenRouter. No OpenRouter fee on the first $25,000 a month of list-price usage (Standard and Business plans), then 5% of what the same request would cost on OpenRouter. OpenRouter pricing
Claude Code, Codex Always your own credentials: an API key or a subscription sign-in. Our explainer
Replit, Bolt, Lovable, v0 Varies, and often only the app you ship, not the builder's agent. Our comparison
VibeKit The building agent, with an Anthropic key, an OpenAI key or a ChatGPT sign-in. Calls go straight to the provider, with no markup. This post

What is the "BYOK for your app" trap?

There are two places an AI key can go in an app builder, and they are easy to mix up:

  1. The builder's agent, the AI that writes your code. BYOK here means your key pays for the building.
  2. The app you ship. If your app has its own AI feature, such as a chatbot for your visitors, it needs a key too. Storing that key is just an app secret.

Several builders say "bring your own key" and mean only the second one. Our comparison of Replit, Cursor, Bolt, Lovable and v0 goes through each one.

How does BYOK work on VibeKit?

FAQ

What does BYOK mean for Claude? It means using an Anthropic API key, made in the Claude Console, inside another tool. A Claude subscription is not an API key, but Max, Ultra and Team plans include monthly API credits you can claim for the Console organization your key belongs to. Pro does not.

Is BYOK safe? It is as safe as the tool that holds your key. Look for encrypted storage, calls that go straight to the provider, and an easy way to remove the key. Then set a spend limit with the provider. Our BYOK security guide has the full checklist.

Is BYOK cheaper? For heavy use, usually. For light use, a plan with bundled credits can cost less. It depends on how many AI calls you make and which model you use.

Does BYOK keep my prompts away from the tool? No. The tool still reads your prompts in order to send them to the provider. BYOK changes who pays for the AI, not who sees the conversation.

What is BYOK in cloud security? Creating your own encryption key and importing it into a cloud provider's key service, such as Azure Key Vault, so data is encrypted with a key you control. It is unrelated to AI API keys.

Build with your own Claude or OpenAI key
Describe an app in plain words and VibeKit's agent builds and hosts it. Connect an Anthropic or OpenAI key and its AI calls go straight to the provider, with no markup. Free to start, no card.