Skip to main content
Kilo Code reads Eden AI as its edenai provider. This page sets it up in the extension and the CLI, then covers models missing from the picker, EU routing, MCP tools and cost.

Overview

Kilo Code is an open-source coding agent for VS Code and the terminal. Eden AI is a provider in both the extension and the CLI: Kilo takes the edenai provider from the models.dev catalogue, an OpenAI-compatible provider at https://api.edenai.run/v3, and reads your key from EDENAI_API_KEY.
  • Shared credential store: the extension and the CLI read the same auth.json
  • EU endpoint: route through the EU endpoint when you have data-residency requirements

Prerequisites

  • Kilo Code installed, either the VS Code extension or the CLI. See kilocode.ai
  • An Eden AI API key from app.edenai.run → API Keys

Setup in VS Code

  1. Open Settings in the Kilo Code extension.
  2. Go to the Providers tab and add Eden AI. If it is not listed, click Show more providers.
  3. Paste your Eden AI API key.
  4. Select a model.
Credentials are stored in Kilo’s auth.json, the same store the CLI uses.

Setup in the CLI

Connecting interactively is the recommended path, so the key lands in auth.json rather than in a project file. In the TUI run /connect, choose Eden AI, then paste your key. From the shell:
Then pick a model from the picker, or set a default:
To keep the secret in the environment instead, declare the provider in ~/.config/kilo/kilo.json or ./kilo.json:

Model naming

Use a model name or ~ alias from GET /v3/models, such as ~claude-sonnet-latest; a provider/model id pins one provider. A reference in Kilo puts the edenai/ provider prefix in front, edenai/<model>. Declare a provider/model id first, as shown in Using a model that is not in the picker.
Kilo Code takes its model list from models.dev, not from Eden AI’s models endpoint. Copy the identifier exactly as the endpoint returns it, which is public and needs no key:

Switching models

Pick another model in the picker, or change the model key in kilo.json to another edenai/<model> reference.

Using a model that is not in the picker

The picker lists the Eden AI models in models.dev, which is smaller than the full Eden AI catalogue. Any other model can be declared yourself. devstral-latest, a coding model that supports function calling, is one that models.dev does not list today:
Set cost when you declare a model, and limit too if you want the context gauge to be right. Kilo defaults both to zero for a model it does not already know, which would leave spend reporting at zero. Costs are per million tokens, so multiply pricing.input_cost_per_token and pricing.output_cost_per_token from the models endpoint by one million (the values above are the catalogue’s rates for this alias today). A limit block needs both context, from context_length, and output, the model’s maximum output tokens, which the endpoint does not list.

EU data residency

Point the provider at the EU endpoint with a custom base URL:
~gemini-flash-latest and ~claude-sonnet-latest run there, and a pinned id such as anthropic/claude-sonnet-latest is rejected; see Model names on the EU endpoint. Some models are also published with an @eu suffix that pins the vendor’s region; see Pinning a region. Declare those as shown in the previous section.

Expert Models as Tools (MCP)

Eden AI also hosts an MCP server that exposes the expert model catalog (OCR, web search, speech, translation and more) as tools. Kilo reads MCP servers from the mcp key of its config. Add the server to the global ~/.config/kilo/kilo.json, where credentials belong:
Run kilo mcp list to check the connection. See the MCP server page for the tool catalog and the conventions its tools share.

Cost tracking

The spend Kilo Code displays for Eden AI is derived from token counts and the per-model rates in its catalogue, so treat it as an estimate. Eden AI returns the actual billed cost of each request in a top-level cost field of the response (see Prompt caching), and that figure is the authoritative one.

Troubleshooting

Invalid API key

Create a new key in your Eden AI account (a 401 with Invalid API key means the key is wrong or revoked, Invalid token that the credential is not an Eden AI key), then reconnect with /connect or kilo auth login --provider edenai. If you use manual configuration, update EDENAI_API_KEY in the environment Kilo runs from.

Model not found

Copy the identifier exactly as the models endpoint returns it, including the ~ of an alias. Do not rely on a static list.

Eden AI is not visible in the provider list

Refresh Kilo Code’s provider catalogue, then check Show more providers.

A key or model you just added has no effect

A key or a model you declared in kilo.json needs a restart of Kilo. A model newly added to models.dev shows up in the picker within about an hour, since Kilo refreshes that catalogue hourly.

Next Steps