Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.heygarth.ai/llms.txt

Use this file to discover all available pages before exploring further.

Garth supports Bring Your Own Key (BYOK), which lets you supply your own API key from an AI provider instead of relying on Garth’s shared capacity. All keys are encrypted and stored in Garth’s secure vault — they are never logged or exposed in plain text.

Why use BYOK?

Your own rate limits

Reviews and scans draw from your provider account’s quota, so high-volume teams are never throttled by shared limits.

Data residency control

Requests go directly from Garth to your provider under your account, giving you full control over which region processes your code.

Cost visibility

All token usage is billed to your provider account so you can track AI spend alongside your other developer tooling.

Supported providers

Claude

Recommended. Best-in-class reasoning for code review and security analysis.

OpenAI

GPT-4o and GPT-4 Turbo models supported.

Gemini

Gemini 1.5 Pro and Gemini 2.0 Flash supported.
Claude is the default and recommended provider. It consistently produces the most accurate inline review comments and security findings across the codebases Garth has been tested on.

Adding your API key

All keys are stored in the Garth Secure Vault — encrypted at rest, never written to logs, and scoped to your organisation only.
1

Open the Integrations settings

Navigate to Settings → Integrations → LLM in the Garth dashboard.
2

Select a provider

Choose Claude, OpenAI, or Gemini from the provider list.
3

Paste your API key

Enter your API key in the input field. The key is immediately encrypted before it leaves your browser.
4

Save to vault

Click Save. Garth validates the key against the provider’s API, then stores it in the secure vault. A masked preview (e.g. sk-ant-••••••••XXXX) confirms the key is saved.
5

Set as active provider

If you have keys for more than one provider, select which provider Garth should use for new requests under Active Provider.
You can only have one active provider at a time. Switching providers does not delete existing keys — stored keys remain in the vault until you explicitly remove them.

Provider reference

Claude (Anthropic)

Get your API key from the Anthropic Console.
SettingValue
Key formatsk-ant-api03-…
Recommended modelclaude-sonnet-4-6 or claude-haiku-4-5 (faster, lower cost)
Rate limitsDepend on your usage tier — see Claude tier limits

OpenAI

Get your API key from the OpenAI Platform.
SettingValue
Key formatsk-proj-… or sk-…
Recommended modelgpt-4o
Rate limitsDepend on your OpenAI usage tier

Gemini (Google AI)

Get your API key from Google AI Studio.
SettingValue
Key formatAIza…
Recommended modelgemini-1.5-pro or gemini-2.0-flash
Rate limitsDepend on your Google Cloud project quota

Removing a key

To remove a stored key, go to Settings → Integrations → LLM, find the provider, and click Disconnect. The key is permanently deleted from the vault and cannot be recovered.
Removing an active key will pause all AI-powered reviews and scans until a new key is added or the provider is switched.

Next steps

Claude tier limits

Understand Claude API usage tiers and choose the right tier for your team’s volume.

Customize review

Write custom instructions to align Garth’s reviews with your team’s standards.