Skip to content

Quick Start Guide

Quick Start Guide

Get your AI coding agent connected to an LLM provider in minutes.

The 4-Step Process

1. Choose a Provider

Pick an LLM provider based on your needs. See the Provider Overview for a comparison, or jump straight to a setup guide:

2. Get an API Key

Sign up with your chosen provider and generate an API key:

ProviderSign Up
Geminiaistudio.google.com
Claudeconsole.anthropic.com
OpenAIplatform.openai.com
DeepSeekplatform.deepseek.com
Groqconsole.groq.com

3. Set Your Environment Variable

Export the key so your agent can access it:

Terminal window
export GEMINI_API_KEY="your-key-here"

Persist it across sessions:

Terminal window
echo 'export GEMINI_API_KEY="your-key"' >> ~/.bashrc
source ~/.bashrc

4. Configure Your Agent

Connect your provider to an AI coding agent:

Verify Your Setup

  1. Check the key is set:

    Terminal window
    echo $GEMINI_API_KEY
  2. Confirm your config file is valid JSON:

    Terminal window
    cat opencode.json | python3 -m json.tool
  3. Run your agent and send a test prompt. If you get a response, you’re set.

Next Steps