Pollio
All integrations

OpenCode

One provider entry, every model on the network.

Uses the OpenAI Chat Completions API. OpenCode docs

Public

Fig. I, prompt

Set POLLIO_API_KEY in your shell, then paste this into OpenCode.

Set up Pollio as your model provider. Its API is at https://api.pollio.ai/v1 and the model is deepseek/deepseek-v4.1-flash. My key is in the POLLIO_API_KEY environment variable: never print it or write it into a file. In opencode.json, add a "pollio" provider with npm "@ai-sdk/openai-compatible", options.baseURL set to that URL, options.apiKey set to "{env:POLLIO_API_KEY}" and the model under models, then set "model" to "pollio/deepseek/deepseek-v4.1-flash". Back up the file first, keep my other settings, show me the change, and tell me what to restart.

Fig. I, opencode.json

Add this to opencode.json in your project, or to ~/.config/opencode/opencode.json for every project, and put your key in POLLIO_API_KEY.

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "pollio": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Pollio",
      "options": {
        "baseURL": "https://api.pollio.ai/v1",
        "apiKey": "{env:POLLIO_API_KEY}"
      },
      "models": {
        "deepseek/deepseek-v4.1-flash": { "name": "DeepSeek V4.1 Flash" }
      }
    }
  },
  "model": "pollio/deepseek/deepseek-v4.1-flash"
}

Private

Start pollio proxy on your machine, then point OpenCode at it instead.

Fig. II, prompt

Set POLLIO_API_KEY in your shell, then paste this into OpenCode.

Set up Pollio as your model provider. Its API is at http://127.0.0.1:8787/v1 and the model is deepseek/deepseek-v4.1-flash. My key is in the POLLIO_API_KEY environment variable: never print it or write it into a file. In opencode.json, add a "pollio" provider with npm "@ai-sdk/openai-compatible", options.baseURL set to that URL, options.apiKey set to "{env:POLLIO_API_KEY}" and the model under models, then set "model" to "pollio/deepseek/deepseek-v4.1-flash". Back up the file first, keep my other settings, show me the change, and tell me what to restart.

Fig. II, opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "pollio": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Pollio",
      "options": {
        "baseURL": "http://127.0.0.1:8787/v1",
        "apiKey": "{env:POLLIO_API_KEY}"
      },
      "models": {
        "deepseek/deepseek-v4.1-flash": { "name": "DeepSeek V4.1 Flash" }
      }
    }
  },
  "model": "pollio/deepseek/deepseek-v4.1-flash"
}

Models are named pollio/ plus the model's ID, as in the last line.

Names and logos belong to their owners. No endorsement implied.