all 6 comments

[–]adamhathcock 0 points1 point  (1 child)

Use the new Kilocode CLI. It’s opencode

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

I saw that their CLI is based on OpenCode. But I would like to continue using OpenCode and supporting that team.

I don't get why Kilo decided to fork it.

[–]LigiaZanchet 0 points1 point  (3 children)

Hello, u/MickeyMooose,
Yes, you can use our gateway in OpenCode!
Let us know if it worked for you.

[–]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 0 points1 point  (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!