Skip to main content

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
  • 🔗 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

demo

demo

asciicast

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:

  1. uv
  2. OpenRouter API key

Setup Instructions:

  1. uv

  2. OpenRouter API key

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 one
  • list List chat conversations with optional filtering
  • share Share a chat conversation by generating a shareable link
  • import Import chats from an external file (useful for storage migration)
  • bot Manage bot configurations:
    • add Add a new bot configuration
    • list List all configured bots
    • delete Delete a bot configuration
  • mcp Manage MCP server configurations:
    • add Add a new MCP server configuration
    • list List all configured MCP servers
    • delete Delete an MCP server configuration
  • daemon Manage the MCP daemon:
    • start Start the MCP daemon
    • stop Stop the MCP daemon
    • status Check daemon status
    • log View daemon logs
    • restart Restart the daemon
  • prompt Manage prompt configurations:
    • add Add a new prompt configuration
    • list List all configured prompts
    • delete Delete a prompt configuration

Options

  • --help Show help message and exit

📚 Documentation

Visit the deepwiki page for comprehensive project documentation and guides.

Metadata

Release files for y-cli 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for y-cli 0.4.0
File Size Uploaded
y_cli-0.4.0.tar.gz 62.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for y-cli 0.4.0
File Interpreter ABI Platform
y_cli-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 149.5 kB

Release files / y_cli-0.4.0.tar.gz

Download URL y_cli-0.4.0.tar.gz
Size 62.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0254e7db560016491ea01c2fff182096f927e81322378bc68bbaa0a71bb138cb
BLAKE2b-256 checksum
How to use checksums
7394e0e46ef6597569497479bc0da4a620474b193411f2c453150676898a493d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / y_cli-0.4.0-py3-none-any.whl

Download URL y_cli-0.4.0-py3-none-any.whl
Size 87.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ffad6f81b46790ff766e51c66937be9d6131dfbddb6049036a299e5f3f5cfcf
BLAKE2b-256 checksum
How to use checksums
74dad14e86f5886684510e4478a8e14f4ac18c9c3c87af013cf1f5cddba4be50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.13

2 release files

0.3.12

2 release files

0.3.11

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page