Skip to content

Commit 0fc57fb

Browse files
Dmitry Tumanovgitbook-bot
authored andcommitted
GITBOOK-498: Kilo Code
1 parent 01c1e3f commit 0fc57fb

7 files changed

Lines changed: 150 additions & 1 deletion

File tree

29 KB
Loading
52 KB
Loading
103 KB
Loading
86.1 KB
Loading

docs/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@
448448
* [Cursor](integrations/cursor.md)
449449
* [ElizaOS](integrations/elizaos.md)
450450
* [GPT Researcher (gptr)](integrations/gpt-researcher-gptr.md)
451+
* [Kilo Code](integrations/kilo-code.md)
451452
* [Langflow](integrations/langflow.md)
452453
* [LiteLLM](integrations/litellm.md)
453454
* [Make](integrations/make.md)

docs/integrations/kilo-code.md

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
# Kilo Code
2+
3+
## About
4+
5+
[Kilo Code](https://kilocode.ai/) is an open-source AI coding assistant and VS Code extension that enables natural-language code generation, debugging, and refactoring through customizable modes (Architect, Code, Debug, etc.). It supports multiple model providers, integrates with the Model Context Protocol (MCP), and allows developers to extend functionality with custom tools and workflows.
6+
7+
This guide shows how to connect **AI/ML API** as a **custom provider** in **Kilo Code** for VS Code, using the **OpenAI-compatible** path.\
8+
Follow the steps and screenshots below.
9+
10+
***
11+
12+
## Summary
13+
14+
* **Provider:** OpenAI Compatible (inside Kilo Code)
15+
* **Base URL:** `https://api.aimlapi.com/v1`
16+
* **API Key:** from your AI/ML API dashboard
17+
* **Recommended Model IDs:** [openai/gpt-5-chat-latest](../api-references/text-models-llm/openai/gpt-5-chat.md), [openai/o4-mini](../api-references/text-models-llm/openai/o4-mini.md), [openai/gpt-4.1](../api-references/text-models-llm/openai/gpt-4.1.md) ( or any other supported model)
18+
19+
***
20+
21+
## 0) Install Kilo Code Extension
22+
23+
If you haven’t installed Kilo Code yet:
24+
25+
1. Open VS Code.
26+
2. Go to Extensions (Ctrl+Shift+X or Cmd+Shift+X).
27+
3. Search for “Kilo Code”.
28+
4. Install the extension by Kilo Code.
29+
5. Reload VS Code if prompted.
30+
31+
After installation, you’ll see the Kilo Code icon in the sidebar.
32+
33+
Or you can install it from the official site: [**kilocode.ai**](https://kilocode.ai/)
34+
35+
***
36+
37+
## 1) Open Kilo Code → “Use your own API key”
38+
39+
From the Kilo Code welcome screen, click **Use your own API key**.
40+
41+
<div align="left" data-with-frame="true"><figure><img src="../.gitbook/assets/01-welcome.png" alt=""><figcaption></figcaption></figure></div>
42+
43+
***
44+
45+
## 2) Choose Provider: **OpenAI Compatible**
46+
47+
Open the provider dropdown and select **OpenAI Compatible**.
48+
49+
<div align="left" data-with-frame="true"><figure><img src="../.gitbook/assets/02-provider-dropdown.png" alt=""><figcaption></figcaption></figure></div>
50+
51+
{% hint style="info" %}
52+
Tip: Kilo Code also lists many other providers. For AI/ML API use the **OpenAI Compatible** option.
53+
{% endhint %}
54+
55+
***
56+
57+
## 3) Configure AI/ML API Settings
58+
59+
Fill the form as follows:
60+
61+
* **Base URL**
62+
63+
```
64+
https://api.aimlapi.com/v1
65+
```
66+
* **API Key**\
67+
Paste your key from [**https://aimlapi.com/app/keys**](https://aimlapi.com/app/keys)
68+
* **Model** (examples)
69+
* [openai/gpt-5-chat-latest](../api-references/text-models-llm/openai/gpt-5-chat.md) ← recommended universal chat
70+
* [openai/gpt-5-2025-08-07](../api-references/text-models-llm/openai/gpt-5.md) ← pinned dated release
71+
* [openai/o4-mini](../api-references/text-models-llm/openai/o4-mini.md) ← fast, low-cost
72+
* [openai/gpt-4.1](../api-references/text-models-llm/openai/gpt-4.1.md) ← stable classic
73+
* _any other supported model by your account_
74+
* **Use Azure**: `OFF`
75+
* **Set Azure API version**: leave disabled
76+
* **Image Support**: `ON` if you plan to send images (e.g., 4o / o4-mini)
77+
* **Max Output Tokens**: `-1` (let server decide)
78+
* **Context Window Size**: up to `128000` (adjust as needed)
79+
80+
<div align="left" data-with-frame="true"><figure><img src="../.gitbook/assets/03-openai-compatible-config.png" alt=""><figcaption></figcaption></figure></div>
81+
82+
{% hint style="info" %}
83+
**Note**: If you have custom headers (e.g., for proxies), add them in the **Custom Headers** field.
84+
{% endhint %}
85+
86+
***
87+
88+
## 4) Run Your First Task
89+
90+
Open the Kilo Code panel, start a task (Ask/Code/Debug), and send a short test message, for example:
91+
92+
```
93+
Hi from AI/ML API!
94+
```
95+
96+
<div align="left" data-with-frame="true"><figure><img src="../.gitbook/assets/04-first-task-success.png" alt=""><figcaption></figcaption></figure></div>
97+
98+
You should see a successful response with tokens/usage bars as in the screenshot.
99+
100+
***
101+
102+
## 🔬 Quick API Sanity Check (optional)
103+
104+
You can also sanity-check your key via `curl`:
105+
106+
{% code overflow="wrap" %}
107+
```bash
108+
curl -X POST https://api.aimlapi.com/v1/chat/completions -H "Authorization: Bearer $AIMLAPI_KEY" -H "Content-Type: application/json" -d '{
109+
"model": "openai/gpt-5-chat-latest",
110+
"messages": [
111+
{"role":"system","content":"You are a concise assistant."},
112+
{"role":"user","content":"Say hello in one sentence."}
113+
]
114+
}'
115+
```
116+
{% endcode %}
117+
118+
If the request succeeds, you’re ready to use the same model inside Kilo Code.
119+
120+
***
121+
122+
## 💡 Tips
123+
124+
* **Profiles**: Create multiple _API Configuration Profiles_ (e.g., default = `openai/gpt-5-chat-latest`, heavy = `openai/gpt-5-2025-08-07`, budget = `openai/o4-mini`). Switch per task.
125+
* **Images**: For vision tasks, keep **Image Support** enabled and use a vision-capable model.
126+
* **Token Limits**: Large responses may require raising _Max Output Tokens_ or splitting the task.
127+
* **Headers**: If you need custom headers, add them in **Custom Headers**.
128+
129+
***
130+
131+
## 🧰 Troubleshooting
132+
133+
* **401 / Unauthorized**: Re-check your API key and that it’s pasted without spaces. Regenerate if needed.
134+
* **404 / Model not found**: Verify the **exact Model ID** you selected is available to your account.
135+
* **No response / Network issues**: Corporate VPN/Proxy may block `api.aimlapi.com`. Whitelist the domain.
136+
* **Azure mode confusion**: Leave **Use Azure** toggled **off** unless you specifically need Azure routes.
137+
138+
***
139+
140+
## 📚 Helpful Links
141+
142+
* **AI/ML API Keys**: [https://aimlapi.com/app/keys](https://aimlapi.com/app/keys)
143+
* **AI/ML API Dashboard**: [https://aimlapi.com/app](https://aimlapi.com/app)
144+
* **Kilo Code Docs**: [https://kilocode.ai/docs](https://kilocode.ai/docs)
145+
146+
***
147+
148+
Enjoy coding with **Kilo Code + AI/ML API**! 🚀

docs/integrations/our-integration-list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ description: About third-party integrations
66

77
Our API endpoint can be integrated with popular AI workflow platforms and tools, allowing their users to access our models through these environments.
88

9-
<table><thead><tr><th width="124">Service</th><th>Description</th></tr></thead><tbody><tr><td><a href="agno.md">Agno</a></td><td>A lightweight library for building agents — AI programs that operate autonomously, use tools, and have memory, knowledge, storage, and reasoning capabilities.</td></tr><tr><td><a href="aider.md">Aider</a></td><td>A command-line pair programming tool that connects to OpenAI-compatible APIs. It lets you chat with models to edit your codebase, auto-commit changes, and build software collaboratively from the terminal.</td></tr><tr><td><a href="autogpt.md">AutoGPT</a></td><td>An open-source platform designed to help you build, test, and run AI agents using a no-code visual interface. It allows users to link LLMs with tools, memory, planning modules, and action chains.</td></tr><tr><td><a href="cline.md">Cline</a></td><td>An open-source AI coding assistant with two working modes (Plan/Act), terminal command execution, and support for the Model Context Protocol (MCP) in VS Code.</td></tr><tr><td><a href="continue.dev.md">continue.dev</a></td><td>An open-source IDE extension and hub for rules, tools, and models that let you create, share, and use custom AI code assistants.</td></tr><tr><td><a href="cursor.md">Cursor</a></td><td>An advanced AI-powered IDE that combines intelligent code completion, inline explanations, and automatic code editing directly inside the editor.</td></tr><tr><td><a href="elizaos.md">ElizaOS</a></td><td>A powerful multi-agent simulation framework designed to create, deploy, and manage autonomous AI agents. Built with TypeScript, it provides a flexible and extensible platform for developing intelligent agents that can interact across multiple platforms while maintaining consistent personalities and knowledge.</td></tr><tr><td><a href="gpt-researcher-gptr.md">GPT Researcher</a></td><td>An autonomous agent that takes care of the tedious task of research for you, by scraping, filtering and aggregating over 20+ web sources per a single research task.</td></tr><tr><td><a href="langflow.md">Langflow</a></td><td>A new visual framework for building multi-agent and RAG applications. It is open-source, Python-powered, fully customizable, and LLM and vector store agnostic. Its intuitive interface allows for easy manipulation of AI building blocks, enabling developers to quickly prototype and turn their ideas into powerful, real-world solutions.</td></tr><tr><td><a href="litellm.md">LiteLLM</a></td><td>An open-source Python library that provides a unified API for interacting with multiple large language model providers. It allows developers to switch between different models with minimal code changes, optimizing cost and performance. LiteLLM simplifies integration by offering a single interface for various LLM endpoints, enabling seamless experimentation and deployment across different AI providers.</td></tr><tr><td><a href="make.md">Make</a></td><td>A powerful, enterprise-scale automation platform. It offers flow control, data manipulation, HTTP/webhooks, AI agents and tools, notes, an MCP server, and many other features at your service.</td></tr><tr><td><a href="n8n.md">n8n</a></td><td>An open-source workflow automation tool that lets you connect various services and automate tasks without writing full integrations manually.</td></tr><tr><td><a href="roo-code.md">Roo Code</a></td><td>An autonomous AI programming agent that works right inside your editor, such as VS Code. It helps you code faster and smarter — whether you're starting a new project, maintaining existing code, or exploring new technologies.</td></tr><tr><td><a href="sillytavern.md">SillyTavern</a></td><td>A locally installed user interface that allows you to interact with text generation LLMs, image generation engines, and TTS voice models. Integration with the AI/ML API currently applies only to LLMs.</td></tr><tr><td><a href="toolhouse.md">Toolhouse</a></td><td>A Backend-as-a-Service (BaaS) to build, run, and manage AI agents. Toolhouse simplifies the process of building agents in a local environment and running them in production.</td></tr></tbody></table>
9+
<table><thead><tr><th width="124">Service</th><th>Description</th></tr></thead><tbody><tr><td><a href="agno.md">Agno</a></td><td>A lightweight library for building agents — AI programs that operate autonomously, use tools, and have memory, knowledge, storage, and reasoning capabilities.</td></tr><tr><td><a href="aider.md">Aider</a></td><td>A command-line pair programming tool that connects to OpenAI-compatible APIs. It lets you chat with models to edit your codebase, auto-commit changes, and build software collaboratively from the terminal.</td></tr><tr><td><a href="autogpt.md">AutoGPT</a></td><td>An open-source platform designed to help you build, test, and run AI agents using a no-code visual interface. It allows users to link LLMs with tools, memory, planning modules, and action chains.</td></tr><tr><td><a href="cline.md">Cline</a></td><td>An open-source AI coding assistant with two working modes (Plan/Act), terminal command execution, and support for the Model Context Protocol (MCP) in VS Code.</td></tr><tr><td><a href="continue.dev.md">continue.dev</a></td><td>An open-source IDE extension and hub for rules, tools, and models that let you create, share, and use custom AI code assistants.</td></tr><tr><td><a href="cursor.md">Cursor</a></td><td>An advanced AI-powered IDE that combines intelligent code completion, inline explanations, and automatic code editing directly inside the editor.</td></tr><tr><td><a href="elizaos.md">ElizaOS</a></td><td>A powerful multi-agent simulation framework designed to create, deploy, and manage autonomous AI agents. Built with TypeScript, it provides a flexible and extensible platform for developing intelligent agents that can interact across multiple platforms while maintaining consistent personalities and knowledge.</td></tr><tr><td><a href="gpt-researcher-gptr.md">GPT Researcher</a></td><td>An autonomous agent that takes care of the tedious task of research for you, by scraping, filtering and aggregating over 20+ web sources per a single research task.</td></tr><tr><td><a href="https://kilocode.ai/">Kilo Code</a></td><td>An open-source AI coding assistant and VS Code extension that enables natural-language code generation, debugging, and refactoring through customizable modes (Architect, Code, Debug, etc.). It supports multiple model providers, integrates with the Model Context Protocol (MCP), and allows developers to extend functionality with custom tools and workflows.</td></tr><tr><td><a href="langflow.md">Langflow</a></td><td>A new visual framework for building multi-agent and RAG applications. It is open-source, Python-powered, fully customizable, and LLM and vector store agnostic. Its intuitive interface allows for easy manipulation of AI building blocks, enabling developers to quickly prototype and turn their ideas into powerful, real-world solutions.</td></tr><tr><td><a href="litellm.md">LiteLLM</a></td><td>An open-source Python library that provides a unified API for interacting with multiple large language model providers. It allows developers to switch between different models with minimal code changes, optimizing cost and performance. LiteLLM simplifies integration by offering a single interface for various LLM endpoints, enabling seamless experimentation and deployment across different AI providers.</td></tr><tr><td><a href="make.md">Make</a></td><td>A powerful, enterprise-scale automation platform. It offers flow control, data manipulation, HTTP/webhooks, AI agents and tools, notes, an MCP server, and many other features at your service.</td></tr><tr><td><a href="n8n.md">n8n</a></td><td>An open-source workflow automation tool that lets you connect various services and automate tasks without writing full integrations manually.</td></tr><tr><td><a href="roo-code.md">Roo Code</a></td><td>An autonomous AI programming agent that works right inside your editor, such as VS Code. It helps you code faster and smarter — whether you're starting a new project, maintaining existing code, or exploring new technologies.</td></tr><tr><td><a href="sillytavern.md">SillyTavern</a></td><td>A locally installed user interface that allows you to interact with text generation LLMs, image generation engines, and TTS voice models. Integration with the AI/ML API currently applies only to LLMs.</td></tr><tr><td><a href="toolhouse.md">Toolhouse</a></td><td>A Backend-as-a-Service (BaaS) to build, run, and manage AI agents. Toolhouse simplifies the process of building agents in a local environment and running them in production.</td></tr></tbody></table>

0 commit comments

Comments
 (0)