@lyqluis/kimi-chat-cli
v0.1.2
Published
Personal terminal-based chat client for Kimi AI
Readme
kimi-chat-cli
A personal terminal-based chat client for Kimi AI, built with React and Ink.
Overview
A personal project I built for my own use — because I don't want to frequently open a browser or switch tabs for trivial questions, as my slow computer handles that poorly. It provides a terminal UI with streaming responses, chat history management, and some customization options.
Features
- Real-time Streaming: Messages stream in real-time with a typing effect
- Chat History: View, search(not yet), and manage your previous conversations
- Toggle Modes:
- Web Search:
Ctrl+W - Long Thinking:
Ctrl+L
- Web Search:
- Commands:
/history,/new,/clear,/exit,/help...(some not yet implemented) - Keyboard Navigation:
Enter- Send message / Load selected chat from historyEsc- Cancel / Return to chatSpace- Expand chat preview in historyM- Load more history itemsD- Delete chat from history↑/↓orj/k- Navigate in history listCtrl+C- Exit application
Installation
# Build from source
pnpm build
# Install globally (optional)
npm install -g .Configuration
Before using, you need to configure your web Kimi AI token.
Get your token from browser:
- Open kimi.ai in your browser
- Open DevTools (F12) → Application/Storage → Cookies
- Copy the value of
kimi-author similar auth token
Create config file:
mkdir -p ~/.kimi-chat-cli
echo "YOUR_TOKEN_HERE" > ~/.kimi-chat-cli/chatclircUsage
# Run the CLI
kimi-chatDevelopment
# Watch mode with auto-restart
pnpm dev
# Watch with nodemon
pnpm dev-nodemon
# Run tests
pnpm testTech Stack
- React - UI library
- Ink - React for terminals
- TypeScript - Type safety
- Vitest - Testing framework
License
MIT
