K kode (kkode) is a Windows-first terminal coding agent inspired by Claude Code and backed by Moonshot Kimi.
Status: 0.1.0-alpha.1
This is an early alpha. The core loop is usable, but the product is still being actively refined.
- chat in the terminal about the current project
- read files and search the workspace
- create and edit files with approval
- run PowerShell commands with approval
- persist local sessions and resume them later
- show tool activity, thinking state, and approval prompts in a Claude Code-inspired terminal flow
- Windows-first
- PowerShell-first
- Moonshot Kimi first
- local sessions only
- no MCP, memory, or plugin ecosystem yet
- Node.js
20+ - a Moonshot API key in
MOONSHOT_API_KEY
Clone the repo and run the built CLI directly:
git clone https://github.com/ltianyi992/K-Kode.git
cd K-Kode
$env:MOONSHOT_API_KEY="your-key"
node .\dist\cli.jsBecause the compiled dist/ output is committed, end users do not need to build the project just to try the alpha.
To make kkode available as a command from your terminal:
cd K-Kode
.\scripts\install-local.ps1This installer rewrites the global Windows launchers so PowerShell users can type kkode directly without changing execution policy.
Or run the underlying command yourself:
npm.cmd linkAfter linking:
$env:MOONSHOT_API_KEY="your-key"
kkodeCompatibility alias:
kkInstall dependencies:
npm.cmd installType-check:
npm.cmd run checkBuild:
npm.cmd run buildRun from source:
npm.cmd run devRun the built CLI:
npm.cmd run startCLI flags:
--continue--list-sessions--resume <session-id>--resume-latest--prompt <text>--plain-output--version
Interactive slash commands:
/help/session/sessions/read <path>/search <text>/replace <path> <old> => <new>/run <command>/exit
Required:
MOONSHOT_API_KEY
Optional:
KK_PROVIDERKK_MODELKK_API_BASE_URLKK_SYSTEM_PROMPTKK_SESSION_DIRKK_SHELLKK_AUTO_APPROVE
KK_PROVIDER=mocklets you test the local loop without calling Moonshot.KK_AUTO_APPROVE=1skips permission prompts for development-only runs.- The current provider uses Moonshot's OpenAI-compatible
/v1API. - The default model is
kimi-k2.5. - Approval prompts support keyboard navigation in a real TTY.
- Tool output is partially collapsed to keep the terminal readable.
See docs/ARCHITECTURE.md.