Skip to content

dotcommander/yai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages