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

# Kimi Code

> Coding agent powered by Moonshot AI's Kimi models

## Overview

Kimi Code is a coding agent powered by Moonshot AI's Kimi models. It offers strong performance on coding tasks and is a great option for teams looking to diversify beyond Anthropic and OpenAI providers.

## Authentication

Kimi Code requires a Kimi API key:

1. Get an API key from [Moonshot AI Platform](https://platform.moonshot.cn/)
2. In [Blocks Dashboard](https://blocks.team), go to **Dashboard** → **Agents**
3. Select **Kimi Code** and choose "API Key"
4. Paste your Kimi API key (`KIMI_API_KEY`)

## Setting as Default

To use Kimi Code automatically for all requests:

1. Go to **Dashboard** → **Agents**
2. Select "Set as default agent" from Kimi Code's dropdown menu

## Using Kimi Code

Once configured, Kimi Code is used automatically if it's your default agent:

```
@blocks can you review this code?
```

Or use the `/kimi` slash command to use it specifically:

```
@blocks /kimi implement this feature
```

```
@blocks /kimi review this PR for potential bugs
```

## Best For

* Coding tasks requiring a strong alternative to Anthropic and OpenAI models
* Teams wanting to diversify AI providers
* Cost optimization with a competitive pricing model

## Cost

Kimi Code uses your Kimi API key and is billed directly by Moonshot AI. Check pricing at the [Moonshot AI Platform](https://platform.moonshot.cn/).

## Next Steps

<CardGroup cols={2}>
  <Card title="Claude Code" icon="brain" href="/using-blocks/agents/claude-code">
    Learn about Claude Code
  </Card>

  <Card title="OpenCode" icon="globe" href="/using-blocks/agents/opencode">
    Explore OpenCode capabilities
  </Card>
</CardGroup>
