DocsOpenCode

AI Coding

Connect CLōD to OpenCode

Drop-in CLōD integration for OpenCode — one key, 50+ models.

Overview

OpenCode is an OpenAI-compatible AI coding tool. Swap the endpoint to CLōD and instantly unlock 50+ models with energy-aware cheaper inference.

Prerequisites

  • • CLōD account — free at app.clod.io
  • • OpenCode installed
  • • CLōD API key (Dashboard → API Keys → Generate)

Setup

Step 1: Get your CLōD API key

Sign in at app.clod.io → API Keys → Generate Key.

Step 2: Configure OpenCode

OpenCode reads standard OpenAI environment variables. Set these before running:

export OPENAI_API_KEY="your_clod_api_key"
export OPENAI_BASE_URL="https://api.clod.io/v1"

Or add them to your shell profile (~/.zshrc or ~/.bashrc) for persistence.

Alternatively, create a opencode.json config file:
{
  "openai": {
    "apiKey": "your_clod_api_key",
    "baseURL": "https://api.clod.io/v1"
  }
}

Step 3: Start building

Browse models at app.clod.io/auth/models.

Available Models

CLōD supports 50+ models. For agentic tools, use models that support tool calling / function calling.

Browse models →

Need help?

Discord · Docs