FrogDino

OpenCode with FrogDino: add a custom provider in opencode.jsonc

OpenCode is an open-source AI coding agent for the terminal. Per the official docs, a service that is not in the built-in catalog is added under providers in opencode.jsonc, declaring its credential variable, runtime package, endpoint and models.

Before you start: sign up and create a key

  1. Open the sign-up page and register with your email.
  2. Sign in and top up under Recharge. You pay for what you use; there is no monthly fee. Payment is by Alipay or WeChat Pay.
  3. Go to API Keys, click Create key and choose the GPT group. The full key is shown once, so save it right away.

After creating a key, click "Use key" in the console. It generates a complete config with your key filled in. This page explains the same settings.

Step 1: put the key in an environment variable

export FROGDINO_API_KEY="your-key"

Step 2: edit opencode.jsonc

{
  "$schema": "https://opencode.ai/config.json",
  "model": "frogdino/gpt-6.1-sol",
  "providers": {
    "frogdino": {
      "name": "FrogDino",
      "env": ["FROGDINO_API_KEY"],
      "package": "@opencode/ai/providers/openai-compatible",
      "settings": {
        "baseURL": "https://frogdino.com/v1"
      },
      "models": {
        "gpt-6.1-sol": { "name": "GPT-6.1 Sol" }
      }
    }
  }
}

Verify

Start OpenCode, run /models, pick the new model and send a message.

FAQ

How do I reference the model?

As providerID/modelID, for example frogdino/gpt-6.1-sol.

Can one key be used for both Claude and GPT?

No. FrogDino keys belong to a group: a Claude-group key speaks the Anthropic protocol (base URL https://frogdino.com) and a GPT-group key speaks the OpenAI protocol (base URL https://frogdino.com/v1).

What if I get an invalid key or 401 error?

Check that the key was copied in full, that its group matches the protocol you selected, and that your balance is above zero.

Official documentation

Sign up and create a keyModels & pricing

Got an error? Look it up in the error code reference.