Skip to main content

An open-source, Claude-Code-style terminal agent powered by Kimi AI. Interactive coding assistant with beautiful CLI.

Project description

๐Ÿค– Kimi Code

PyPI version Python 3.10+ License: MIT

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

  1. Get your Kimi API key from Moonshot AI Platform

  2. Configure kimi-code:

    kimi init --provider kimi
    # Enter your API key when prompted
    
  3. 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 examples
  • clear - Clear the terminal screen
  • exit, quit - Exit interactive mode
  • config - 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.

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make your changes and add tests
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sd_kimi_code-0.1.0.tar.gz (40.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sd_kimi_code-0.1.0-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

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

Hashes for sd_kimi_code-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b226821aebfe8fd07ab248965e17beeabc10bf381ed20f9a761a22d6d85f25cc
MD5 4eab6f6528f16b61f4d2af41f13cc2bb
BLAKE2b-256 4193ef73b1d377798fcf9f3845b322ed150bb3ef1bc6e7bd87db768e8538856b

See more details on using hashes here.

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

Hashes for sd_kimi_code-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f18337145db44810a849e1fc5354d718dec83de0147758a78deb39abcc5b01a
MD5 77c3b65cae8bf45b5f76edc137e545ff
BLAKE2b-256 a42892f65a266266ad23a33430888afd1a10e471e2e2dc00514fa55f879f3f5c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page