v0.1.0
v0.1.0 — Initial release
clai is a UNIX text filter that pipes content through language models. stdin → LLM → stdout.
Install
brew install maxrodrigo/tap/claior
go install github.com/maxrodrigo/clai/cmd/clai@latestQuick start
export OPENAI_API_KEY="sk-..."
echo "Explain monads in one paragraph" | clai -e "answer"
git diff --cached | clai commit
cat report.txt | clai summarizeHighlights
- Pipeline native — composes with grep, jq, awk, and everything else
- Multi-provider — OpenAI, Anthropic, Bedrock, Ollama, any OpenAI-compatible endpoint
- Built-in prompts — summarize, code-review, commit, translate, explain, and more
- Reasoning strategies — Chain-of-Thought, Tree-of-Thought, Chain-of-Draft, Self-Refine
- Structured output — JSON Schema validation with a dedicated exit code