# Using Nebius Token Factory with Kilo Code | Nebius Inference

> Configure Nebius Token Factory in Kilo Code — locally with your own API key, shared across your team via BYOK in Kilo Cloud, or org-wide through the Kilo Gateway.

- 网址：https://funcoding.ai/agents/kilo-code/ai-providers/nebius/
- 来源：Kilo Code 官方文档原文（英文），MIT 许可，同步于 2026-10-11
- 官方原文：https://kilo.ai/docs/ai-providers/nebius

---
Nebius Token Factory provides inference for a wide range of models on Nebius infrastructure. You can connect it to Kilo Code three ways:

1. **Locally** — add your own API key in the VS Code extension, JetBrains plugin, or CLI.
2. **In Kilo Cloud** — store the key as a BYOK key so Cloud Agents and your team can use it.
3. **Org-wide via Kilo Gateway** — let organization owners control which Nebius models and regions your team can use.

**Website:** [https://nebius.com/](https://nebius.com/)

## Prerequisites

- A [Nebius Token Factory](https://nebius.com/) API key
- Kilo Code installed: the [VS Code extension](https://funcoding.ai/agents/kilo-code/code-with-ai/platforms/vscode/), [JetBrains plugin](https://funcoding.ai/agents/kilo-code/code-with-ai/platforms/jetbrains/), or [CLI](https://funcoding.ai/agents/kilo-code/code-with-ai/platforms/cli/)

## Getting an API Key

1. **Sign Up/Sign In:** Go to [Nebius Token Factory](https://tokenfactory.nebius.com/) and create an account or sign in.
2. **Create a Key:** Open the API Keys section and create a new API key.
3. **Copy the Key:** Copy the key and store it securely.

## Add Your Key Locally

**VSCode**

1. Open **Settings** (gear icon) and go to the **Providers** tab.
2. Click **Show more providers** and select **Nebius Token Factory**.
3. Paste your API key and save.

![VS Code provider catalog showing Nebius Token Factory](https://funcoding.ai/official-assets/kilo-code/packages/kilo-docs/public/img/nebius/vscode-find-provider.webp)

![VS Code dialog to enter the Nebius Token Factory API key](https://funcoding.ai/official-assets/kilo-code/packages/kilo-docs/public/img/nebius/vscode-api-key.webp)

The extension stores this in your `kilo.json` config file. You can also edit the config file directly — see the **CLI** tab for the file format.

**JetBrains**

1. Open **Settings** and go to **Kilo Code > Providers**.
2. Find **Nebius Token Factory** in the **All providers** list, or use the filter box.
3. Click **Connect** and paste your API key.

**CLI**

Run `kilo` and use the `/connect` command to add your Nebius Token Factory API key interactively.

![Kilo CLI /connect command with Nebius Token Factory selected](https://funcoding.ai/official-assets/kilo-code/packages/kilo-docs/public/img/nebius/cli-connect.webp)

Alternatively, set the API key as an environment variable or configure it in your `kilo.json` config file:

**Environment variable:**

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

**Config file** (`~/.config/kilo/kilo.json` or `./kilo.json`):

```jsonc
{
  "provider": {
    "nebius": {
      "env": ["NEBIUS_API_KEY"],
    },
  },
}
```

Then set your default model:

```jsonc
{
  "model": "nebius/zai-org/GLM-5.3",
}
```

## Select a Nebius Model

Once your key is configured, open the model picker and select any model tagged **Nebius Token Factory**. Model IDs use the `nebius/<vendor>/<model>` format (for example, `nebius/zai-org/GLM-5.3`). See the [Nebius Token Factory docs](https://docs.tokenfactory.nebius.com/) for the full model list.

![VS Code model picker showing models tagged Nebius Token Factory](https://funcoding.ai/official-assets/kilo-code/packages/kilo-docs/public/img/nebius/vscode-model-picker.webp)

## Share Your Key With Your Team (Kilo Cloud BYOK)

Storing your key as a [BYOK (Bring Your Own Key)](https://funcoding.ai/agents/kilo-code/getting-started/byok/) key in Kilo Cloud makes it available to Cloud Agents and, at the organization level, to every member of your team through a shared usage pool. Requests are billed directly by Nebius at your account's rates — Kilo adds no markup.

1. Log into the Kilo platform and select your personal account or the organization you want to add the key to.
2. Navigate to the [Bring Your Own Key (BYOK) page](https://app.kilo.ai/byok), available in the sidebar under **Account**.
3. Click **Add API Key**, select **Nebius Token Factory** as the provider, and paste your key.
4. Save.

![Kilo Cloud BYOK page with the Add API Key dialog and Nebius Token Factory selected as provider](https://funcoding.ai/official-assets/kilo-code/packages/kilo-docs/public/img/nebius/cloud-byok.webp)

Organization-level keys apply to all members of the organization and require owner or billing manager access to manage. For details on how BYOK routing works, see [Bring Your Own Key (BYOK)](https://funcoding.ai/agents/kilo-code/getting-started/byok/).

## Control Nebius Access Org-Wide (Kilo Gateway)

<div class="callout callout-note">

Model access controls are an **Enterprise-only** feature. Organizations on other plans have unrestricted access to all models and providers.

</div>

The [Kilo Gateway](https://funcoding.ai/agents/kilo-code/gateway/) provides access to 500+ models from 60+ providers, including Nebius Token Factory. As an organization owner, you can control which models and provider routes your team can use:

1. Navigate to your organization's **Providers & Models** page.
2. Toggle **Nebius Token Factory** on the **Providers** tab to control access to all of its models at once.
3. Toggle individual models on the **Models** tab. Use the data policy (trains on data, retains prompts) and location filters to review providers.

![Kilo Gateway provider list showing Nebius Token Factory enabled, with region and training-data filters](https://funcoding.ai/official-assets/kilo-code/packages/kilo-docs/public/img/nebius/gateway-allowlist.webp)

Team members can then select the allowed Nebius models through the Kilo Gateway. For details, see [Model Access Controls](https://funcoding.ai/agents/kilo-code/collaborate/enterprise/model-access-controls/).

## Tips and Notes

- **Model Selection:** Nebius Token Factory offers a wide range of models. Experiment to find the best one for your needs.
- **Pricing:** You pay Nebius directly based on your usage. See the [Nebius Token Factory pricing](https://nebius.com/prices) page for current rates.
- **BYOK badge:** When you use the Kilo Gateway provider, models that can use one of your saved personal or organization BYOK keys display a `BYOK` badge in the model picker.
