Kilo Code

Kilo Code is an open-source AI coding assistant that works across editors and the terminal, bringing agent-style development workflows to tools like VS Code and JetBrains.

1.1 Usage

Method 1: UI Configuration

  1. Open Kilo Code settings
  2. Navigate to Providers
  3. Select OpenAI Compatible
  4. Enter the following details:
    • Base URL: https://api.rygen.io/v1
    • API Key: your-rygen-api-key
    • Model: your-model-name
  5. Save the configuration
  6. Run a test request to confirm everything is working

Method 2: Config File for Kilo Code CLI

Install Kilo CLI first:

npm install -g @kilocode/cli

Create ./opencode.json in your project root, or create a global config at ~/.config/kilo/opencode.json:

{
  "$schema": "https://app.kilo.ai/config.json",
  "model": "hpc-ai/minimax/minimax-m2.5",
  "provider": {
    "hpc-ai": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "RYGEN",
      "options": {
        "baseURL": "https://api.rygen.io/v1",
        "apiKey": "{env:RYGEN_API_KEY}"
      },
      "models": {
        "minimax/minimax-m2.5": {
          "name": "RYGEN Minimax M2.5",
          "tool_call": true,
          "limit": {
            "context": 128000,
            "output": 8192
          }
        }
      }
    }
  }
}

Then run Kilo CLI from the same project:

export RYGEN_API_KEY="your-rygen-api-key"
kilo -m hpc-ai/minimax/minimax-m2.5

1.2 References