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

> ## Agent Instructions
> Phaseo Gateway base URL: https://api.phaseo.app/v1. Send `Authorization: Bearer $PHASEO_API_KEY` with every request.
> Model IDs look like `provider/model`, for example `openai/gpt-6-astra`. Do not guess IDs: list them with `GET /v1/models` or check https://phaseo.app/models. `phaseo/free` routes to an available free model and needs no wallet balance.
> For new text integrations prefer `POST /v1/responses`. `POST /v1/chat/completions` (OpenAI format) and `POST /v1/messages` (Anthropic format) suit existing code.
> The full API contract is https://phaseo.app/docs/openapi/v1/openapi.yaml. Official SDKs: `@phaseo/sdk` (TypeScript) and `phaseo` (Python), plus Go, C#, PHP, Ruby and Rust.
> Search these docs over MCP at https://phaseo.app/docs/mcp, and install Phaseo skills with `npx skills add https://phaseo.app/docs`. If a page is wrong or out of date, report it with the MCP `submit_feedback` tool.
> Manage Phaseo accounts with the `phaseo` CLI (`npm install -g @phaseo/cli`, then `phaseo login` or `phaseo login --device-code`), the `/v1` Management API or the MCP server at `https://mcp.phaseo.app/mcp?access=manage`. Do not send users to the dashboard for account tasks. A person is still needed for sign-up, approving a sign-in, paying the first top-up on the checkout link that `phaseo credits add` returns when no card is saved, confirming each saved-card top-up from the emailed link, and account security (password, MFA, passkeys). Create API keys with `phaseo keys create --name <name> --json`; never guess one. Credit top-ups need `phaseo login --scopes billing:write` first. Task map: https://phaseo.app/docs/v1/developers/manage-from-an-agent.md.

# Kilo Code

> Connect Kilo Code to Phaseo with a custom OpenAI-compatible provider.

Choose the Phaseo CLI runner for an isolated session, or create a dedicated key with the CLI and configure an existing Kilo Code installation manually.

## Run Kilo Code through the Phaseo CLI

For the Kilo Code CLI, let Phaseo provision the provider configuration for one session:

```bash theme={null}
phaseo login
phaseo kilo --model openai/gpt-5.6-terra --
```

Use `--catalog all` to expose every active Phaseo text/chat model, or `--dry-run --json` to preview the install and launch plan. Use `phaseo run kilo ...` for the explicit command form. The runner uses a temporary `KILO_CONFIG` file, so it does not overwrite an existing Kilo Code or VS Code setup.

## Create the credential with the Phaseo CLI

```bash theme={null}
phaseo login
phaseo setup kilo-code --model anthropic/claude-sonnet-4.6
```

## Configure Kilo Code manually

1. Open Kilo Code in VS Code.
2. Select the settings icon, open **Providers**, then select **Add custom provider**.
3. Enter these values:

| Kilo Code field | Value |
| - | - |
| Provider ID | `phaseo` |
| Display name | `Phaseo` |
| Provider API | **OpenAI Compatible** |
| Base URL | `https://api.phaseo.app/v1` |
| API key | Output of `phaseo integrations credential kilo-code` |

4. If no model is discovered, add ID `anthropic/claude-sonnet-4.6` manually.
5. Select **Submit**, then choose the Phaseo model.

Kilo displays the selection as `phaseo/anthropic/claude-sonnet-4.6`: `phaseo` is the local provider ID, while the rest is sent to Phaseo as the model ID.

## Verify

Ask Kilo Code to reply with `PHASEO_KILO_OK`, then confirm the request appears in Phaseo activity.

## Remove

Delete the custom provider in Kilo Code, then run:

```bash theme={null}
phaseo integrations remove kilo-code
```

The CLI cannot clear private extension storage, but removal revokes the key.

## Troubleshooting

### No models are discovered

Add the model manually. Discovery through `/models` is not required.

### Authentication fails

Replace the saved value with `phaseo integrations credential kilo-code` and keep the Base URL exactly as shown.

### The model name looks different

Select `phaseo/<Phaseo model ID>` in Kilo, but do not add `phaseo/` inside the model ID field.

## Related

* [Kilo Code custom models](https://kilo.ai/docs/code-with-ai/agents/custom-models)
* [Coding Agents](https://phaseo.app/docs/v1/guides/integrations/coding-assistants.md)
* [Models](https://phaseo.app/docs/v1/api-reference/endpoint/models.md)


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