/usr/bin/cat for the LLM era
Project description
/usr/bin/cat for LLMs
llcat is an LLM program with very little ambition in life.
That's what makes it useful.
You can handle this!
llcat solves all your problems. Yes, all of them!
You can also:
- Pipe things into it or prompt it on the command line.
- Conversation history as an optional file.
- Tool Calling with the OpenAI spec. There's a file and a program example in this repository.
- Servers:
OPENAI_API_BASEandLLM_BASE_URLare supported along with -s for one off.- Authentication tokens are passed with -k. You can do
$(< somefile)or whatever obfuscation you want, that's on you.
- Models are listed with the
-moption and specified with it as well.
Want it?
- pipx install llcat
- uv tool run llcat
Dependency? Just the requests library. That's it.
Examples
List the models on openrouter
llcat -s https://openrouter.ai/api -m
Go ahead, you can run that, unauthenticated, no problem.
$ llcat -s https://openrouter.ai/api \
-m meta-llama/llama-3.2-3b-instruct:free \
-c /tmp/convo.txt \
-k $(cat openrouter.key) \
"What is the capital of France?"
$ llcat -s https://openrouter.ai/api \
-m meta-llama/llama-3.2-3b-instruct:free \
-c /tmp/convo.txt \
-k $(cat openrouter.key) \
"And what about Canada?"
Let's continue it locally
$ llcat -s http://192.168.1.21:8080 \
-c /tmp/convo.txt \
"And what about Japan?"
Pure sorcery.
The Tool Call To Rule Them All
This uses the sophisticated 21 line example_tool_program.py included in this repository.
It also uses DA`/50's pretty little streaming markdown renderer, streamdown.
Kablam! Alright a16z where's my $50 million?
The enterprise applications are limitless...
Full documentation
usage: llcat [-h] [-c CONVERSATION] [-m [MODEL]] [-k KEY] [-s SERVER]
[-tf TOOL_FILE] [-tp TOOL_PROGRAM]
[prompt ...]
positional arguments:
prompt Your prompt
options:
-h, --help show this help message and exit
-c, --conversation CONVERSATION
Conversation history file
-m, --model [MODEL] Model to use (or list models if no value)
-k, --key KEY API key for authorization
-s, --server SERVER Server URL (e.g., http://::1:8080)
-tf, --tool_file TOOL_FILE
JSON file with tool definitions
-tp, --tool_program TOOL_PROGRAM
Program to execute tool calls
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llcat-0.2.0.tar.gz.
File metadata
- Download URL: llcat-0.2.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd60596e836aaf8b23a4658e6b49d391064988cd65769863d05ad1f74debce17
|
|
| MD5 |
284e2361701d3231f59c735dee1a7376
|
|
| BLAKE2b-256 |
1951356aadde3a7af83bf7e9f2f02393ab4b18dcad3e248b6ff36d0e7556024c
|
File details
Details for the file llcat-0.2.0-py3-none-any.whl.
File metadata
- Download URL: llcat-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e657c1c6c72025357d599f175d746856961722cfefa88b42336b8fb37a387a51
|
|
| MD5 |
a29b4a4329f7c851bc8c153566580d00
|
|
| BLAKE2b-256 |
ed6d4ee90844804eedde632691da6cc8ae99b822f9ec0d4ac4a18a809b5ca32f
|