SuperAPIAI Directory

agent-cli

github.com · AI developer platforms

Lightweight, Fast, Simple, CLI MCP Client for MCP Servers. Supporting TUI, stdio and NapCat. Any LLM API compatible with the OpenAI API, such as Ollama and DeepSeek, can be configured for use.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

Agent CLI is a command-line AI client for the MCP (Model Context Protocol) protocol built on Rust, focusing on being lightweight, fast, and simple, and providing streaming chat interaction and tool-calling capabilities. It has several built-in internal tools that are automatically enabled when the program starts, with no additional configuration required, and it supports displaying the reasoning process.

Main capabilities include: support for MCP tool calls; implemented in Rust, emphasizing high performance and reliability; can act as a server to connect with NapCat and respond to @ conversations in QQ; supports interaction with external applications through the WebSocket-based Remote module, supports multiple input types such as text, images (base64), files, and structured instructions, can configure whether to use MCP tools, supports request-level configuration overrides, and returns token usage statistics.

Usage: after cloning the repository, compile it. NapCat is not compiled by default and requires adding the parameter --features napcat, that is, after cd agent-cli, run cargo build --release; the binary is located at target/release/agent-cli. Rename config_temp.json to config.json and fill in the API key, and ensure that config.json and log4rs.yaml exist locally; if NapCat is needed, add --napcat at runtime, and rename napcat_temp.toml to napcat.toml. It only processes messages sent by target_qq in the configuration. Command-line parameters include --promp (user input; if not provided, enter interactive UI mode), --stream (default true), --use_tool (default true), --wait (default false; when true, process standard input in a loop and do not save context for each conversation), --remote (start the remote WebSocket server and specify the listening address, such as 127.0.0.1:8080). The command to start the remote server is agent-cli --remote 127.0.0.1:8080; for the complete communication protocol, see docs/remote_protocol.md.

Applicable scenarios: command-line AI conversation, MCP tool calls, QQ bot integration, and serving as an AI service provider for a web application backend. In terms of limitations, the materials do not provide specific pricing, platform support scope, or performance data; the NapCat feature requires additional compilation parameters and configuration files; before use, you need to prepare an OpenAI API-compatible LLM service and API key yourself.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools