# Try Kimi K2 in a browser sandbox

Moonshot's agentic coding model

Source: https://www.agentclash.dev/try/kimi-k2
Markdown export: https://www.agentclash.dev/md/try/kimi-k2
Session limit: 10 minutes

A page visit does not create a sandbox. Starting a disposable session requires an explicit action on the HTML page.

## Suggested commands

- **Start Kimi CLI**: `kimi`
- **Version**: `kimi --version`
- **Make a file to work on**: `echo 'def add(a, b): return a + b' > math.py && cat math.py`

## Authentication

Free trial runs Kimi K2 via the Kimi CLI on AgentClash credentials — no key needed. To use your own, point Kimi CLI at Moonshot or OpenRouter with your key.

1. Free trial: just run `kimi` (preconfigured for Kimi K2)
2. Your own key: edit ~/.kimi/config.toml with your provider + key

## Links

- [Documentation](https://moonshotai.github.io/kimi-cli/)
- [Source repository](https://github.com/MoonshotAI/kimi-cli)