Kimi Code for VS Code quick start
Kimi Code for VS Code is an extension integrated into Visual Studio Code. After installation, you can ask questions directly within the editor, review code diffs, and quickly commit changes.
The extension can read the content of files you reference and display modification suggestions through a visual interface, executing them after your confirmation. The entire workflow is under your control while significantly improving development efficiency.
This extension provides a native chat panel in VS Code, supporting:
- Referencing files or folders via the
@symbol. - Executing project scans and context management via
/commands. - Diff views showing file changes with rollback support.
- Integrating MCP servers to call external tools.
Installation
- Prerequisites: You need a Kimi account subscription or a Kimi API key.
- Marketplace: Install via the VS Code Marketplace.
If the extension doesn't appear after installation, please restart VS Code or execute Developer: Reload Window in the command palette (Mac: Cmd+Shift+P, Win/Linux: Ctrl+Shift+P).
Authentication
Kimi Code supports two authentication modes. You can switch modes at any time via the gear icon.
- Kimi Account Mode: Click the login button to authorize via your browser.
- API Key Mode: Click to skip login if you have already configured an API key.
Typical Workflows
Code Reading
Type @ to select files and request an explanation of the logic flow.
Refactoring
Request a refactoring plan for a folder and review diffs before applying.
Debugging
Paste error traces and reference related files for instant diagnosis.
Commands and Shortcuts
Use CodePreview to quickly test commands or reference key shortcuts:
Type Kimi Code in the command palette to access more commands: open in new tab, open in sidebar, or manage sessions.