# Using Fireworks AI with Kilo Code | Fast Inference

> Run open-source and proprietary models on Fireworks AI's high-performance platform in Kilo Code. Setup guide for VS Code and the CLI.

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

---
Fireworks AI is a high-performance platform for running AI models that offers fast access to a wide range of open-source and proprietary language models. Built for speed and reliability, Fireworks AI provides both serverless and dedicated deployment options with OpenAI-compatible APIs.

**Website:** [https://fireworks.ai/](https://fireworks.ai/)

## Getting an API Key

1. **Sign Up/Sign In:** Go to [Fireworks AI](https://fireworks.ai/) and create an account or sign in.
2. **Navigate to API Keys:** After logging in, go to the [API Keys page](https://app.fireworks.ai/settings/users/api-keys) in the account settings.
3. **Create a Key:** Click "Create API key" and give your key a descriptive name (e.g., "Kilo Code").
4. **Copy the Key:** Copy the API key _immediately_ and store it securely. You will not be able to see it again.

## Configuration in Kilo Code

**VSCode**

Open **Settings** (gear icon) and go to the **Providers** tab to add Fireworks AI and enter your API key.

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.

**CLI**

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

**Environment variable:**

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

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

```jsonc
{
  "provider": {
    "fireworks-ai": {
      "env": ["FIREWORKS_API_KEY"],
    },
  },
}
```

Then set your default model:

```jsonc
{
  "model": "fireworks-ai/accounts/fireworks/models/llama4-scout-instruct-basic",
}
```

## Tips and Notes

- **Performance:** Fireworks AI is optimized for speed and offers excellent performance for both chat and completion tasks.
- **Pricing:** Refer to the [Fireworks AI Pricing](https://docs.fireworks.ai/serverless/pricing) page for current pricing information.
- **Rate Limits:** Fireworks AI has usage-based rate limits. Monitor your usage in the dashboard and consider upgrading your plan if needed.
