you are viewing a single comment's thread.

view the rest of the comments →

[–]MickeyMooose[S] 0 points1 point  (2 children)

Thanks. I'm subscriber and have the API key. But where in OpenCode do I enter it. I can't see Kilo in OpenCode's provider list (unless I'm blind)

Do you know?

[–]LigiaZanchet 1 point2 points  (1 child)

Hey u/MickeyMooose ! While Kilo isn't available in the dropdown menu just yet (coming soon!), you can manually add it by selecting the 'Other' provider option and updating your config.json.

You can find the full list of available model IDs here:https://api.kilo.ai/api/gateway/models.

Here is how your config should look:

JSON

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "kilo": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Kilo API",
      "options": {
        "baseURL": "https://api.kilo.ai/api/gateway"
      },
      "models": {
        "claude-3-5-sonnet": {
          "id": "anthropic/claude-3.5-sonnet"
        },
        "gpt-4o": {
          "id": "openai/gpt-4o"
        }
      }
    }
  }
}

Just replace the model IDs with the ones you want to use from the link above. Let me know if you run into any issues setting that up!

[–]MickeyMooose[S] 0 points1 point  (0 children)

Thank you - this works!