> ## Documentation Index
> Fetch the complete documentation index at: https://docs.venice.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.
> Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.
> Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.
> Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md.

# Kilo Code

> Configure Kilo Code's native Venice provider in VS Code or the CLI for agentic coding with reasoning models and a shared kilo.json config.

[Kilo Code](https://kilo.ai/) is an open-source AI coding agent for VS Code and the terminal. Venice is available as a **native provider**, so you can select Venice models without configuring an OpenAI-compatible custom endpoint.

> [card] Native Provider
>
> Built-in Venice support in Kilo's Providers settings

> [card] VS Code + CLI
>
> Same `kilo.json` config works across the extension and CLI

> [card] Reasoning Models
>
> Kilo maps Venice reasoning controls when the model supports them

***

## Prerequisites

* A Venice API key from [venice.ai/settings/api](https://venice.ai/settings/api?utm_source=venice-api-documentation)
* [Kilo Code for VS Code](https://marketplace.visualstudio.com/items?itemName=kilocode.Kilo-Code) and/or the [Kilo CLI](https://kilo.ai/docs/code-with-ai/platforms/cli)

***

## Setup

> [tab] VS Code
>
> **1. Install Kilo Code**
>
> In VS Code, open **Extensions**, search for **Kilo Code**, and install it from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=kilocode.Kilo-Code).
>
> Prefer the Marketplace **Pre-Release** channel when that is the current recommended build — see [Kilo's install docs](https://kilo.ai/docs/getting-started/installing).
>
> **2. Get your Venice API key**
>
> Generate a key from [venice.ai/settings/api](https://venice.ai/settings/api?utm_source=venice-api-documentation). Copy it immediately and store it securely.
>
> **3. Add the Venice provider**
>
> Open Kilo **Settings** (gear icon) and go to the **Providers** tab. Select **Venice AI** and paste your Venice API key.
>
> The extension stores the provider in your `kilo.json` config. You can also edit that file directly — see the **CLI** tab for the format.
>
> **4. Select a model and test**
>
> Choose a Venice model from the model picker, then send a small task such as:
>
> ```txt theme={"system"}
> Review the current file and suggest one safe improvement.
> ```
>
> Browse available IDs in the [text model catalog](https://docs.venice.ai/models/text.md).

> [tab] CLI
>
> **1. Install the Kilo CLI**
>
> ```bash theme={"system"}
> npm install -g @kilocode/cli
> kilo --version
> ```
>
> See the [Kilo CLI docs](https://kilo.ai/docs/code-with-ai/platforms/cli) for other install options.
>
> **2. Set your Venice API key**
>
> Export the key in the shell where you run Kilo:
>
> ```bash theme={"system"}
> export VENICE_API_KEY="your-api-key"
> ```
>
> **3. Configure the Venice provider**
>
> Create or edit `~/.config/kilo/kilo.json` (global) or `./kilo.json` (project):
>
> ```json theme={"system"}
> {
>   "provider": {
>     "venice": {
>       "env": ["VENICE_API_KEY"]
>     }
>   },
>   "model": "venice/z-ai-glm-5-3-flash"
> }
> ```
>
> Replace `z-ai-glm-5-3-flash` with any model ID from the [text model catalog](https://docs.venice.ai/models/text.md). Kilo model references use the `venice/<model-id>` format.
>
> **4. Start Kilo**
>
> From your project directory:
>
> ```bash theme={"system"}
> kilo
> ```
>
> Select a Venice model from the model picker if you did not set a default `model`, then send a short test prompt.

***

## Verify the Venice API

If Kilo cannot connect, confirm the key and model IDs independently.

Check the key first. `GET /api_keys/rate_limits` requires authentication, so a `401` here means the key is at fault rather than Kilo's configuration:

```bash theme={"system"}
curl https://api.venice.ai/api/v1/api_keys/rate_limits \
  -H "Authorization: Bearer $VENICE_API_KEY"
```

Then list the model IDs. This endpoint answers with or without a key, so use it for discovery only:

```bash theme={"system"}
curl https://api.venice.ai/api/v1/models \
  -H "Authorization: Bearer $VENICE_API_KEY"
```

Copy a model's `id` exactly into Kilo. In CLI config, prefix it with `venice/`, for example `venice/z-ai-glm-5-3-flash`.

***

## Configuration Notes

* Venice is a **native** Kilo provider. Prefer **Venice AI** in Providers settings over a generic OpenAI-compatible custom endpoint.
* The extension and CLI share the same config files (`~/.config/kilo/kilo.json` globally, or `./kilo.json` in a project).
* Some Venice models expose reasoning controls. Kilo maps supported reasoning effort and disable-thinking options when the selected model supports them.
* Model IDs and plan access can change. Use the model picker, [text model catalog](https://docs.venice.ai/models/text.md), or `GET /models` for the current list.
* Keep your Venice API key private. Do not paste it into source files or commit it to git.

***

## Troubleshooting

> [accordion] Invalid API key or 401
>
> Confirm the key comes from [venice.ai/settings/api](https://venice.ai/settings/api?utm_source=venice-api-documentation). For the CLI, verify `VENICE_API_KEY` is set in the same environment that launches Kilo. In VS Code, reconnect Venice AI under **Providers**.

> [accordion] Model not available
>
> Confirm your Venice account has access to the selected model, copy the ID from the [text model catalog](https://docs.venice.ai/models/text.md) or `GET /models`, and for CLI config use the `venice/<model-id>` form.

> [accordion] Provider settings not found in the extension
>
> Update to the current recommended Kilo build (including Pre-Release when that is the documented default). You can also set the provider in `kilo.json` as shown in the CLI tab — the extension reads the same config.

> [accordion] Still stuck? See what the agent sends
>
> Run the [local debugging proxy](https://docs.venice.ai/learn/local-debug-proxy.md) between Kilo Code and Venice to log every request and response, including the model ID, tools, and error body the agent actually sent, plus the last four characters of the key it used.

***

## Resources

> [card] [Kilo Venice Provider Docs](https://kilo.ai/docs/ai-providers/venice)
>
> Official Kilo Code Venice setup

> [card] [Venice Text Models](https://docs.venice.ai/models/text.md)
>
> Browse available Venice model IDs

> [card] [Kilo Install Docs](https://kilo.ai/docs/getting-started/installing)
>
> VS Code, CLI, and other platforms

> [card] [Venice API Reference](https://docs.venice.ai/api-reference/api-spec.md)
>
> Full endpoint and parameter docs


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.