Skip to main content

A CLI tool that sends prompts to an LLM and outputs responses

Project description

llmcat

A CLI tool that sends prompts to an LLM and outputs responses.

Installation

uv sync

Usage

# Set your API key
export LLMCAT_API_KEY=your-api-key

# Send a prompt
llmcat "What is the capital of France?"

# Pipe input
echo "Summarize this text" | llmcat

# Read from file
llmcat -f context.txt "Analyze this"

# Write to file
llmcat "Hello" -o output.txt

# Specify model
llmcat --model gpt-4o "Hello"

Configuration

Environment variables:

  • LLMCAT_API_KEY - Required. Your OpenAI API key.
  • LLMCAT_MODEL - Optional. Default model (defaults to gpt-4o-mini).
  • LLMCAT_API_BASE_URL - Optional. Custom API endpoint.

Development

# Run tests
uv run pytest

# Run tests with Hypothesis
uv run pytest -v

# Lint and format
uv run ruff check .
uv run ruff format .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llmtee-0.1.0.tar.gz (80.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llmtee-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file llmtee-0.1.0.tar.gz.

File metadata

  • Download URL: llmtee-0.1.0.tar.gz
  • Upload date:
  • Size: 80.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for llmtee-0.1.0.tar.gz
Algorithm Hash digest
SHA256 919aac2a00729620dd646b0cfd47d6c1b5c4a740036abfe21d5f39b231cd3dcc
MD5 dbdcde5019b9847a484b022ba6af19f3
BLAKE2b-256 5a5ee3be142f3ca28a92f8c32f1382480b403a9e00bf1bcb2d4028103442044a

See more details on using hashes here.

File details

Details for the file llmtee-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: llmtee-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for llmtee-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45dcb1d2206eeb5e0f888fbb8e7b9b9901f83ac8c2ac2d8a53070d4e38ecb705
MD5 55f6c409405bcd2577fefb370f4647bd
BLAKE2b-256 bede944d3390ff420da4d2cbab30dddd2131730b1953fbe87d2e7375ef82701a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page