Kilo-Org / kilocode
Kilo-Org / kilocode
The open source coding agent for building with AI in VS Code, JetBrains, or the CLI. 这是一个开源编码代理,支持在 VS Code、JetBrains 或 CLI 中使用 AI 进行开发。
Kilo Code is an AI coding agent that meets you everywhere you work: VS Code, JetBrains, and the CLI. It’s open source with open pricing. You pick from 500+ models, switch between them mid-task, and pay the model provider’s rate with zero markup. No API keys required to start. Kilo Code 是一个 AI 编码代理,无论你在哪里工作,它都能为你提供支持:VS Code、JetBrains 和 CLI。它是开源的,且定价透明。你可以从 500 多种模型中进行选择,在任务执行过程中随时切换,并按模型提供商的费率支付,零加价。无需 API 密钥即可开始使用。
Installation
安装
Pick where you want to run Kilo. 选择你想要运行 Kilo 的平台。
VS Code Install the Kilo Code extension directly, or grab it from the VS Code Marketplace. Create an account and you’ll have access to 500+ models including GPT-5.5, Claude Opus 4.7, Claude Sonnet 4.6, and Gemini 3.1 Pro Preview, all at provider pricing. 直接安装 Kilo Code 扩展,或从 VS Code 市场获取。创建一个账户,即可访问包括 GPT-5.5、Claude Opus 4.7、Claude Sonnet 4.6 和 Gemini 3.1 Pro Preview 在内的 500 多种模型,所有模型均按提供商定价收费。
CLI
# npm
npm install -g @kilocode/cli
# curl
curl -fsSL https://kilo.ai/cli/install | bash
# pnpm
pnpm add -g @kilocode/cli
# bun
bun add -g @kilocode/cli
# Homebrew (macOS / Linux)
brew install Kilo-Org/tap/kilo
# Arch Linux (AUR)
paru -S kilo-bin
Then run kilo in any project directory to start.
然后在任何项目目录中运行 kilo 即可开始。
JetBrains Install the Kilo Code plugin from the JetBrains Marketplace, or search “Kilo Code” in Settings → Plugins inside any JetBrains IDE. 从 JetBrains 市场安装 Kilo Code 插件,或在任何 JetBrains IDE 的“设置 → 插件”中搜索“Kilo Code”。
Cloud Agent Run Kilo from the web, no local machine needed, at app.kilo.ai/cloud. 无需本地机器,直接通过网页运行 Kilo:app.kilo.ai/cloud。
Code Reviews Set up automated AI code reviews on your pull requests at app.kilo.ai/code-reviews. 在 app.kilo.ai/code-reviews 为你的 Pull Request 设置自动 AI 代码审查。
KiloClaw Spin up your always-on AI agent at app.kilo.ai/claw. 在 app.kilo.ai/claw 启动你全天候运行的 AI 代理。
Install the CLI from GitHub Releases (binaries)
从 GitHub Releases 安装 CLI(二进制文件)
Download the latest binary from the Releases page. 从 Releases 页面下载最新的二进制文件。
| Platform | Asset |
|---|---|
| Windows (most PCs) | kilo-windows-x64.zip |
| macOS (Apple Silicon) | kilo-darwin-arm64.zip |
| macOS (Intel) | kilo-darwin-x64.zip |
| Linux x64 | kilo-linux-x64.tar.gz |
| Linux ARM | kilo-linux-arm64.tar.gz |
Notes: x64-baseline is a compatibility build for older CPUs without AVX. musl is the statically linked build for Alpine or minimal Docker images without glibc. kilo-vscode-.vsix is the VS Code extension package, not the CLI. Source code archives are for building from source.* 注意:x64-baseline 是针对没有 AVX 指令集的旧 CPU 的兼容版本。musl 是为 Alpine 或没有 glibc 的最小化 Docker 镜像提供的静态链接版本。kilo-vscode-.vsix 是 VS Code 扩展包,而非 CLI。源代码压缩包用于从源码构建。*
Agents
代理
Kilo ships with specialized agents you switch between depending on the task. You can also build your own custom agents. Kilo 附带了多种专用代理,你可以根据任务在它们之间切换。你也可以构建自己的自定义代理。
- Code - The default. Implements and edits code from natural language. Code - 默认代理。根据自然语言实现和编辑代码。
- Plan - Designs architecture and writes implementation plans before any code gets written. Plan - 在编写任何代码之前设计架构并编写实施计划。
- Ask - Answers questions about your codebase without touching any files. Ask - 回答有关代码库的问题,而无需触碰任何文件。
- Debug - Troubleshoots and traces issues. Debug - 故障排除和追踪问题。
- Review - Reviews your changes and surfaces issues across performance, security, style, and test coverage. Review - 审查你的更改,并指出性能、安全性、代码风格和测试覆盖率方面的问题。
Learn more about agents and custom agents. 了解更多关于代理和自定义代理的信息。
What it does
功能特性
- Code generation from natural language, across multiple files. 跨多个文件的自然语言代码生成。
- Inline autocomplete with ghost-text suggestions and tab to accept. 带有幽灵文本建议的内联自动补全,按 Tab 键即可采纳。
- Self-checking so the agent reviews and corrects its own work. 自我检查功能,代理会审查并纠正自己的工作。
- Terminal and browser control to run commands and automate the web. 终端和浏览器控制,用于运行命令和自动化网页操作。
- MCP marketplace to find and wire up MCP servers that extend what the agent can do. MCP 市场,用于查找和连接 MCP 服务器,从而扩展代理的功能。
- 500+ models with mid-task switching, so you can match latency, cost, and reasoning to the job. 500 多种模型,支持任务中途切换,以便你根据任务需求匹配延迟、成本和推理能力。
Autonomous Mode (CI/CD)
自主模式 (CI/CD)
Run kilo run with --auto for fully autonomous operation with no prompts, built for CI/CD pipelines:
使用 --auto 运行 kilo run 可实现完全自主操作,无需提示,专为 CI/CD 流水线构建:
kilo run --auto "run tests and fix any failures"
--auto disables all permission prompts and lets the agent execute any action without confirmation. Only use it in trusted environments.
--auto 会禁用所有权限提示,允许代理在未经确认的情况下执行任何操作。请仅在受信任的环境中使用。
Documentation
文档
For configuration and everything else, head over to the docs. 有关配置及其他所有信息,请前往文档页面。
Contributing
贡献
Contributions are welcome from developers, writers, and everyone in between. Start with the Contributing Guide for environment setup, coding standards, and how to open a pull request. See RELEASING.md for the VS Code extension and CLI release process, and packages/kilo-jetbrains/RELEASING.md for the JetBrains plugin. Please review our Code of Conduct before getting involved.
欢迎开发者、撰稿人以及各界人士参与贡献。请从《贡献指南》开始,了解环境设置、编码标准以及如何提交 Pull Request。有关 VS Code 扩展和 CLI 的发布流程,请参阅 RELEASING.md;有关 JetBrains 插件,请参阅 packages/kilo-jetbrains/RELEASING.md。参与前请阅读我们的行为准则。
License
许可证
MIT. You’re free to use, modify, and distribute this code, including commercially, as long as you keep the attribution and license notices. See License. MIT 协议。只要保留署名和许可证声明,你可以自由使用、修改和分发此代码,包括用于商业用途。详见许可证。
FAQ
常见问题
Where did Kilo CLI come from? Kilo CLI 来自哪里?
Kilo CLI is a fork of OpenCode, enhanced to work within the Kilo agentic engineering platform. Kilo CLI 是 OpenCode 的一个分支,经过增强以适配 Kilo 代理工程平台。
Join the community 加入社区 Discord | X | Reddit