Skip to content

Can I use my own API key to understand code and PRs?

Last updated September 26, 2026

DiffGuardian can run its AI features (Ask, Trace It, Analyze and voice answers) on your own API key for Anthropic, OpenAI, Google Gemini, or OpenRouter. You are billed directly by that provider, on your existing account, with no markup from DiffGuardian. Your key is encrypted on your device, with a key held in your operating system's secure storage, and used only on your device.

#Supported providers

  • Anthropic
  • OpenAI
  • Google Gemini
  • OpenRouter — one key reaches roughly 400 models from every major lab; see Choosing models for details.

#How it works

  1. Enter your API key for a provider in Settings → AI providers.
  2. DiffGuardian sends requests from your machine directly to that provider, authenticated with your key — never relayed through DiffGuardian.
  3. Route each feature — Ask, Trace It, Analyze, and the rest — to the provider and model you want in Settings → Model routing.

Bring-your-own-key providers require Pro. On Basic the provider toggles and key fields are visible but locked; turning one on opens an upgrade prompt.

#Limits

  • Bring-your-own-key providers require a Pro plan.
  • DiffGuardian does not resell tokens or add a markup; you are billed by the provider directly, on your existing account.
  • Because it is your key, the data is governed by your own agreement with that provider — check each provider's API data-usage terms for specifics.

FAQ

Which providers can I use my own key with?

Anthropic, OpenAI, Google Gemini, and OpenRouter.

Does DiffGuardian mark up the price?

No. You are billed directly by the provider, on your existing account, with no markup from DiffGuardian.

Where is my API key stored?

Encrypted on your device, with a key held in your operating system's secure storage (the Keychain on macOS), and used only on your device. It is never transmitted to DiffGuardian's servers.

Do I need a paid DiffGuardian plan to use my own key?

Yes. Bring-your-own-key providers require Pro; on Basic the provider toggles and key fields are visible but locked, and turning one on opens an upgrade prompt.