· rangkumin.tech

Kilo Code With an OpenAI-Compatible API: AtmoRouter Setup Guide

AtmoRouter's guide shows how to connect Kilo Code to any OpenAI-compatible endpoint: the custom-provider fields, why unset token limits disable auto-compaction, how to map model IDs, and what a typical coding task costs across four models.

Why it matters

This article was written by AtmoRouter. Kilo Code is a VS Code coding agent that speaks to any provider exposing the OpenAI Chat Completions API, so you can point it at AtmoRouter with one base URL and one key instead of juggling separate accounts for every model you want to try.

The setup lives in the Providers tab: add a custom provider, choose OpenAI Compatible, enter the base URL ending in v1 and your key, and Kilo will pull the model list automatically. For finer control you edit kilo.jsonc, where each model gets an id, cost and token limits. The guide stresses one trap: if limits are left at zero for a custom model, automatic compaction is switched off and the conversation grows until the provider rejects it.

It closes with illustrative cost math for a twelve-request task: well under a cent on small models, around six cents on a Sonnet-class model and about eleven cents on a larger one, with rates sourced from the live catalogue and a reminder to check the model page before budgeting.

Sources

Choose English or Indonesian. Up to two editions a day. Unsubscribe anytime.