Edgee CLI setup (recommended)
The fastest way to connect Kilo Code to Edgee is the CLI. It authenticates, hands Kilo an Edgee provider populated from the live Edgee model catalog, and starts the agent — no config file to edit by hand.1
Install the Edgee CLI
- macOS / Linux
- Homebrew (macOS)
- Windows (PowerShell)
2
Launch Kilo Code through Edgee
Choose how you want to launch. Both options route requests through Edgee.If you are not signed in, Edgee starts sign-in automatically at launch. Follow the prompts and select your organization when asked.The CLI authenticates, adds the
- With aliases (recommended)
- Without aliases
With aliases installed in the previous step, use your usual command:The alias runs
edgee launch for you, so requests go through Edgee.edgee provider, and starts Kilo Code. Token compression is enabled automatically. Pick an Edgee model from Kilo’s model picker, or pass one directly:Everything after
kilo is forwarded to the agent untouched, so edgee launch kilo -- run --auto "..." works exactly like kilo run --auto "...". Run edgee alias to install a kilo shim, and plain kilo routes through Edgee from then on.Your own config is never modified
Unlike integrations that write into your configuration files,edgee launch kilo passes the Edgee provider to the agent inline, through the KILO_CONFIG_CONTENT environment variable, which Kilo deep-merges over your own configuration.
Two things follow. Your Edgee API key is never written to disk — it exists only in the environment of the Kilo process that Edgee starts. And nothing you have configured is touched, moved, or re-emitted: your ~/.config/kilo/kilo.json, your project kilo.json, your agents, commands and skills are all read by Kilo exactly as usual. Edgee contributes one provider and nothing else.
Because KILO_CONFIG_CONTENT ranks above project-level configuration in Kilo’s precedence order, a kilo.json committed in a repository cannot shadow the Edgee provider.
Model context windows and pricing
Model context windows and pricing
Each model the CLI writes into the Those are Claude Sonnet 4.5’s catalog values: a 1M context window, 15 per million input and output tokens, 3.75 per million cache-write tokens.Why it matters: Kilo defaults both to
edgee provider carries its context window and its per-million-token rates, read from the Edgee model catalog:0 for a config-defined model. Without limit, its context gauge and auto-compaction have nothing to measure against; without cost, every session reports as free.Details on what the CLI emits:limit.contextcomes from the catalog. When a model is served by several LLM providers with different windows, the value is the author’s own provider entry, or the smallest declared window when the author doesn’t serve it — overstating the window makes the agent compact too late and the request gets rejected.limit.outputis always32000. Kilo clamps every request’smax_tokensto its own 32k ceiling anyway, and its schema requiresoutputwheneverlimitis set.costis in US dollars per million tokens, the same unit as Kilo’s own catalog. A model that is genuinely free gets zeroed rates rather than an omittedcost.- Tiered long-context pricing is not emitted. Kilo’s schema has a
cost.context_over_200kslot, but its config merge drops that field, so declaring it would imply a tier that never takes effect. - Models the catalog has no entry for keep working; they just ship without
limitorcost. The fetch is best-effort — if it fails, launch continues with no declared metadata.
Manual setup (advanced)
Get your coding-agent key
Manual setup uses the key of your enrolled Kilo Code agent, not a standard API key created for LLM Router applications.- Open the Edgee Console and select your organization.
- In the header, click Set up coding agent or +, select Kilo Code, and click Enroll. If your agent is already enrolled, use its existing icon.
- Click the agent’s icon, then Advanced settings → Advanced.
- Under Edgee API key (for manual setup), click Reveal key, then the copy icon.
<YOUR_CODING_AGENT_KEY>.
Configure Kilo Code
Prefer to configure Kilo Code yourself? Open or create~/.config/kilo/kilo.json and add the following configuration:
"<YOUR_CODING_AGENT_KEY>" with the coding-agent key copied above.
Keep the /v1 on baseURL: Kilo speaks the OpenAI Chat Completions API and does not append the version segment itself.
Model ids use the provider/model form the Edgee catalog exposes. limit and cost are optional, but a model without them gets no context gauge, no auto-compaction, and a $0 cost readout — the same reason edgee launch kilo declares them for you. Keep limit.output at 32000: Kilo clamps max_tokens to that ceiling regardless.
Usage
Once configured, select an Edgee model from Kilo’s picker, or pass it on the command line:edgee/<provider>/<model>. Run kilo models edgee to list the ones currently available to you.
Authentication
Edgee uses standard Bearer token authentication. The API key configured inkilo.json — or supplied by edgee launch kilo — authenticates requests to the Edgee API.
Kilo’s own kilo auth login is independent and untouched: launching through Edgee adds a provider rather than redirecting the one you already signed in to, so you can switch back at any time by picking a non-Edgee model.
Token compression is only available when routing through Edgee. You can use your own provider keys via BYOK — compression still applies as long as requests go through Edgee.
Next Steps
- Explore Kilo Code’s documentation for more features
- Set up observability to monitor your Kilo Code sessions