github.com/dotcommander/yai

Pipe anything through an LLM from your terminal. Supports OpenAI, Anthropic, Google, Azure, Ollama, and more.


Keywords
ai, anthropic, cli, golang, llm, mit-license, openai, terminal
License
MIT
Install
go get github.com/dotcommander/yai

Documentation

yai

yai

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

Quick start

  1. Install
go install github.com/dotcommander/yai@latest
  1. Configure
export OPENAI_API_KEY=... # or configure another provider
yai --settings            # creates/edits ~/.config/yai/yai.yml
  1. First successful run
git status | yai "summarize what changed"

Docs: docs/readme.md

Acknowledgments

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.