AI coding assistant with an interactive terminal UI, built with the Vercel AI SDK and TypeScript.
- Node.js 20+
pnpm(required package manager)- At least one provider API key (
OPENAI_API_KEY,ANTHROPIC_API_KEY, etc.)
pnpm install
pnpm build
pnpm link --globalCreate .env in the project root:
OPENAI_API_KEY=your-key
MODEL_PROVIDER=openai
MODEL_NAME=gpt-4oAfter linking globally:
kiwi --path /absolute/or/relative/project/pathOr without linking:
pnpm start -- --path .Inside chat, supported slash commands are:
/coder/plan/model/sessions/new-session/delete-session
pnpm devpnpm buildpnpm typecheckpnpm lintpnpm testpnpm test --run
The codebase is organized in layers:
src/presentation/terminal- terminal UI and navigationsrc/presentation/shared- UI contracts and shared presentation hookssrc/presentation/web- base web routing/components scaffoldsrc/presentation/electron- base electron main/renderer scaffoldsrc/application- use cases and application servicessrc/domain- entities, value objects, repository contracts, eventssrc/infrastructure- filesystem repositories, event bus, and compositionsrc/plugins- plugin interfaces, registry, and built-in UI pluginssrc/tools- filesystem/terminal/git tools used by agentssrc/agents-coderandplanagent factories
Detailed design notes: docs/ARCHITECTURE.md
MIT - see LICENSE.