AI Skill Hub 推荐使用:简单LLM CLI 是一款优质的AI工具。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
简单LLM CLI 是一款基于 Python 开发的开源工具,专注于 llm、cli、python 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
简单LLM CLI 是一款基于 Python 开发的开源工具,专注于 llm、cli、python 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install simple-llm-cli
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install simple-llm-cli
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/day50-dev/simple-llm-cli
cd simple-llm-cli
pip install -e .
# 验证安装
python -c "import simple_llm_cli; print('安装成功')"
# 命令行使用
simple-llm-cli --help
# 基本用法
simple-llm-cli input_file -o output_file
# Python 代码中调用
import simple_llm_cli
# 示例
result = simple_llm_cli.process("input")
print(result)
# simple-llm-cli 配置文件示例(config.yml) app: name: "simple-llm-cli" debug: false log_level: "INFO" # 运行时指定配置文件 simple-llm-cli --config config.yml # 或通过环境变量配置 export SIMPLE_LLM_CLI_API_KEY="your-key" export SIMPLE_LLM_CLI_OUTPUT_DIR="./output"
<p align="center"> <img width="238" alt="llcat" src="https://github.com/user-attachments/assets/c161862d-8a8e-4753-a6eb-8a3b67f760b0" /> <br/> <strong>/usr/bin/cat for LLMs</strong> <br/><img src=https://img.shields.io/github/license/day50-dev/llcat> <a href=https://pypi.org/project/llcat><img src=https://badge.fury.io/py/llcat.svg/></a> </p> <hr>
You want to pipe something into or out of a model sitting on a server.
Existing tools require you to: install plugins pick from a pre-baked provider boutique pick a list of models which don't update swap around credentials like you're Indiana Jones with a bag of sand
It's wildly inconvenient.
This fixes all that noise.
llcat, part of the DAY50 suite of open-source tools for AI workflows, allows for targeted precision, focused interaction with models and servers in order to do things like show a server's models see each model capabilities do tool-calls manage context windows llcat works through regular JSON files through a principle of "least magic" - prioritizing predictability, compatibility, coherency, transparency and functionality.
It exists as a general-purpose CLI-based OpenAI-compatible /chat/completions caller.
It is like cURL or cat for LLMs: a stateless, transparent, explicit, low-level, composable tool for scripting and glue.
Conversations, keys, servers and other configurations are explicitly specified each execution as command line arguments. This makes building things with llcat simple and direct.
There is no caching or state saved between runs. Everything gets surfaced and errors are JSON parsable. There's a --curlify option as well. It's also quite fast and permits custom timeouts.
List the models on OpenRouter:
uvx llcat -u https://openrouter.ai/api -m
What about just the qwen ones?
uvx llcat -u https://openrouter.ai/api -m '*qwen3*'
What about their capabilities in JSON?
uvx llcat -u https://openrouter.ai/api -m '*qwen3*' --info | jq .
Sure. What about a different protocol, say ollama?
uvx llcat -u http://localhost:11434 -m '*qwen3*' --info | jq .
You might think "That's funny ... it looks the same."
Correct. Welcome to llcat.
All the abstraction without those pesky leaks.
----
llcat can:
llcat's basic CLI parameters are also compatible with Simon Willison's llm.
Here's some examples of how to use llcat as a building block for many common use-cases:
Because conversations, models and servers are decoupled, you can easily mix and match them at any time.
Here's one conversation, hopping across models and servers.
Start a chat with Deepseek:
$ llcat -u https://openrouter.ai/api \
-m deepseek/deepseek-r1-0528:free \
-c /tmp/convo.txt \
-sk $(cat openrouter.key) \
"What is the capital of France?"
Continue it with Qwen using MAS format:
$ llcat -u "https://openrouter.ai/api#m=qwen/qwen3-4b:free"
-c /tmp/convo.txt \
-sk $(cat openrouter.key) \
"And what about Canada?"
And finish on the local network:
$ llcat -u http://192.168.1.21:8080 \
-c /tmp/convo.txt \
"And what about Japan?"
Since the conversation goes to the filesystem as easily parsable JSON you can use things like inotify or fuse and push it off to a vector search backend or modify the context window between calls.
llcat's explicit syntax means lots of things are within reach.
For instance simple wrappers can be made custom to your workflow.
Here's a way to store state with environment variables to make invocation more convenient:
llf() { llc "$@" 2> >(jq . >&2) | examples/spinner sd }
llc() { llcat -m "$LLC_MODEL" -u "$LLC_SERVER" -sk "$LLC_KEY" "$@" }
llc-model() { LLC_MODEL=$(llcat -m -u "$LLC_SERVER" -sk "$LLC_KEY" | fzf) }
llc-server() { LLC_SERVER=$1 }
llc-key() { LLC_KEY=$1 }
And now you can do things like this:
$ llc-server http://192.168.1.21:8080
$ llc "write a diss track where the knapsack problem hates on the towers of hanoi"
And what's that llf at the top? That uses jq to pretty print the errors and streamdown to pretty print the output along with a simple program to display a spinner while you wait.
There's no configuration files to parse or implicit states to manage.
A conversation interface is also quick:
```shell #!/usr/bin/env bash
Using the schema feature you can pass json in to enforce a schema. Try something like
$ llcat -u http://localhost:11434 -sc examples/schema.json "give me a person"
Running the same thing on multiple models and assessing the outcome is straight forward. Here we're using ollama
pre="llcat -u http://localhost:11434"
for model in $($pre -m); do
$pre -m $model "translate 国際化がサポートされています。to english" > ${model}.outcome
done
You can use patterns like that also for testing tool calling completion. Here's a bigger example: a humor eval to see if models know a funny joke when they see one
If an error happens contacting the server, you get the request, response, and a non-zero exit.
Try this to see what that looks like
uvx llcat -u fakecomputer
The examples directory contains this music playing tool listing the contents of this album:
$ llcat -u http://127.1:8080 -tf tool_file.json -tp tool_program.py "what mp3s do i have in my ~/mp3 directory"
{"level": "debug", "class": "toolcall", "message": "request", "obj": {"id": "iwCGjcRic8GAFB2jUvBUOeF9NNrldfxz", "type": "function", "function": {"name": "list_mp3s", "arguments": {"path":"~/mp3"}}}}
{"level": "debug", "class": "toolcall", "message": "result", "obj": ["Elektrobopacek - Towards the final Battle.mp3", "Elektrobopacek - Escape the Labyrinth.mp3", "Elektrobopacek - Journey to the misty Lands.mp3", "Elektrobopacek - Mistral Forte.mp3", "Elektrobopacek - Leaving Spaceport X-19.mp3", "Elektrobopacek - Dracula Rising.mp3"]}
Here are the MP3 files in your `~/mp3` directory:
1. **Elektrobopacek - Towards the final Battle.mp3**
2. **Elektrobopacek - Escape the Labyrinth.mp3**
3. **Elektrobopacek - Journey to the misty Lands.mp3**
4. **Elektrobopacek - Mistral Forte.mp3**
5. **Elektrobopacek - Leaving Spaceport X-19.mp3**
6. **Elektrobopacek - Dracula Rising.mp3**
Would you like to play any of these? Just share the filename, and I can play it for you! 🎵
In this example you can see how nothing is hidden so if the model makes a mistake it is immediately identifiable.
The debug JSON objects are sent to stderr so routing it separately is trivial.
Now it's your turn.
usage: llcat [-h] [-su SERVER_URL] [-sk SERVER_KEY] [-m [MODEL]]
[-s SYSTEM] [-c CONVERSATION] [-sc SCHEMA]
[-cr CONVERSATIONRO] [-mf MCP_FILE] [-tf TOOL_FILE]
[-pr PROTO] [-ps] [-tp TOOL_PROGRAM] [-to TIMEOUT] [-a ATTACH]
[-bq BE_QUIET] [-nw] [--curlify] [--version] [--info [INFO]]
[user_prompt ...]
llcat is /usr/bin/cat for LLMs.
🐱 Me-wow!
https://github.com/day50-dev/llcat
positional arguments:
user_prompt Your prompt
options:
-h, --help show this help message and exit
-su, -u, --server_url SERVER_URL
Server URL (e.g., http://::1:8080). Also supports MSA
format
-sk, -k, --server_key SERVER_KEY
Server API key for authorization
-m, --model [MODEL] Model to use (or list models if no value)
-s, --system SYSTEM System prompt
-c, --conversation CONVERSATION
Conversation history file (r/w)
-sc, --schema SCHEMA Set a schema to force structured output
-cr, --conversationro CONVERSATIONRO
The readonly conversation input (ro)
-mf, --mcp_file MCP_FILE
MCP file to use
-tf, --tool_file TOOL_FILE
JSON file with tool definitions
-pr, --proto PROTO Protocol to use (ollama, openai, auto)
-ps, --ps Currently running model (if supported)
-tp, --tool_program TOOL_PROGRAM
Program to execute tool calls
-to, --timeout TIMEOUT
Timeout in seconds for the read
-a, --attach ATTACH Attach file(s)
-bq, --be_quiet BE_QUIET
Make it shutup about things
-nw, --no_wrap Do not wrap inputs in <xml-like-syntax>
--curlify Write curl equivalents of calls to stdout
--version show program's version number and exit
--info [INFO] Get the info for a model
We're excited to see what you build.
Brought to you by DA`/50: Make the future obvious.
conv=${CONV:-$(mktemp)} echo -e " Using: $conv\n"
简单易用,适合快速测试
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,简单LLM CLI 是一款质量良好的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | simple-llm-cli |
| 原始描述 | 开源AI工具:Easily pipe anything into an LLM。⭐35 · Python |
| Topics | llmclipython |
| GitHub | https://github.com/day50-dev/simple-llm-cli |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-26 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。