yai is a CLI that sends a prompt (and optional stdin) to an LLM and streams the response. Refactored from charmbracelet/mods.
Use it for:
- Summarizing command output
- Generating structured text (Markdown, JSON, YAML) in pipelines
- Iterating on a prompt while keeping a local conversation history
- Install
go install github.com/dotcommander/yai@latest- Configure
export OPENAI_API_KEY=... # or configure another provider
yai --settings # creates/edits ~/.config/yai/yai.yml- First successful run
git status | yai "summarize what changed"Docs: docs/readme.md
yai is a refactored fork of mods by Charmbracelet. The original project and its excellent Bubble Tea TUI framework made yai possible. Licensed under MIT — see LICENSE.
