Using Downsizing with Kilo Code
Route Kilo Code traffic through Downsizing by pointing its Anthropic provider at your Downsizing endpoint.
Prerequisites
Install the Downsizing CLI — see the CLI guide if you haven't already.
Link Kilo Code (Recommended)
Kilo Code is a VS Code extension — a fork of Roo Code, which is itself a fork of Cline. It inherits that lineage's storage model: provider settings live inside VS Code's internal extension state (a versioned globalState database) and the OS keychain (SecretStorage) for the API key, not in a plain config file. There is no supported, stable way for an external CLI to write to either of those safely, so ds link kilo-codedoesn't edit any files. Instead it prints the exact values to paste into Kilo Code's settings:
ds link kilo-codeCopy the printed API Key and Base URLinto Kilo Code's settings panel (gear icon in the Kilo Code sidebar → Providers):
- API Provider: Anthropic
- Check "Use custom base URL" and paste the printed base URL
- Paste the printed API key
- Model:
claude-opus-4-8(or your preferred Claude model)
Manual Setup
You can configure Kilo Code manually without running the CLI. Open Kilo Code's settings (gear icon) and choose one of the following:
Anthropic (recommended) — set API Provider to Anthropic, enable "Use custom base URL", and set it to:
https://api.downsizing.dev/YOUR_ROUTER_ID/anthropicEnter your Downsizing API key (starts with dws_) as the API key.
OpenAI Compatible (fallback)— if you'd rather not use the Anthropic provider, set API Provider to OpenAI Compatible and use the Downsizing OpenAI Responses API endpoint (never Chat Completions):
https://api.downsizing.dev/YOUR_ROUTER_ID/openai/v1Find your Router ID and API key on the Inference API page.
Verify
Open Kilo Code in VS Code and send a message in the chat panel to confirm traffic is routing through Downsizing. If Kilo Code responds, Downsizing is set up correctly. You can also check your savings dashboard to see the request appear in your usage metrics.
Unlinking
Because ds link kilo-codenever wrote a config file, there's nothing on disk to remove. Run the unlink command to update ds's own record of linked tools, then clear the API key/base URL fields directly in Kilo Code's settings:
ds unlink kilo-codeSpot an error or something not working? Tell us on Discord or email docs@downsizing.dev.