How-to guide

Set up Gemini

Connect Bristlenose to Gemini for the analysis pass.

Gemini (Google) runs the analysis pass. Transcription always happens locally.

Before you start

  • A Google account.
  • Credit on the account, if you use the paid tier. Google’s billing page says new users default to prepaid credits, with a minimum purchase of US$5, bought on the AI Studio billing page. Some older accounts are billed monthly through Google Cloud instead.

Use a paid-tier key for interview material. Google’s Gemini API terms say that for unpaid services, including the free tier, Google uses what you submit and the responses to improve its products, and human reviewers may read it. For paid services it says it does not use prompts or responses that way. Those terms can change, so read the current page before you send participant material.

Get an API key

  1. Sign in at aistudio.google.com/apikey.
  2. Create an API key.
  3. Copy it.

Set a spend limit

On a paid project you can set a monthly spend cap in AI Studio, on the Spend page. Google marks project spend caps as experimental, and says usage can overshoot them for about ten minutes while billing catches up. See Google’s billing documentation for the details.

Add the key to Bristlenose

macOS app
  1. Open Settings (⌘,) and go to the LLM tab.
  2. Select Gemini and paste your key into the API Key field.
  3. The key is validated in the background and stored in your macOS Keychain.
Command line
  1. Run bristlenose configure gemini.
  2. Paste the key when prompted.
  3. The key is validated and stored in your system credential store.

On the command line, Bristlenose looks for the key in the BRISTLENOSE_GOOGLE_API_KEY environment variable (or the plain GOOGLE_API_KEY or GEMINI_API_KEY), then a .env file, then the system credential store. So a key left set in your shell wins over the one you stored with bristlenose configure.

Run an analysis with Gemini

Select Gemini with the --llm flag:

bristlenose run interviews --llm gemini

The default model is gemini-2.5-flash. Confirm the key works with bristlenose doctor.

Troubleshooting

Symptom Cause and fix
Invalid API key Re-create the key at aistudio.google.com/apikey.
Quota or rate-limit errors Gemini free-tier keys have request limits. Linking a billing account on the AI Studio billing page moves the project to a paid tier, which has higher limits.
Requests fail with a payment error (HTTP 402) A prepaid balance of zero stops all keys on that billing account. Buy credits on the AI Studio billing page.

For what is sent to the provider, see Cloud or local AI and Privacy and data.