https://github.com/dotcommander/yai
Pipe anything through an LLM from your terminal. Supports OpenAI, Anthropic, Google, Azure, Ollama, and more.
https://github.com/dotcommander/yai
ai anthropic cli golang llm mit-license openai terminal
Last synced: 3 months ago
JSON representation
Pipe anything through an LLM from your terminal. Supports OpenAI, Anthropic, Google, Azure, Ollama, and more.
- Host: GitHub
- URL: https://github.com/dotcommander/yai
- Owner: dotcommander
- License: mit
- Created: 2026-02-16T00:02:18.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-02-16T01:43:34.000Z (4 months ago)
- Last Synced: 2026-02-16T07:56:35.239Z (4 months ago)
- Topics: ai, anthropic, cli, golang, llm, mit-license, openai, terminal
- Language: Go
- Size: 129 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# yai
yai is a CLI that sends a prompt (and optional stdin) to an LLM and streams the response. Refactored from [charmbracelet/mods](https://github.com/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
```bash
go install github.com/dotcommander/yai@latest
```
2) Configure
```bash
export OPENAI_API_KEY=... # or configure another provider
yai --settings # creates/edits ~/.config/yai/yai.yml
```
3) First successful run
```bash
git status | yai "summarize what changed"
```
Docs: [`docs/readme.md`](docs/readme.md)
## Acknowledgments
yai is a refactored fork of [mods](https://github.com/charmbracelet/mods) by [Charmbracelet](https://charm.sh). The original project and its excellent Bubble Tea TUI framework made yai possible. Licensed under MIT — see [LICENSE](LICENSE).