Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 11 Jul 05:25
v0.1.0
eb8add2

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/clai

or

go install github.com/maxrodrigo/clai/cmd/clai@latest

Quick start

export OPENAI_API_KEY="sk-..."
echo "Explain monads in one paragraph" | clai -e "answer"
git diff --cached | clai commit
cat report.txt | clai summarize

Highlights

  • 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