Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/kilo-docs/lib/nav/ai-providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const AiProvidersNav: NavSection[] = [
links: [
{ href: "/ai-providers/openrouter", children: "OpenRouter" },
{ href: "/ai-providers/requesty", children: "Requesty" },
{ href: "/ai-providers/daoxe", children: "DaoXE" },
{ href: "/ai-providers/unbound", children: "Unbound" },
{ href: "/ai-providers/zenmux", children: "ZenMux" },
{
Expand Down
90 changes: 90 additions & 0 deletions packages/kilo-docs/pages/ai-providers/daoxe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
---
title: "Using DaoXE with Kilo Code"
description: "Connect Kilo Code to DaoXE's multi-model API gateway with an API key and an account-available model ID."
sidebar_label: DaoXE
---

# Using DaoXE With Kilo Code

[DaoXE](https://daoxe.com) is an AI gateway with native Claude protocol, verifiable routing, and one-key access to Claude, GPT, Gemini, and more. Kilo Code uses the `daoxe` provider ID and reads your API key from `DAOXE_API_KEY`.

{% callout type="warning" %}
DaoXE is not available in mainland China. Requests from mainland China may be blocked or rejected.
{% /callout %}

## Before you begin

1. Create an account at [daoxe.com](https://daoxe.com).
2. Create an API key in your DaoXE dashboard.
3. Choose an exact model ID available to your account. Model availability and pricing can change, so check the live catalog instead of copying an old model list.

## Configure Kilo Code

{% tabs %}
{% tab label="VSCode" %}

1. Open **Settings** in the Kilo Code extension.
2. Go to the **Providers** tab and add **DaoXE**. If it is not visible, click **Show more providers**.
3. Enter your DaoXE API key.
4. Select a model that is available to your DaoXE account.

The provider credentials are stored in Kilo's `auth.json` store.

{% /tab %}
{% tab label="CLI" %}

**Recommended:** connect interactively so the API key is stored in Kilo's `auth.json` store (same credential store as VS Code).

1. In the TUI, run `/connect` and choose **DaoXE**, then paste your API key.
2. Or from the shell:

```bash
kilo auth login --provider daoxe
```

Then pick a model from the model picker, or set a default model using the `provider-id/model-id` format:

```jsonc
{
"model": "daoxe/your-account-model-id",
}
```

Replace `your-account-model-id` with an exact model ID available to your account.

**Manual configuration (optional):** set the key in the environment and declare the provider in `~/.config/kilo/kilo.json` or `./kilo.json` without writing the secret into the project file:

```bash
export DAOXE_API_KEY="your-api-key"
```

```jsonc
{
"provider": {
"daoxe": {
"env": ["DAOXE_API_KEY"],
},
},
"model": "daoxe/your-account-model-id",
}
```

{% /tab %}
{% /tabs %}

## API compatibility

Kilo Code connects to DaoXE through the OpenAI-compatible API at `https://daoxe.com/v1`. DaoXE also exposes OpenAI Responses, Anthropic Messages, and image-generation-compatible endpoints, but the provider configuration on this page uses Kilo Code's OpenAI-compatible chat path.

For standalone cURL, Node.js, Python, Postman, and Claude Code examples, see the [DaoXE-AI examples repository](https://github.com/seven7763/DaoXE-AI).

## Troubleshooting

- **Invalid API key:** Create a new key in your DaoXE dashboard, then reconnect with `/connect` / `kilo auth login --provider daoxe`, or update `DAOXE_API_KEY` if you use manual configuration.
- **Model not found:** Copy an exact model ID available to your account. Do not rely on a static model list.
- **Provider not visible:** Refresh Kilo Code's provider catalog, then check **Show more providers**.
- **Connection rejected:** Confirm that you are using the service from an available region.

{% callout type="note" %}
This documentation was contributed by a DaoXE affiliate.
{% /callout %}
1 change: 1 addition & 0 deletions packages/kilo-docs/pages/ai-providers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Route requests through unified APIs with additional features:

- **[OpenRouter](/docs/ai-providers/openrouter)** - Access multiple providers through one API
- **[Requesty](/docs/ai-providers/requesty)** - Smart routing and fallbacks
- **[DaoXE](/docs/ai-providers/daoxe)** - Connect multiple model families through one API
- **[Cloudflare AI Gateway](/docs/ai-providers/cloudflare)** - Route providers through your Cloudflare account

## Choosing a Provider
Expand Down
Loading