A beautiful, feature-rich CLI chat application for interacting with LLMs via Ollama with streaming responses, session persistence, and markdown rendering.
Project description
Mochi Coco ๐ก
.-===-.
|[:::]|
`-----ยด
A beautiful, feature-rich CLI chat application for interacting with LLMs via Ollama with streaming responses, session persistence, and markdown rendering.
Installation
pip install mochi-coco
Quick Start
- Make sure you have Ollama running locally
- Pull a model:
ollama pull gpt-oss:20b - Start chatting:
mochi-coco
Features
- ๐ Streaming responses - Real-time chat with immediate feedback
- ๐พ Session persistence - Your conversations are automatically saved and resumable
- ๐จ Rich markdown rendering - Beautiful formatting with syntax highlighting and toggle rendering mid session
- ๐ Model switching - Change models mid-conversation
- โ๏ธ Message editing - Edit previous messages and branch conversations
- ๐ง Thinking blocks - Toggle display of model reasoning (when supported)
- ๐ Session management - Switch between different chat sessions
- ๐๏ธ Interactive menus - Easy-to-use command interface
- โก Background summarization - Automatic conversation summaries
Commands
While chatting, you can use these commands:
/menu- Open the main menu with all options/chats- Switch between existing sessions or create new ones/models- Change the current model/markdown- Toggle markdown rendering on/off/thinking- Toggle thinking blocks display
/edit- Edit a previous message and continue from there/exitor/quit- Exit the application
Usage
Basic Chat
mochi-coco
Custom Ollama Host
mochi-coco --host http://localhost:11434
Example Session
$ mochi-coco
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ ๐ก Welcome to Mochi-Coco! โ
โ โ
โ โ
โ .-===-. โ
โ |[:::]| โ
โ `-----ยด โ
โ โ
โ ๐ค AI Chat with Style โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โญโ ๐ฌ Previous Sessions โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โญโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโฎ โ
โ โ # โ Session ID โ Model โ Preview โ Messages โ โ
โ โโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโค โ
โ โ 1 โ bc82bce316 โ gpt-oss:20b โ Who was the first Avenger? โ 2 โ โ
โ โ 2 โ a9206fc7a1 โ gpt-oss:20b โ Hi โ 2 โ โ
โ โฐโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโฏ โ
โ โ
โ ๐ก Options: โ
โ โข ๐ Select session (1-2) โ
โ โข ๐ Type 'new' for new chat โ
โ โข ๐๏ธ Type '/delete <number>' to delete session โ
โ โข ๐ Type 'q' to quit โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Enter your choice: new
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ๐ค Select your AI model โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโ ๐ค Available Models โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โญโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฎ โ
โ โ # โ Model Name โ Size (MB) โ Family โ Max. Context โ โ
โ โโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโค โ
โ โ 1 โ qwen3:14b โ 8846.5 โ qwen3 โ 40960 โ โ
โ โ 2 โ qwen3:latest โ 4983.3 โ qwen3 โ 40960 โ โ
โ โ 3 โ qwen3:30b โ 17697.0 โ qwen3moe โ 262144 โ โ
โ โ 4 โ gpt-oss:20b โ 13141.8 โ gptoss โ 131072 โ โ
โ โ 5 โ llama3.2:latest โ 1925.8 โ llama โ 131072 โ โ
โ โ 6 โ qwen3-coder:latest โ 17697.0 โ qwen3moe โ 262144 โ โ
โ โ 7 โ mistral-small3.2:latest โ 14474.3 โ mistral3 โ 131072 โ โ
โ โฐโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโฏ โ
โ โ
โ ๐ก Options: โ
โ โข ๐ข Select model (1-7) โ
โ โข ๐ Type 'q' to quit โ
โ โ
โ โ ๏ธ ATTENTION: The maximum context length is the supported length of the model but not the โ
โ actual length during chat sessions. โ
โ ๐ก Open Ollama application to set default context length! โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Enter your choice: 4
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Markdown Rendering โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ๐ Enable markdown formatting for responses? โ
โ This will format code blocks, headers, tables, etc. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Enable markdown? (Y/n): y
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Thinking Block Display โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ๐ค Show model's thinking process in responses? โ
โ This will display thinking blocks as formatted quotes. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Show thinking blocks? (y/N): y
โญโ ๐ฌ Chat Session โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Session ID: 68ddb0098d โ
โ Model: gpt-oss:20b โ
โ Markdown: Enabled โ
โ Thinking Blocks: Enabled โ
โ โ
โ ๐ก Available Commands: โ
โ โข /menu - Open the main menu โ
โ โข /edit - Edit a previous message โ
โ โข /exit or /quit - Exit the application โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโโโโโโโโโฎ
โ ๐ง You โ
โฐโโโโโโโโโฏ
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
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 mochi_coco-0.1.0.tar.gz.
File metadata
- Download URL: mochi_coco-0.1.0.tar.gz
- Upload date:
- Size: 80.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a7938707dd560404dee7a28be08d03c2ed9f9dbfa95539d87c34ea3854e8990
|
|
| MD5 |
fb2b1ce01f8083120ecfc27d6cca15ec
|
|
| BLAKE2b-256 |
45fe00b0d4c517ae09667b84d7fb08849ec66c0dca04c597f46d89a5de432db9
|
File details
Details for the file mochi_coco-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mochi_coco-0.1.0-py3-none-any.whl
- Upload date:
- Size: 40.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33c15599cf16f9522cd982b71b445ca897af42b58eb5fc5c1305204d73dab010
|
|
| MD5 |
9528ae81ac26f77ed1b8eb6c5b9a0ef8
|
|
| BLAKE2b-256 |
0b5b6191df9e2d2e953822daafd826e007414b0d50d90b70d4046708b81f64fe
|