How to Use Free Models in OpenCode v2

OpenCode Console free chat models run inside OpenCode. An OpenRouter API key gives you a separate route with its own model catalog and limits.

Vendor documentation reviewed . Use the checks below to validate your account and model.

Setup steps

  1. Install OpenCode v2

    Choose the installation method for your OS in the official guide. The command below is the npm option. On Windows, OpenCode documents a standalone binary. If you already use v1, read the migration guide before switching.

    npm install -g @opencode/cli
    opencode --version
  2. Connect Console and choose a free model

    In a scratch directory, launch OpenCode. In the terminal UI, select OpenCode from /connect if needed. Use /models and choose a Console entry that currently shows zero input and output prices. Check workspace billing and any paid fallback before you send a request. Some free entries have model-specific retention or training terms.

    opencode
    /connect
    /models
  3. Use OpenRouter if you want a provider API route

    Select OpenRouter from /connect and supply its API key. Pick a currently listed :free variant in /models. OpenCode uses a provider prefix, so a catalog ID of author/model:free is selected in the CLI as openrouter/author/model:free. Substitute the exact ID shown by your account.

    opencode run --model "openrouter/author/model:free" "Reply with OK without using tools."

Verify your setup

Check the provider and model in /models before each new session. A short text response in a scratch directory confirms the route answered. To check an agent workflow, use the same model on a disposable repository and ask it to read one file in Plan mode. Inspect the tool call and result before using the route for edits.

When a free route stops working

If the Console listing disappears, pick another currently free Console model or switch to an OpenRouter free variant. If the provider returns 429, wait for its reset or switch to an eligible provider with a separate quota.

Set up FreeBench Local Proxy for rate-limit failover

OpenCode Go subscription

OpenCode Go is a separate paid subscription with its own models and limits. For zero-cost access, follow the Console or OpenRouter options above.

OpenCode Go setup, pricing and quotas

Official sources