Bring Your Own Key (BYOK)

Quick definition

Bring your own key (BYOK) is a model in which a customer supplies their own credentials to a software platform instead of the vendor's. In AI tools it means connecting your own AI provider account or key, so usage runs under your agreements and billing; in cloud security it means supplying your own encryption keys.

AI & agents
Also known as
BYOK, bring your own API key, customer-managed keys, BYO provider account
6
min read
October 17, 2026

What is bring your own key (BYOK)?

Bring your own key describes who owns the credential a platform uses. In a vendor-managed model, the platform holds the account and you pay the vendor. In a BYOK model, you hold the account and the platform uses your credential on your behalf.

The phrase has two established meanings. In cloud security, BYOK means a customer generates and controls the encryption keys a provider uses to protect their data, often held in a key management service, so they can revoke access to that data. In AI software, BYOK means a customer connects their own AI provider account or API key, so model usage is billed to them and governed by their own terms with the provider.

This entry focuses on the AI meaning, which is now the more common search intent, but both share the same principle: the customer keeps control of something sensitive while still using the vendor's platform.

BYOK has become common because organizations rarely want AI usage scattered across many vendor accounts. Security teams have usually approved a small number of AI providers, legal teams have negotiated data-handling terms with them, and finance teams have committed spend. A platform that supports BYOK can be adopted without reopening any of those decisions.

Why does BYOK matter?

BYOK matters because it lets organizations adopt AI platforms without giving up control of their provider relationship.

  • Existing agreements stay in force: negotiated rates, committed spend and data-handling terms with the provider continue to apply.
  • Procurement is simpler: usage runs through a provider relationship already approved by security and legal.
  • Model and provider choice: you can use the providers and models your organization has standardized on.
  • Billing clarity: AI consumption appears on your own provider account rather than inside a vendor's bundled price.
  • Independent revocation: because the credential is yours, you can cut off the platform's access at the provider without waiting on the vendor.

How does BYOK work for AI?

BYOK for AI works by storing your provider credential in the platform and letting the platform call models with it, ideally without ever exposing it to end users.

Connecting the account

An administrator adds the organization's provider key or account details to the platform. Good implementations store it once, encrypted, in a dedicated place rather than in each workspace or environment.

Deriving scoped access

Rather than passing the provider key to every user, mature platforms derive a virtual API key for each user or session, with its own budget, models and expiry.

Routing usage

Requests go to the provider under your account, often through an AI gateway layer that enforces limits and records usage.

Revoking access

Because the credential is yours, you can rotate or revoke it at the provider at any time, and the platform's access ends with it. Check how the platform behaves when that happens, so a planned rotation does not interrupt running sessions unexpectedly.

BYOK vs vendor-managed AI access

With BYOK you hold the provider account; with vendor-managed access the platform holds it and you buy usage through the platform. Neither is better in every case.

  • Contracts: BYOK uses your existing provider agreement; managed access uses the vendor's.
  • Setup: BYOK requires an approved provider account; managed access requires only a balance.
  • Billing: BYOK usage is billed by the provider; managed usage is billed by the platform, often as a prepaid balance.
  • Volatility: with BYOK your account carries the variability; with managed access the balance does.
  • Fit: BYOK suits organizations with established provider relationships; managed access suits teams that want to start quickly.

BYOK vs asking users to bring their own key

Organizational BYOK is different from asking each learner or prospect to bring a personal key. When users bring their own, setup and cost move onto someone who came to learn or evaluate, many have no personal account, and few prospects will set up billing with a third party to sit through a demo. Organizational BYOK keeps the account with the company and gives users scoped keys derived from it, which is the pattern behind AI lab keys.

Common use cases for BYOK

  • Enterprise AI tooling: connecting approved provider accounts to coding assistants, chat tools and agent platforms.
  • Training and labs: minting per-learner keys from the organization's provider account.
  • Regulated industries: keeping AI usage under terms vetted for data handling and residency.
  • Encryption control: in the security sense, holding the keys that protect data stored by a SaaS or cloud provider.

Best practices for BYOK

  • Never let the provider key reach end users or environments; issue scoped keys instead.
  • Confirm the platform stores the key once and encrypted, and that you can revoke it independently.
  • Pair BYOK with per-user budgets and a model allowlist, because your account carries the cost.
  • Document the arrangement for AI governance and security reviews.

How Heropa helps

Heropa's AI Lab Keys support both models. Bring your own AI provider account and Heropa mints every lab key from it, with your existing agreements, rates and data-handling terms in force. Or use Heropa-managed access: Heropa holds the provider account, and you load a balance and top up as you go. Both work the same way inside the lab.

Either way, your provider key is stored once, in a dedicated AI cloud account inside the Heropa platform, and never enters a lab. Each user receives a virtual key scoped to the models, budget and duration you set. Read Introducing AI Lab Keys for more.

Frequently asked questions

What does BYOK mean in AI tools?

In AI tools, BYOK means connecting your own AI provider account or API key to a platform, so model usage is billed to your account and governed by your agreements with the provider. Good platforms derive scoped keys for users rather than exposing your provider key.

Is BYOK more secure than using the vendor's AI account?

Not automatically. BYOK keeps the provider relationship and terms under your control and lets you revoke access, but security depends on how the platform stores and uses the key. Look for single encrypted storage and per-user scoped keys rather than the provider key being copied around.

Do learners need their own AI provider account for a lab?

No, and asking them to bring one adds friction and cost for people there to learn or evaluate. A better pattern is organizational BYOK or managed access, where the organization's account mints a scoped key for each learner automatically when the lab launches.

What is BYOK in cloud encryption?

In cloud security, BYOK means the customer generates and controls the encryption keys a cloud or SaaS provider uses to protect their data, usually via a key management service. The customer can revoke the key, which makes the encrypted data unreadable to the provider.

See it in action

Give every learner and buyer a real, hands-on lab

Spin up real software environments for training, demos and POCs, right in the browser.