Cover image
Try Now
2025-04-14

这是使用CleverChatty软件包来表演A I聊天工具的CLI程序

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

CleverChatty CLi

The CLI application based on the CleverChatty package.

This application is the comand line AI chat tool. It allows to comunicate with veriety of LLMs and it has support of external tools calls using the MCP(Model Context Protocol).

Quick run

Install some model with ollama, for example, qwen2.5:3b:

ollama list
NAME                   ID              SIZE      MODIFIED    
.... 
qwen2.5:3b             357c53fb659c    1.9 GB    3 weeks ago 
....

And chat with this model.

go run github.com/gelembjuk/cleverchatty-cli@latest -m ollama:qwen2.5:3b

Or, when you clone the repo, you can run it with:

go build
./cleverchatty-cli -m ollama:qwen2.5:3b

However, this tool is really useful when you use some MCP servers. It is possible by creating a config file and adding the list of MCP servers to it.

Config

The config is not required. Most options from the config can be overriden with the command line arguments.

All supported models providers are:

  • ollama
  • google
  • anthropic
  • openai

For openai, anthropic, google it is needed to have additional arguments - API key and API endpoint in some cases. See the config file example below. It is possible to provide the additional arguments with the config file or with the command line options.

The config should be stored in config.json file.

{
    "log_file_path": "",
    "model": "ollama:qwen2.5:3b",
    "mcpServers": {
        "File_Storage_Server": {
            "url": "http://localhost:8000/sse",
            "headers": [
                "Authorization: Basic Q0F************MQ=="
            ]
        },
        "Some_STDIO_Server": {
            "command": "uv",
            "args": [
                "-m",
                "uvicorn",
                "example:app",
                "--host"
            ]
        }
    },
    "anthropic": {
        "apikey": "sk-**************AA",
        "base_url": "https://api.anthropic.com/v1",
        "default_model": "claude-2"
    },
    "openai": {
        "apikey": "sk-********0A",
        "base_url": "https://api.openai.com/v1",
        "default_model": "gpt-3.5-turbo"
    },
    "google": {
        "apikey": "AI***************z4",
        "default_model": "google-bert"
    }
}

The section mcpServers contains all MCP servers config. It supports both STDIO and SSE servers.

To run the chat using this config stored in teh config.json, you can use the command:

 go run github.com/gelembjuk/cleverchatty-cli@latest --config config.json

Installation

Prerequisites

  • Go 1.20 or later
  • Ollama installed and running

Install

go install github.com/gelembjuk/cleverchatty-cli@latest

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • dmayboroda
  • 带有可配置容器的本地对话抹布

  • modelscope
  • 开始以更轻松的方式开始构建具有LLM授权的多代理应用程序。

    Reviews

    2.8 (13)
    Avatar
    user_0PzI2yYI
    2025-04-23

    Cleverchatty-cli by Gelembjuk is an impressive tool for command line interface enthusiasts. It simplifies interactions with clear and user-friendly commands. I appreciate how it enhances productivity and streamlines tasks. A must-try for any developer looking to boost efficiency!

    Avatar
    user_eIPcoSa5
    2025-04-23

    Cleverchatty-cli by Gelembjuk is an exceptional command-line tool that I highly recommend for anyone who frequently works with chat applications. It provides seamless integration, easy-to-use commands, and a reliable performance that makes managing conversations a breeze. The developer has done an excellent job, and I'm thoroughly impressed with the overall efficiency and design. A must-have for tech enthusiasts and developers alike!

    Avatar
    user_bswEs7Jm
    2025-04-23

    Cleverchatty-cli by Gelembjuk is an impressive command-line tool that simplifies and enhances conversation automation. With its intuitive interface and efficient performance, it seamlessly integrates into my workflow, saving me time and effort. Highly recommended for anyone looking to streamline their chat processes!

    Avatar
    user_emNXefzv
    2025-04-23

    Cleverchatty-cli by Gelembjuk is an incredibly useful tool for anyone working extensively with command line interfaces. The straightforward start URL and intuitive welcome information make it easy to get up and running quickly. The functionality it provides streamlines workflows, saving valuable time. Definitely a must-have for CLI enthusiasts!

    Avatar
    user_HnUGv49k
    2025-04-23

    Cleverchatty-cli by Gelembjuk is a fantastic tool for anyone looking to integrate CleverChat functionality into their command line workflow. The straightforward setup and intuitive commands make it easy to get started. Whether you're an experienced developer or just beginning, you'll appreciate the efficiency and convenience this CLI offers. Highly recommended for enhancing productivity!

    Avatar
    user_PrhD8aNc
    2025-04-23

    As a loyal MCP application user, I am impressed with cleverchatty-cli by Gelembjuk. It's an excellent tool that enhances productivity with its user-friendly command line interface. The intuitive design and efficient performance make it a must-have for IT professionals. Highly recommended!

    Avatar
    user_6Z1NBbxm
    2025-04-23

    CleverChatty-CLI by Gelembjuk is a fantastic tool for anyone who frequently communicates via command line interfaces. It's designed to streamline and enhance your CLI chatting experience. The seamless integration and user-friendly interface make it a must-have for developers and tech enthusiasts. The starting URL and welcoming message guide you effortlessly through the initial setup. Highly recommended for boosting productivity and efficiency in CLI communications!

    Avatar
    user_e7D2gazp
    2025-04-23

    Cleverchatty-cli by Gelembjuk is a fantastic tool for anyone needing seamless command-line interactions. Its user-friendly interface and efficiency in handling tasks make it invaluable. This program significantly enhances productivity by simplifying complex command-line operations. Highly recommended for professionals and enthusiasts alike!

    Avatar
    user_n01FIIIB
    2025-04-23

    As a devoted user of MCP applications, I find cleverchatty-cli by Gelembjuk to be an exceptional tool. Its intuitive design and functionality make it incredibly efficient for my daily tasks. The welcome information is helpful and sets a positive tone for new users. Highly recommend for anyone needing a reliable CLI chat tool!

    Avatar
    user_vblTMzDC
    2025-04-23

    I've been using cleverchatty-cli for a few weeks now, and it has significantly improved my productivity. The interface is intuitive and the features are robust. Kudos to Gelembjuk for creating such an efficient tool for command-line enthusiasts. Highly recommend cleverchatty-cli to anyone looking to streamline their workflow!

    Avatar
    user_EHs8jPmu
    2025-04-23

    I've been using cleverchatty-cli by Gelembjuk, and it has significantly streamlined my communication processes. This command-line interface tool is intuitive and efficient, ideal for developers who need quick and smooth chat management. Highly recommended!

    Avatar
    user_i5iparn9
    2025-04-23

    CleverChatty-CLI by Gelembjuk is an excellent tool for developers who want a command-line interface for chatting capabilities. Its user-friendly setup is perfect for both beginners and advanced users, making it easy to integrate into various workflows. Highly recommended for anyone looking to streamline their chat operations directly from their terminal.

    Avatar
    user_ZWSAqPxJ
    2025-04-23

    As a devoted user of cleverchatty-cli, I can confidently say that this tool by Gelembjuk is an incredible asset for any developer. Its seamless integration and user-friendly interface make managing and deploying conversational applications a breeze. Additionally, the detailed welcome information provided at the start ensures a smooth onboarding experience, even for those new to the tool. Highly recommend!