y-cli
A tiny command-line interface chat application that brings AI conversations to your terminal.
Added on 3/28/2025
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 KV and R2 for cloud storage and backup
- ๐ฌ 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
chat
Start a new chat conversation or continue an existing onelist
List chat conversations with optional filteringshare
Share a chat conversation by generating a shareable linkbot
Manage bot configurations:add
Add a new bot configurationlist
List all configured botsdelete
Delete a bot configuration
mcp
Manage MCP server configurations:add
Add a new MCP server configurationlist
List all configured MCP serversdelete
Delete an MCP server configuration
daemon
Manage the MCP daemon:start
Start the MCP daemonstop
Stop the MCP daemonstatus
Check daemon statuslog
View daemon logsrestart
Restart the daemon
prompt
Manage prompt configurations:add
Add a new prompt configurationlist
List all configured promptsdelete
Delete a prompt configuration
Options
--help
Show help message and exit
Similar Resources
Developer Tools