kilo run command for scripts and CI, five built-in agents (Code, Ask, Plan, Debug, and Orchestrator), and support for skills, commands, MCP servers, and plugins. Kilo builds its provider and model list from the models.dev catalog, which it caches locally and refreshes in the background, so every provider listed there shows up in /connect and /models without extra configuration. ZeroGPU is listed on models.dev, which means you can run Kilo on ZeroGPU’s models with nothing but an API key.
ZeroGPU is a compute-efficient inference provider for apps and agents. We run purpose-built small and nano language models across an edge network for the high-volume tasks you run constantly - classification, extraction, moderation, routing, summarization - at ~10x lower latency and 50%+ lower cost than frontier-model workflows. Auto-scaling, with zero GPU infrastructure to manage. Plug in and you’re live.
Overview
This guide covers running Kilo CLI on ZeroGPU, for developers who want a low-cost model provider behind their coding agent. You’ll connect your ZeroGPU key, pick a ZeroGPU model, and run your first prompt, then work through every surface Kilo exposes for a provider:/connect and kilo auth, the ZEROGPU_API_KEY variable, /models and kilo models, kilo run, kilo roll-call, kilo stats, the default model, per-agent models, reasoning variants, provider overrides and filters, and adding ZeroGPU models that models.dev doesn’t list yet. Every command, flag, and config key here was checked against Kilo CLI 7.8.32. By the end you’ll have Kilo building features on ZeroGPU for about a cent each.
Cookbook
For a runnable, real-world example, see Build a Movie Watchlist with Kilo CLI and ZeroGPU. It connects ZeroGPU in Kilo with/connect, picks DeepSeek V4.1 Flash, and has the agent build a complete watchlist feature for a React movie app (save and remove films, a live count, a saved-films view, and persistence across refreshes) across four files in about 23 seconds, for $0.0056. Check it out to see /connect, /models, and a real multi-file agent run end to end.
For more worked examples, browse the cookbook index for
end-to-end walkthroughs of classification, extraction, and PII workflows on
ZeroGPU’s small models.
Video walkthrough
Quickstart
Prerequisites
- A ZeroGPU API key (starts with
zgpu-api-). - Kilo CLI. This guide was tested with version 7.8.32.
- A project directory to run Kilo in, ideally a git repository so you can review and undo the agent’s changes.
- A chat model from the model catalog. This guide uses
deepseek-v4.1-flash, which built every feature cleanly in our tests.
Get your ZeroGPU API key
- Sign in to the ZeroGPU dashboard.
- Open API Keys and click Create key.
- Copy the key (starts with
zgpu-api-). You’ll paste it into/connectorkilo auth login, or export it asZEROGPU_API_KEY, the variable models.dev lists for ZeroGPU.
Install Kilo CLI
Your first request
Start Kilo in your project, connect ZeroGPU, and pick a model. This is the flow from the video:zero, press Enter on ZeroGPU, paste your key, and press Enter. Kilo shows the key in plain text while you paste it, so if you’re sharing your screen, store it beforehand with kilo auth login --provider zerogpu, which masks it (see kilo auth). Then:
zerogpu to list ZeroGPU’s nine models, pick DeepSeek V4.1 Flash, and press Enter on Default when Kilo asks for a variant. The footer under the input box now reads Code · DeepSeek V4.1 Flash ZeroGPU. Type a prompt and press Enter.
To check the connection from a shell without opening the interface:
ZEROGPU_API_KEY and start Kilo from the same shell. Kilo reads the variable from its own environment, so there’s no background server to restart. Either way, Kilo sends requests to https://api.zerogpu.ai/v1, the endpoint models.dev lists for ZeroGPU.
Usage
Every section below follows the same shape: what the surface does, what it reads or calls on ZeroGPU, its parameters, a runnable example, and what you get back.How Kilo finds ZeroGPU
Kilo builds its provider list from the models.dev catalog, which it caches at~/.cache/kilo/models.json and refreshes in the background. ZeroGPU’s listing gives Kilo everything it needs, so there’s no provider block to write:
These nine ZeroGPU models appear in
/models. Prices are USD per 1M tokens, and variants are explained in Reasoning variants.
All nine support tool calling, which Kilo needs to read files, edit code, and run commands, and all nine answered a
kilo roll-call in 1.1 to 3.9 seconds. For input types and the full metadata, see the Models.dev integration guide. ZeroGPU models that models.dev doesn’t list yet can be added by hand; see Add unlisted ZeroGPU models.
/connect
Connects ZeroGPU and stores your API key in Kilo’s credential file, from inside the interactive interface.
~/.local/share/kilo/auth.json, and ZeroGPU’s models appear in /models right away. The next time you open /connect, ZeroGPU carries a ✓ like your other connected providers. Every Kilo session on your machine shares the stored key, so you only connect once.
kilo auth
The command-line side of /connect, for managing stored credentials from a shell. kilo auth login masks the key as you paste it, which makes it the better choice when your screen is visible to others.
Credentials lists keys stored with /connect or auth login, and Environment lists keys Kilo found in its environment. To remove a stored ZeroGPU key:
ZEROGPU_API_KEY
Uses a ZeroGPU key without storing it. Kilo reads the variable from the environment of the process you start, whether that’s the interactive interface or kilo run, so it works for CI and for anyone who keeps keys in a secrets manager.
kilo auth list shows ZeroGPU under Environment. A Kilo window that was already open before you exported the variable doesn’t see it; quit and start kilo again from the same shell.
/models
Picks the model for the current agent. Once ZeroGPU is connected, its nine models appear under a ZeroGPU header, and a panel on the right shows the highlighted model’s provider, prices per 1M tokens (input, output, and cached), context window, and whether it reasons.
Code · DeepSeek V4.1 Flash ZeroGPU, and the line under each reply shows the model and how long the turn took, such as Code · DeepSeek V4.1 Flash · 24.9s. Kilo remembers the pick for that agent in ~/.local/state/kilo/model.json, so the next kilo starts on the same model.
kilo models
Lists every model reference available to you from a shell, which is the quickest way to copy an exact ID for --model or config.
--verbose, each reference is followed by its metadata. This is an excerpt for DeepSeek V4.1 Flash:
kilo run
Runs one prompt without opening the interface, for scripts and CI. The agent works through the task with as many POST /v1/chat/completions calls to ZeroGPU as it needs, editing files in place.
> code · deepseek-v4.1-flash header, then the agent’s reads, edits, and commands as they happen, and a final summary. Changed files stay in your working directory. In the cookbook, this exact prompt built the feature for $0.0045 to $0.0105, usually in 22 to 26 seconds. In kilo run, any permission that would normally ask, such as reading outside the project, is rejected automatically and ends the run; pass --auto or allow it in config (see Troubleshooting).
kilo roll-call
Sends a short prompt to every model matching a pattern and reports which ones answered and how fast. Run it after connecting ZeroGPU, or in CI, to confirm your key and the models you depend on before a long session.
kilo stats
Summarizes token usage and cost across your sessions, with a per-model breakdown that shows exactly what ZeroGPU work has cost. The sidebar rounds to the cent; this is the precise figure.
Default model
Sets the ZeroGPU model Kilo uses when you haven’t picked one. Put it inkilo.json or kilo.jsonc at your project root (or in .kilo/), or in ~/.config/kilo/kilo.jsonc for every project. Project files override the global one.
kilo.jsonc
kilo run uses DeepSeek V4.1 Flash whenever you don’t pass --model, and titles and summaries go to GPT-5.4 nano. In the interactive interface, a model you picked in /models takes precedence: Kilo reopens on your last pick for each agent, so model only applies until you pick one. Start with kilo -m zerogpu/<model-id> to override both for one session without changing the remembered pick.
Agents
Gives individual agents their own ZeroGPU model. Kilo’s primary agents arecode (the default), ask, plan, debug, and orchestrator; its subagents are explore and general. A subagent without a model of its own runs on the session’s model, so you can keep a capable model on code and send read-only searching to a cheaper one.
kilo.jsonc
.kilo/agent/ (or ~/.config/kilo/agent/ for every project). This read-only reviewer runs on GPT-5.6 Luna with high reasoning effort:
.kilo/agent/reviewer.md
kilo debug agent reviewer shows the agent with zerogpu/gpt-5.6-luna, variant high, and edits and shell commands denied. When you ask “Use the reviewer subagent to review my current changes”, Kilo launches it on GPT-5.6 Luna while the main session stays on DeepSeek V4.1 Flash.
Reasoning variants
Variants are named reasoning presets for one model. Kilo builds them from each model’s reasoning controls on models.dev, and each built-in variant setsreasoning_effort on the request to ZeroGPU. The model table lists the variants for every ZeroGPU model.
reasoningEffort as reasoning_effort and passes any other field into the request body as is. A variants map replaces the variants Kilo generates for that model, so list every variant you want to keep:
kilo.jsonc
"thinking": {"type": "enabled"} and "reasoning_effort": "high". A variant name the model doesn’t have is ignored without an error, so a typo silently runs with no reasoning setting. ZeroGPU doesn’t return reasoning text on this API, so you’ll see the answer but no thinking blocks, even with --thinking.
Provider overrides and filters
Customizes how Kilo calls ZeroGPU, and which models and providers it shows, without redefining the provider. The models.dev entry still supplies the endpoint, package, models, and prices;provider.zerogpu only adds or overrides.
kilo.jsonc
/models and kilo models. Run kilo config check after editing; it prints No config warnings. when the file is valid.
Add unlisted ZeroGPU models
ZeroGPU serves more chat models than models.dev lists. Add one underprovider.zerogpu.models and it appears in /models next to the catalog ones. Kilo sends its tool definitions with every request, so only models that accept tool calls can run a Kilo session. Of ZeroGPU’s unlisted chat models, that’s GPT-6 Luna:
kilo.jsonc
kilo models zerogpu and /models under ZeroGPU and is billed at ZeroGPU’s rates. Running Kilo on a model that doesn’t accept tool calls fails on the first request with Tool calling is not supported for model: <id>; call those models directly through the API instead. Prices here are from the model catalog in November 2026; check it for current values. When models.dev adds GPT-6 Luna, delete its entry so the catalog’s data takes over.
Patterns and recipes
Capable code agent, cheap explorer. Keepzerogpu/deepseek-v4.1-flash on the code agent and send the explore subagent to zerogpu/gpt-5.4-nano with the low variant, as in Agents. Searching and reading files are the bulk of an agent’s tokens, and they don’t need the bigger model.
Think on demand. Leave DeepSeek V4.1 Flash on its fast default for everyday edits, and reach for the think variant from Reasoning variants only on the hard bug: kilo run --model zerogpu/deepseek-v4.1-flash --variant think "...". You pay for reasoning tokens only on the runs that need them.
Headless runs in CI. Export the key from your secrets store, check the models with a roll call, then run with --auto so the agent never stops on a permission prompt and --format json for a parseable log:
enabled_providers with a whitelist of the models you’ve tested:
kilo.jsonc
5,582 x $0.30/1M + 175,232 x $0.003/1M + 2,849 x $1.20/1M = $0.0056, exactly what Kilo reported.
At a glance
Troubleshooting
ZeroGPU doesn’t appear in/connect or /models. Kilo’s cached copy of the models.dev catalog predates ZeroGPU’s listing. Run kilo models --refresh to update it (and kilo upgrade for an older Kilo), then start kilo again.
The key is readable on screen while you paste it into /connect. Kilo doesn’t mask that field. Store the key with kilo auth login --provider zerogpu instead, which shows it as ▪▪▪▪, or export ZEROGPU_API_KEY.
kilo auth login stops at “Add credential”. Without --provider, the command can wait for a keypress before showing the provider list, and that keypress is echoed on screen. Pass --provider zerogpu to go straight to the key prompt.
You exported ZEROGPU_API_KEY but ZeroGPU still isn’t connected. The Kilo window started before you exported the variable, or in a different shell. Quit it and run kilo from the shell that has the variable, then check that kilo auth list shows ZeroGPU under Environment.
Kilo starts on a different model than the model in your config. In the interactive interface, your last /models pick for each agent wins over model. Pick the model once in /models, or start with kilo -m zerogpu/<model-id>. kilo run always follows --model or model.
Model not found: zerogpu/<id>. The ID doesn’t match the catalog. Catalog IDs are lowercase and exact, such as zerogpu/qwen3.6-35b-a3b, and Kilo suggests close matches in the error. For a model you added in config, the reference uses the models map key, not id. Run kilo models zerogpu for valid references.
--variant seems to have no effect. A variant name the model doesn’t have is ignored without an error, so --variant medium on DeepSeek V4.1 Flash runs with no reasoning setting. Check the model table, and remember that a variants map in config replaces the generated variants rather than adding to them.
Tool calling is not supported for model: <id>. You added an unlisted ZeroGPU model that doesn’t accept tool calls, and Kilo sends tools with every request. Use one of the nine catalog models or gpt-6-luna for Kilo sessions.
run ended with an auto-rejected permission; pass --auto for autonomous use. kilo run can’t stop to ask, so any permission set to ask, such as reading files outside the project, ends the run. Pass --auto, or allow that permission in your config’s permission block.
401 Unauthorized on the first message. The key is wrong, revoked, or picked up a stray space when pasted. Create a fresh key in the dashboard, run kilo auth logout zerogpu, and connect again.
The sidebar with the session cost doesn’t show, or reads $0.01. The sidebar needs a terminal about 125 columns wide or more; widen the terminal or press Ctrl + X, then B to toggle it. Kilo rounds the sidebar cost to the cent, and a feature on ZeroGPU often costs less than one; kilo stats --models shows the exact figure. The sidebar’s Balance line is your Kilo account’s credit, not ZeroGPU usage, which is billed to your ZeroGPU account.
No thinking blocks appear on a reasoning model. ZeroGPU doesn’t return reasoning text on the chat completions API, so there’s nothing for Kilo to display. The reasoning still happens and is billed as output tokens.
Conclusion
Kilo CLI reads ZeroGPU straight from models.dev, so going from install to a coding agent on ZeroGPU is one/connect and one /models pick. With per-agent models, reasoning variants, roll calls, and headless runs, you can put fast, cheap models on the routine work and keep deeper reasoning for the tasks that need it, at about a cent per feature.
Model Catalog
Browse every model available on ZeroGPU and pick the best fit.
API Reference
Explore the full OpenAI-compatible API surface.
Cookbook
Build a movie watchlist in a React app with Kilo CLI on ZeroGPU.
Join Discord
Ask questions and share what you’re building.

