An open-source, Claude-Code-style terminal agent powered by Kimi AI. Interactive coding assistant with beautiful CLI.
Project description
๐ค Kimi Code
An open-source, Claude-Code-style terminal agent powered by Kimi AI.
Get an interactive coding assistant right in your terminal with beautiful CLI, tool integration, and natural language programming.
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โโโ โโโโโโโโโโ โโโโโโโ โโโโโโโ โโโโโโโ โโโโโโโ โโโโโโโโ โ
โ โโโ โโโโโโโโโโโโ โโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โโโโโโโ โโโโโโโโโโโโโโโโโ โโโ โโโ โโโโโโ โโโโโโโโโ โ
โ โโโโโโโ โโโโโโโโโโโโโโโโโ โโโ โโโ โโโโโโ โโโโโโโโโ โ
โ โโโ โโโโโโโโโ โโโ โโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โโโ โโโโโโโโโ โโโโโโ โโโโโโโ โโโโโโโ โโโโโโโ โโโโโโโโ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
๐ฅ kimi > create a Python web scraper for news articles
๐ฅ kimi > add unit tests to my FastAPI project
๐ฅ kimi > help me debug this React component
โจ Features
- ๐จ Beautiful Interactive CLI - Claude Code-style terminal interface
- ๐ค Powered by Kimi AI - Advanced language model with coding expertise
- ๐ ๏ธ Tool Integration - File operations, shell commands, git integration
- ๐ฌ Natural Language - Just describe what you want to build
- ๐ Instant Setup - One command installation and configuration
- ๐ Context Aware - Understands your project structure and files
- ๐ Streaming Responses - Real-time AI responses as you type
๐ Quick Start
Installation
pip install sd-kimi-code
Setup
-
Get your Kimi API key from Moonshot AI Platform
-
Configure kimi-code:
kimi init --provider kimi # Enter your API key when prompted
-
Start coding!
# Interactive mode (like Claude Code) kimi # Or one-shot commands kimi run "create a Python file that calculates fibonacci numbers"
๐ก Usage Examples
Interactive Mode
$ kimi
๐ฅ kimi > create a Flask web app with user authentication
๐ฅ kimi > add error handling to my existing code
๐ฅ kimi > help me optimize this database query
๐ฅ kimi > exit
Command Mode
# File operations
kimi run "create a README.md for my Python project"
kimi run "add type hints to all functions in src/"
# Development tasks
kimi run "write unit tests for my calculator.py file"
kimi run "create a Dockerfile for this Node.js app"
kimi run "add logging to my FastAPI application"
Built-in Commands
help- Show available commands and examplesclear- Clear the terminal screenexit,quit- Exit interactive modeconfig- Show current configuration
๐ง Configuration
Providers
Currently supports:
- Kimi (Moonshot AI) - Recommended
- OpenAI (GPT models) - Coming soon
Environment Variables
export KIMI_CODE_API_KEY="your-api-key"
export KIMI_CODE_MODEL="moonshot-v1-8k" # or moonshot-v1-32k
Config File
Located at ~/.kimi-code/config.toml:
provider = "kimi"
api_key = "your-api-key"
model = "moonshot-v1-8k"
max_tokens = 8000
temperature = 0.0
๐ ๏ธ Available Tools
Kimi Code can:
- ๐ Create & edit files - Write, modify, and organize your code
- ๐ Read & analyze code - Understand existing projects
- ๐ป Run shell commands - Execute terminal operations
- ๐ณ Browse directories - Navigate project structures
- ๐ Git integration - Commit, branch, and manage repositories
- ๐ Debug & test - Help troubleshoot and write tests
๐ฏ Use Cases
- Rapid Prototyping - Quickly build MVPs and proof of concepts
- Code Generation - Create boilerplate, APIs, and complete applications
- Debugging Help - Get assistance troubleshooting errors
- Learning - Understand new frameworks and best practices
- Refactoring - Improve code quality and structure
- Documentation - Generate README files, comments, and docs
๐ Requirements
- Python 3.10 or higher
- Kimi API key from Moonshot AI
- Terminal with Unicode support (for best experience)
๐ค Contributing
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make your changes and add tests
- Submit a pull request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- Inspired by Claude Code by Anthropic
- Powered by Kimi by Moonshot AI
- Built with Rich for beautiful terminal output
๐ Links
Made with โค๏ธ for developers who love beautiful, powerful tools.
pip install -e . # from repo root
kimi init --provider kimi # configure API key
kimi "add unit tests for src/utils.py"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sd_kimi_code-0.1.0.tar.gz.
File metadata
- Download URL: sd_kimi_code-0.1.0.tar.gz
- Upload date:
- Size: 40.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b226821aebfe8fd07ab248965e17beeabc10bf381ed20f9a761a22d6d85f25cc
|
|
| MD5 |
4eab6f6528f16b61f4d2af41f13cc2bb
|
|
| BLAKE2b-256 |
4193ef73b1d377798fcf9f3845b322ed150bb3ef1bc6e7bd87db768e8538856b
|
File details
Details for the file sd_kimi_code-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sd_kimi_code-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f18337145db44810a849e1fc5354d718dec83de0147758a78deb39abcc5b01a
|
|
| MD5 |
77c3b65cae8bf45b5f76edc137e545ff
|
|
| BLAKE2b-256 |
a42892f65a266266ad23a33430888afd1a10e471e2e2dc00514fa55f879f3f5c
|