Command-line real-time conversation app
Project description
y-cli 🚀
A tiny command-line interface chat application that brings AI conversations to your terminal.
Check out y-gui for a web-based version of y-cli.
✨ Features
- 📝 Flexible storage options:
- Local JSONL files for easy access and sync
- Cloudflare D1 for cloud storage
- 💬 Interactive chat interface with tool execution visualization
- 🤖 Support for multiple bot configurations (any base_url/api_key/model combination). Supported api format type:
- 🤔 Support for reasoning model
- Deepseek-r1 reasoning_content output print
- OpenAI o3-mini reasoning_effort configuration
- 🔗 MCP (Model Context Protocol) integration:
- Client support with multiple server configurations (stdio/SSE)
- Persistent daemon
- Custom prompt configurations
- 🧐 Simple "Deep Research" mode by prompt configuration
Demo
Multiple bot configurations
➜ ~ y-cli bot list
Name API Key API Type Base URL Model Print Speed Description OpenRouter Config MCP Servers Reasoning Effort
----------- ----------- ---------- ----------------------------------- ----------------------------------- ------------- ------------- ------------------- ------------- ------------------
default sk-or-v1... N/A https://gateway.ai.cloudflare.co... google/gemini-2.0-flash-001 None N/A Yes No N/A
claude sk-or-v1... N/A https://gateway.ai.cloudflare.co... anthropic/claude-3.7-sonnet:beta None N/A Yes todo N/A
o3-mini sk-or-v1... N/A https://gateway.ai.cloudflare.co... openai/o3-mini None N/A Yes No low
ds-chat sk-or-v1... N/A https://gateway.ai.cloudflare.co... deepseek/deepseek-chat-v3-0324:free None N/A Yes tavily N/A
dify-bot app-2drF... dify https://api.dify.ai/v1 None N/A No No N/A
Multiple MCP servers
➜ ~ y-cli mcp list
Name Type Command/URL Arguments/Token Environment Auto-Confirm
-------------- ------ ------------------- ----------------- -------------- --------------
brave-search sse https://router.m... brave_web_s...
todo stdio uvx mcp-todo
exa-mcp-server stdio npx exa-mcp-server EXA_API_KEY...
⚡ Quick Start
Prerequisites
Required:
- uv
- OpenRouter API key
Setup Instructions:
-
uv
- Follow the official installation guide
- uv will automatically manage Python installation
-
OpenRouter API key
- Visit OpenRouter Settings
- Create a new API key
- Save it for the initialization step
Run without Installation
uvx y-cli
Install with uv tool
uv tool install y-cli
Initialize
y-cli init
Start Chat
y-cli chat
🛠️ Usage
y-cli [OPTIONS] COMMAND [ARGS]...
Commands
chatStart a new chat conversation or continue an existing onelistList chat conversations with optional filteringshareShare a chat conversation by generating a shareable linkimportImport chats from an external file (useful for storage migration)botManage bot configurations:addAdd a new bot configurationlistList all configured botsdeleteDelete a bot configuration
mcpManage MCP server configurations:addAdd a new MCP server configurationlistList all configured MCP serversdeleteDelete an MCP server configuration
daemonManage the MCP daemon:startStart the MCP daemonstopStop the MCP daemonstatusCheck daemon statuslogView daemon logsrestartRestart the daemon
promptManage prompt configurations:addAdd a new prompt configurationlistList all configured promptsdeleteDelete a prompt configuration
Options
--helpShow help message and exit
📚 Documentation
Visit the deepwiki page for comprehensive project documentation and guides.
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
y_cli-0.4.0.tar.gz
(62.0 kB
view details)
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
y_cli-0.4.0-py3-none-any.whl
(87.5 kB
view details)
File details
Details for the file y_cli-0.4.0.tar.gz.
File metadata
- Download URL: y_cli-0.4.0.tar.gz
- Upload date:
- Size: 62.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0254e7db560016491ea01c2fff182096f927e81322378bc68bbaa0a71bb138cb
|
|
| MD5 |
53e419e757c8c76e5a30e6dd6b313ade
|
|
| BLAKE2b-256 |
7394e0e46ef6597569497479bc0da4a620474b193411f2c453150676898a493d
|
File details
Details for the file y_cli-0.4.0-py3-none-any.whl.
File metadata
- Download URL: y_cli-0.4.0-py3-none-any.whl
- Upload date:
- Size: 87.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ffad6f81b46790ff766e51c66937be9d6131dfbddb6049036a299e5f3f5cfcf
|
|
| MD5 |
690f8bd092a17c5870dbae560a21374b
|
|
| BLAKE2b-256 |
74dad14e86f5886684510e4478a8e14f4ac18c9c3c87af013cf1f5cddba4be50
|