Skip to main content

Bring Your Own Key (BYOK) Guide Overview

What is Bring Your Own Key (BYOK)?

Bring Your Own Key (BYOK) allows you to supply your own Anthropic API key to RepoRisk instead of using the platform's shared API key. This enables you to:

  • Use your own Anthropic account for API billing
  • Control API usage and costs directly
  • Maintain independent rate limits and quotas
  • Keep your API key credentials under your own management

Why Use Bring Your Own Key (BYOK)?

On standard RepoRisk plans, the platform provides a shared API key for analyzing repositories. However, BYOK offers several advantages:

  • Direct cost tracking: Bill API usage directly to your Anthropic account
  • Cheaper plan access: BYOK plans are more cost-effective than all-inclusive plans
  • Dedicated rate limits: Avoid sharing rate limits with other platform users
  • Custom billing controls: Manage spending through Anthropic's console
  • Key rotation: Control your own key lifecycle without platform intervention

Plan Tiers and Bring Your Own Key (BYOK) Availability

RepoRisk offers three tiers, each with two plan options:

TierAll-Inclusive PlanBring Your Own Key (BYOK) Plan
Tier 1Uses platform shared keyBYOK available
Tier 2Uses platform shared keyBYOK available
Tier 3Uses platform shared keyBYOK available
  • All-Inclusive plans: Use the platform's shared API key (included in your plan)
  • Bring Your Own Key (BYOK) plans: You supply and manage your own Anthropic API key (available for all tiers, generally more cost-effective)

BYOK Setup Overview

To set up Bring Your Own Key (BYOK), you will:

  1. Create an Anthropic account at https://console.anthropic.com/
  2. Enable billing on your Anthropic account (billing is required before the API key will work)
  3. Generate an API key in the Anthropic Console
  4. Add your key to RepoRisk in the Settings page

This guide walks you through each step. Start with Anthropic Setup.

Important Notes

Billing is Required

Your Anthropic account must have billing enabled before the API key will work with RepoRisk. This means:

  • A valid payment method must be added to your Anthropic account
  • Your account must have available credits (either prepaid or postpaid via linked payment method)
  • Accounts with no billing information will receive an error when trying to use the API key

If you configure a BYOK key and it fails, the first thing to check is whether billing is enabled on your Anthropic account.

API Key Security

Your API key is sensitive — it provides direct access to your Anthropic account. Treat it with the same care as a password:

  • Do not reuse keys: Create a dedicated key for RepoRisk; do not reuse keys across multiple services
  • Do not share keys: Keep your key private; if sharing credentials is necessary, use key rotation to create and revoke keys
  • Monitor usage: Periodically review your API usage in the Anthropic Console

Next Steps