← All docs

Coding tools

opencode

Updated

Generate your config

Pick one or more models and press Confirm. The config below is regenerated so every model you picked is ready to use. The first model you pick becomes the default. Context, output limits, and prices come from the model catalog. This tool runs as an agent, so only models that support tool calling are listed.

Loading models…

Add everyais to opencode as an OpenAI-compatible provider. One command puts every everyais model in /models.

  1. Run this in a terminal.

    bash
    opencode auth login https://platform.everyais.com
  2. When everyais API key: appears, paste the key from your dashboard and press Enter. The key is not shown as you type.

  3. Start opencode and pick an everyais model in /models.

Every everyais model that supports tool calling is registered with its context, output limit, and prices. opencode fetches this setup each time it starts, so new models and price changes show up on their own. For models that support reasoning, change the effort with Ctrl+T or opencode run --variant high.

  • Works on macOS, Linux, and WSL (needs sh). On Windows, use the file setup below.
  • To disconnect, run opencode auth logout and choose https://platform.everyais.com.

Set it up in a file

To pick models yourself or set a default model, write them into opencode.json.

  1. Put the key in an environment variable. Add it to your shell profile (~/.zshrc and so on) so you don't have to type it each time.

    bash
    export EVERYAIS_API_KEY="everyais_your_api_key"
  2. In "Generate your config" above, pick your models and press Confirm. Only models that support tool calling are listed. The 1st model becomes the default (model) and the 2nd handles light work such as title generation (small_model). Models that support reasoning also get a "Reasoning effort" choice.

  3. Save the result as ~/.config/opencode/opencode.json to use it in every project, or as opencode.json at a project root to use it in that project only. If the file already exists, merge only the everyais entry under provider plus model and small_model.

  4. Start opencode and check that everyais models show up in /models.

Settings

KeyWhat it does
npm: "@ai-sdk/openai-compatible"The adapter that talks to OpenAI-compatible APIs
options.baseURLhttps://api.everyais.com/v1, including /v1
options.apiKey{env:EVERYAIS_API_KEY} reads the key from the environment. If the variable is empty, requests get 401
modelThe default model. opencode reads everything before the first / as the provider name, so it is everyais/ followed by the model ID, with everyais appearing twice
small_modelYour 2nd pick, used for light work such as title generation

Each model gets these values from the catalog. Values the catalog does not have are left out.

KeyValue
nameDisplay name
tool_callWhether the model supports tool calling
modalities.inputAccepted input. Models that accept images get image
limit.context · limit.outputContext size and maximum output tokens. opencode needs both together, so they are set only when both are known
costUSD per 1M tokens for input, output, cache read, and cache write, plus the price for input over 200K tokens (context_over_200k)
options.reasoningEffortThe reasoning effort you chose

To store the key in opencode instead, run /connect, choose Other, enter everyais as the provider ID, and paste the key. You can then delete the options.apiKey line.

Example

json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "everyais": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "everyais",
      "options": {
        "baseURL": "https://api.everyais.com/v1",
        "apiKey": "{env:EVERYAIS_API_KEY}"
      },
      "models": {
        "everyais/claude-sonnet-5-5": { "name": "Claude Sonnet 5.5", "tool_call": true },
        "everyais/gemini-3-8-flash": { "name": "Gemini 3.8 Flash", "tool_call": true }
      }
    }
  },
  "model": "everyais/everyais/claude-sonnet-5-5",
  "small_model": "everyais/everyais/gemini-3-8-flash"
}

Troubleshooting

SymptomWhat to check
failed to fetch remote config on startupAutomatic setup fetches its config from https://platform.everyais.com each time opencode starts. Check your network, or disconnect with opencode auth logout
401With automatic setup, run opencode auth login again and enter the key. With the file setup, run echo $EVERYAIS_API_KEY in the shell that starts opencode to check the key is set
404 model_not_foundCheck that each key under models exactly matches an everyais model ID
The default model is not foundCheck that model has the everyais/everyais/... form
Contact support