All posts

BYOK AI code review

BYOK AI code review runs on your own model provider account. In Proofline, you choose the review models and pay your provider directly for model usage, without a Proofline subscription. Verification VM time, when used, is charged separately in Proofline credits.

Use any major provider or a compatible endpoint#

Open Settings → Review policy → Models, select Change under Review model, and open the Providers tab. Proofline accepts keys for Anthropic, OpenAI, the Google Gemini API, and an OpenAI-compatible endpoint. Complete the setup for your chosen provider before selecting its models.

With your own key, model requests go to your provider account. Your agreement with that provider covers the code and evidence included in those requests.

Pick a model for each stage#

Choose the review model and the hypothesis model in Settings → Review policy → Models. The hypothesis model proposes how a change could fail; the review model investigates those hypotheses against the available code and evidence.

You can choose a model for each stage, with separate choices for pull request reviews and deployment reviews. OpenAI models also take a reasoning effort setting.

Any repository can override these choices. A payments service, for example, can use a larger proof model while other repositories keep the organization default.

Choose review models.

Keys stay write-only#

Proofline encrypts each key with AES-256-GCM and binds it to your organization and provider. After you save a key, the console shows only a short hint of it.

Each time someone adds, replaces, or removes a key, the organization's audit log records it. Keys belong to the organization. A repository can override the model but not the key.

Choosing a model never widens what a review can reach. The reviewer works through typed tools, and Proofline checks repository and environment access outside the model.

Read about security and data access.

How billing works with your own key#

Your model provider bills requests made with your key. That model usage spends no Proofline credits and is separate from the hosted free-review offer. A worked example of one pull request's model cost shows how to match each review pass to your provider's usage export.

When verification is enabled and a review uses a verification VM, its running time is charged separately in Proofline credits. Eligible coverage pays first; otherwise your organization's credit balance pays. Per-review budgets and monthly spend limits still apply.

Compare the BYOK model and billing options, read the credit and billing rules, and check pricing and availability before choosing how to fund reviews.

Try hosted review before choosing a provider#

New organizations can start with one calendar month of hosted code review without a card, model key or cloud connection. That offer pays for eligible hosted review; it does not pay your model provider's BYOK bill. Use the evaluation guide to compare useful findings and review costs on your team's pull requests.

Questions#

What does BYOK mean for code review?

Bring your own key (BYOK) means the review runs on your model provider account. You add your own API key, and model requests go to that provider instead of to the models Proofline hosts.

Which model providers does Proofline support for BYOK?

Proofline accepts keys for Anthropic, OpenAI, the Google Gemini API, and any OpenAI-compatible endpoint. You can also keep the models Proofline hosts.

Does a BYOK review cost less?

The cost depends on your provider, selected models and review usage. BYOK model requests spend no Proofline credits, but your provider bills them directly. Verification VM time, when used, is a separate Proofline charge. Compare both parts when choosing between BYOK and hosted review.

Can each repository use a different review model?

Yes. The organization sets a default model for each review stage, and any repository can override it.

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading