New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

y-cli

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

y-cli

Command-line real-time conversation app

  • 0.3.10
  • PyPI
  • Socket score

Maintainers
1

y-cli 🚀

A tiny command-line interface chat application that brings AI conversations to your terminal.

✨ Features

  • 📝 All chat data stored in single JSONL files for easy access and sync
  • 💬 Interactive chat interface
  • 🤖 Support for multiple bot configurations (any base_url/api_key/model combination). Supported api format type:
    • OpenAI chat completion streaming format
    • Dify chat-messages streaming format
  • 🤔 Support for reasoning model
  • 🔗 MCP (Model Context Protocol) client support with multiple server configurations

Demo

Interactive chat

interactive-chat

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          200            N/A            Yes                  No             N/A
claude       sk-or-v1...  N/A         https://gateway.ai.cloudflare.co...  anthropic/claude-3.7-sonnet:beta     60             N/A            Yes                  todo           N/A
o3-mini      sk-or-v1...  N/A         https://gateway.ai.cloudflare.co...  openai/o3-mini                       60             N/A            Yes                  No             low
ds-chat      sk-or-v1...  N/A         https://gateway.ai.cloudflare.co...  deepseek/deepseek-chat               100            N/A            Yes                  No             N/A
ds-r1        sk-or-v1...  N/A         https://gateway.ai.cloudflare.co...  deepseek/deepseek-r1                 100            N/A            Yes                  tavily         N/A
groq-r1-70b  sk-or-v1...  N/A         https://gateway.ai.cloudflare.co...  deepseek/deepseek-r1-distill-lla...  1000           N/A            Yes                  No             N/A
dify-bot     app-2drF...  dify        https://api.dify.ai/v1                                                    60             N/A            No                   No             N/A

Reasoning model & MCP client

demo

asciicast

Multiple MCP servers

➜  ~ y-cli mcp list
Name    Command    Arguments                                Environment
------  ---------  ---------------------------------------  ---------------------------------------
todo    uvx        mcp-todo
tavily  npx        -y tavily-mcp                            TAVILY_API_KEY=tvly-api-key...
pplx    node       /Users/mac/src/researcher-mcp/build/...  PERPLEXITY_API_KEY=pplx-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
  • 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

Options

  • --help Show help message and exit

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc