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

# Kimi Code

> Run Kimi Code through Vercel AI Gateway in Replicas workspaces.

Replicas supports [Kimi Code](https://github.com/MoonshotAI/kimi-code) through its Agent Client Protocol server.

## Setup

1. Create a key in [Vercel AI Gateway](https://vercel.com/ai-gateway).
2. Paste it under **Kimi Code → Vercel AI Gateway API Key** in [Coding Agents settings](https://tryreplicas.com/dashboard/agents).
3. Set an organization credential, or add a personal key to override it.

See [Credentials](/admin/credentials) for credential scope behavior.

## Using Kimi Code

Choose **Kimi Code** from the workspace agent picker. Replicas runs `kimi acp` and negotiates the capabilities advertised by Kimi Code.

Kimi Code supports persistent sessions, streamed reasoning and tool activity, Plan Mode, model and thinking controls, image input, interruption, and queued-message steering.

Models come from Vercel AI Gateway. `moonshotai/kimi-k2.6` is the default.

## Programmatic Use

Use `kimi` anywhere Replicas accepts a coding-agent provider:

```bash theme={null}
replicas create fix-tests -e backend -a kimi -m "Fix the failing tests"
replicas send REPLICA_ID -a kimi -m "Run the tests again"
```

The [API](/features/api), [MCP](/features/mcp), [Automations](/features/automations), and [Defaults](/admin/defaults) surfaces also accept `kimi`.
