🔑 Setting Up API Keys

Learn how to get and configure your Claude, Gemini, and Ollama Cloud API keys

🚀 Ollama Cloud API (NEW in v4.0.4!)

No Local Install Required! Just get an API key and start coding immediately.

Get Your API Key

  1. 1. Go to ollama.com
  2. 2. Sign up or log in
  3. 3. Go to Account Settings
  4. 4. Generate an API key
  5. 5. Copy your API key

Available Models

  • deepseek-v3.1:671b-cloud - Ultra-fast, instant responses
  • qwen3:32b - Powerful code generation
  • llama3.3:70b - Strong reasoning

Pricing

Free tier available! Pro plans at $20/mo. Check Ollama pricing for details.

🧠 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

🚀 For Ollama Cloud (Easiest!)

  1. 1. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
  2. 2. Type "HalCode: Set Ollama Cloud API Key"
  3. 3. Paste your API key and press Enter
  4. 4. Select "Ollama Cloud (API Key)" as your provider
  5. 5. Choose a model and start coding!

For Claude or Gemini

  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 Claude, Gemini, AND Ollama Cloud keys! Switch between them anytime without re-entering credentials.