| Follow @JungHoonGhae on GitHub for more projects. | |
|---|---|
| Follow @lucas_ghae on X for updates. |
Use Kilo Gateway with your existing OpenCode installation - no need to install Kilo CLI fork.
Disclaimer: This is an independent community plugin. It is not affiliated with, endorsed by, or sponsored by Kilo.ai or OpenCode. Kilo™ and OpenCode™ are trademarks of their respective owners.
If this plugin helps you, consider supporting its maintenance:
Kilo Gateway offers great free tier models, but to use them from CLI you had only one option:
Install Kilo CLI - A fork of OpenCode, requiring a separate installation
Neither is ideal. You shouldn't need to install a separate fork just to access Kilo Gateway models.
This plugin lets you use Kilo Gateway directly in your existing OpenCode installation:
z-ai/glm-5:free)Kilo Gateway offers 29 free tier models, including:
Open your ~/.config/opencode/opencode.json and add the plugin:
{
"plugin": ["opencode-kilo-auth@latest"]
}
That's it! OpenCode will automatically install the plugin from npm on next startup.
Add the models you want to use. Important: You must include npm and api properties for the provider to work:
{
"plugin": ["opencode-kilo-auth@latest"],
"provider": {
"kilo": {
"name": "Kilo Gateway",
"npm": "@openrouter/ai-sdk-provider",
"api": "https://api.kilo.ai/api/openrouter/",
"models": {
"kilo/auto": {
"id": "kilo/auto",
"name": "Kilo Auto",
"release_date": "2025-01-01",
"attachment": true,
"reasoning": true,
"temperature": true,
"tool_call": true,
"limit": { "context": 200000, "output": 64000 }
}
}
}
}
}
See AI_INSTALL_GUIDE.md for prompts you can copy to your AI assistant for quick setup:
z-ai/glm-5:free)opencode.json under provider.kilo.modelsThat's it! models.json is already in the correct format - just copy and paste.
Authentication with Kilo Gateway is required to use any models.
opencode auth loginopencode auth loginSee models.json for the complete list of 342 models.
| Model | Description | Context | Features |
|---|---|---|---|
kilo/auto |
Auto-routes to best model | 200K | Vision, Reasoning, Tools |
stepfun/step-3.5-flash:free |
StepFun 196B MoE - not free on OpenRouter | 256K | Reasoning, Tools |
z-ai/glm-5:free |
GLM 5 free tier | 202K | Reasoning, Tools |
minimax/minimax-m2.5:free |
MiniMax M2.5 free tier | 204K | Reasoning, Tools |
All free tier models end with :free suffix:
- z-ai/glm-5:free, z-ai/glm-4.5-air:free
- minimax/minimax-m2.5:free
- stepfun/step-3.5-flash:free
- google/gemma-3-27b-it:free, google/gemma-3-12b-it:free, google/gemma-3-4b-it:free
- qwen/qwen3-coder:free, qwen/qwen3-4b:free
- And more...
Premium models from all major providers: - Anthropic: Claude 3.5 Sonnet, Claude 3 Opus, Claude 3 Haiku - OpenAI: GPT-4o, GPT-4 Turbo, GPT-3.5 Turbo - Google: Gemini 1.5 Pro, Gemini 1.5 Flash - Meta: Llama 3.1, Llama 3.2 - Mistral: Mistral Large, Mixtral
opencode run "Hello" --model=kilo/kilo/auto
opencode run "Write a function" --model=kilo/z-ai/glm-5:free
opencodeMake sure the plugin is installed:
{ "plugin": ["opencode-kilo-auth@latest"] }
Add model definitions to your opencode.json (see Installation above).
bun install
bun run typecheck
bun run build
bun run fetch-models # Update models.json from Kilo API
MIT - See LICENSE for details.
Contributions are welcome! Feel free to submit a Pull Request at github.com/JungHoonGhae/opencode-kilo-auth.
This project is provided "as is" without warranty of any kind. The use of Kilo Gateway API is subject to Kilo.ai's terms of service. Users are responsible for complying with all applicable terms and conditions when using this plugin.
$ claude mcp add opencode-kilo-auth \
-- python -m otcore.mcp_server <graph>