Metadata-Version: 2.4
Name: llmtee
Version: 0.1.0
Summary: A CLI tool that sends prompts to an LLM and outputs responses
Project-URL: homepage, https://github.com/garrett-he/llmcat
Project-URL: repository, https://github.com/garrett-he/llmcat.git
Project-URL: changelog, https://github.com/garrett-he/llmcat/blob/main/CHANGELOG.md
Author-email: Garrett HE <garrett.he@outlook.com>
License: MIT
License-File: LICENSE
Keywords: llm,openai,prompt
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.12
Requires-Dist: langchain-openai>=0.2.0
Requires-Dist: pydantic-settings>=2.0.0
Requires-Dist: typer>=0.12.0
Description-Content-Type: text/markdown

# llmcat

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

## Installation

```bash
uv sync
```

## Usage

```bash
# 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

```bash
# Run tests
uv run pytest

# Run tests with Hypothesis
uv run pytest -v

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