Mango Pi Cli
Project description
Mangopi CLI
A lightweight AI coding assistant running directly in your terminal.
Mangopi CLI is a zero-dependency, local-first AI coding assistant inspired by Claude Code.
It supports:
- AI-powered coding workflows
- File editing and shell execution
- Tool calling
- Context-aware conversation management
- Automatic context compacting
All with instant startup and no heavy framework dependencies.
Features
- Zero dependency (Python standard library only)
- Instant startup
- Claude Code–style terminal UX
- Built-in file and shell tools
- Automatic context compacting
- Local session persistence
- Fully hackable and easy to extend
Installation
From PyPI
pip install mangopi-cli
Start Mangopi CLI:
mangopi-cli
From Source
git clone git@github.com:w4n9H/mangopi-cli.git
cd mangopi-cli
python mangopi_cli.py
Configuration
Set your API configuration:
export MANGO_KEY="your_api_key"
export MANGO_API_URL="https://api.deepseek.com/chat/completions"
export MANGO_MODEL="deepseek-v4-flash"
Optional:
export MANGO_MAX_CONTEXT=1000000
export MANGO_LANG=zh
Usage
Start the CLI:
mangopi-cli
or:
python mangopi_cli.py
Built-in commands:
| Command | Description |
|---|---|
/q |
Quit |
/n |
New session |
/c |
Compact session |
/h |
Help |
Built-in Tools
readwriteeditsearchgrepbash
Mangopi CLI can autonomously inspect files, modify code, search projects, and execute shell commands.
Philosophy
Mangopi CLI focuses on:
- fast startup
- zero dependency
- local-first workflows
- terminal-native AI interaction
- lightweight runtime design
No Electron, Docker, Redis, or heavyweight AI frameworks.
Just a fast and hackable AI coding assistant for the terminal.
License
Apache License 2.0
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 mangopi_cli-0.1.4.tar.gz.
File metadata
- Download URL: mangopi_cli-0.1.4.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
468b75bea10fad31d4057d2cb542197bcb0bef2b2b7d57737006ae3af9abed1e
|
|
| MD5 |
ebaba7dcc7097978d0aef5cf85c22b2c
|
|
| BLAKE2b-256 |
2731e6f43a62df5c81c0ea77c8e05abf028b94dbdfb36b342041ad7a3681aae2
|
File details
Details for the file mangopi_cli-0.1.4-py3-none-any.whl.
File metadata
- Download URL: mangopi_cli-0.1.4-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c766158b3ffa3df500628df0c58b95224150c7ac57c30334d82176fed2df8536
|
|
| MD5 |
3caaa5cb39b38f36fffb00d159fd4285
|
|
| BLAKE2b-256 |
27d0d54a93470704bf9c2888b16716ac8002f5f15757c0810a0143054369513d
|