🔑 Setting Up API Keys

Learn how to get and configure your Claude and Gemini API keys

🧠 Claude API (Anthropic)

Get Your API Key

  1. 1. Go to console.anthropic.com
  2. 2. Sign up or log in
  3. 3. Click "API Keys" in the left sidebar
  4. 4. Click "Create Key"
  5. 5. Copy your API key (starts with sk-ant-)

⚠️ Important: Keep your API key secret! Never share it or commit it to version control.

Pricing

Claude is a paid API. You pay per token used. Check Anthropic pricing for current rates.

⚡ Gemini API (Google)

Get Your API Key

  1. 1. Go to aistudio.google.com/app/apikey
  2. 2. Sign in with your Google account
  3. 3. Click "Create API Key"
  4. 4. Choose "Create API key in new project"
  5. 5. Copy your API key (starts with AIza)

Free Tier: Gemini offers a generous free tier with 60 requests per minute!

Pricing

Gemini has a free tier and paid options. Check Google AI pricing for details.

Add Keys to HalCode

  1. 1.Open VS Code with HalCode installed
  2. 2.Click the HalCode icon in the sidebar
  3. 3.Click the Settings icon (⚙️)
  4. 4.Click "Set API Key"
  5. 5.Select your provider (Claude or Gemini)
  6. 6.Paste your API key and press Enter

💡 Tip: You can add both Claude and Gemini keys! Switch between them anytime without re-entering credentials.