# Kilo Code

Kilo Code is an open-source AI coding agent that integrates directly into VS Code to support code generation, refactoring, terminal automation, and browser-based workflows using large language models (LLMs).

Kilo Code supports custom OpenAI-compatible providers, allowing you to connect directly to the **Arcee AI API** and access **Trinity models** without a third-party proxy. This provides a direct connection to Arcee's inference platform with full access to all available models.

This guide walks through how to configure Kilo Code to use Trinity models via the Arcee AI API.

***

**Prerequisites**

* Arcee AI Account
  * If you don't have an account, sign up at [chat.arcee.ai](https://chat.arcee.ai/).
* Arcee AI API Key
  * If you don't have an API Key, create one [here](https://chat.arcee.ai/api/api-keys).
* *Arcee AI models are also available via* [*OpenRouter*](https://openrouter.ai/)*. Kilo Code supports OpenRouter as a built-in provider — simply select it from the provider list and use your OpenRouter API key.*

**Quickstart**

1. Install Kilo Code
   1. Open the Extensions panel in VS Code and search for **Kilo Code**, then click **Install**.
2. Open Kilo Code Settings
   1. Click the Kilo Code icon in the left sidebar to open the panel, then click the gear icon (⚙️) in the top right corner.
3. Add Arcee AI as a Custom Provider
   1. Navigate to the **Providers** tab.
   2. Scroll down to **Custom provider** and click **+ Connect**.
   3. Enter the following settings:
      * **Provider ID:** `arcee-ai`
      * **Display Name:** `Arcee AI`
      * **Base URL:** `https://api.arcee.ai/api/v1`
      * **API Key:** Your Arcee AI API key
4. Add Models
   1. Kilo Code should automatically detect and add available models. If it does not, manually add the following:
      * **Model ID:** `trinity-large-thinking` — **Display Name:** `Trinity Large Thinking`
      * **Model ID:** `trinity-large-preview` — **Display Name:** `Trinity Large Preview`
      * **Model ID:** `trinity-mini` — **Display Name:** `Trinity Mini`
5. Set Default Model *(Optional)*
   1. Navigate to the **Models** tab.
   2. Under **Default Model**, select **Arcee AI / Trinity Large Thinking** from the dropdown.

Once configured, Kilo Code will route all requests directly through the Arcee AI API using the selected Trinity model.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.arcee.ai/get-started/integration-list/kilo-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
