🍺 BREW Explorer

← all formulae

cai

brew install cai v0.13.0 ISC

CLI tool for prompting LLMs

14
30-day installs · #7780
34
90-day · #8339
251
365-day · #6774
202
★ GitHub stars · updated 2mo ago

Build dependencies

GitHub topics

ai anthropic chatgpt claude cli gpt gpt-4o gpt-5 groq llama llama3 llamafile llm machine-learning mistral ml ollama openai prompt rust

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "pkgconf",
    "rust"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "CLI tool for prompting LLMs",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:05+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "cai",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-06-18T07:29:21Z",
  "github_readme_excerpt": "# `cai` - User friendly CLI tool for AI tasks\n\n![Demo usage of cai in a terminal](demos/2025-08-15t2052.png)\n\n\n## Features\n\n- High level commands for great usability\n  - `cai value capital of Australia`\n  - `cai image photo of a banana` (OpenAI image generation)\n  - `cai google-image sunset over mountains` (Google Gemini image generation)\n  - `cai ocr page.png`\n  - `pbpaste | cai rewrite \u0027more professional\u0027`\n  - Check [usage section](./#usage) for all commands\n- Build with Rust \ud83e\udd80 for supreme performance and speed! \ud83c\udfce\ufe0f\n- Support for models by\n  - [Anthropic]\n  - [OpenAI]\n  - [Google]\n  - [Groq]\n  - [Cerebras]\n  - [Deepseek]\n  - [xAI]\n  - Local LLMs via [Ollama] and [Llamafile]\n- Prompt several models at once. \ud83e\udd3c\n    ![Demo of cai\u0027s all command](screenshots/2024-04-13t1627_all.png)\n- Syntax highlighting for better readability of code snippets. \ud83c\udf08\n\n[Anthropic]: https://docs.anthropic.com/en/docs/about-claude/models/all-models\n[Cerebras]: https://inference-docs.cerebras.ai/introduction\n[Deepseek]: https://api-docs.deepseek.com/quick_start/pricing\n[Google]: https://ai.google.dev/gemini-api/docs/models\n[Groq]: https://console.groq.com/docs/models\n[Llamafile]: https://github.com/Mozilla-Ocho/llamafile\n[Ollama]: https://ollama.com\n[OpenAI]: https://platform.openai.com/docs/models\n[xAI]: https://x.ai/api#pricing\n\n\n## Installation\n\n```sh\n$ cargo install cai\n```\n\nor install via [Homebrew](https://brew.sh/):\n\n```sh\n$ brew install cai\n```\n\n\n## Usage\n\nBefore using Cai, an API key must be set up.\nSimply execute `cai` in your terminal and follow the instructions.\n\nCai supports the following APIs:\n\n- **Groq** - [Create new API key](https://console.groq.com/keys).\n- **OpenAI** - [Create new API key](https://platform.openai.com/api-keys).\n- **Anthropic** -\n    [Create new API key](https://console.anthropic.com/settings/keys).\n- **Llamafile** - Local [Llamafile] server running at http://localhost:8080.\n- **Ollama** - Local [Ollama] server running at http://localhost:11434.\n\nAfterwards, yo",
  "github_repo": "ad-si/cai",
  "github_stars": 202,
  "github_topics": [
    "ai",
    "anthropic",
    "chatgpt",
    "claude",
    "cli",
    "gpt",
    "gpt-4o",
    "gpt-5",
    "groq",
    "llama",
    "llama3",
    "llamafile",
    "llm",
    "machine-learning",
    "mistral",
    "ml",
    "ollama",
    "openai",
    "prompt",
    "rust"
  ],
  "homepage": "https://github.com/ad-si/cai",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 14,
  "installs_365d": 251,
  "installs_90d": 34,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "ISC",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "cai",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 7780,
  "rank_365d": 6774,
  "rank_90d": 8339,
  "raw_hash": "44c3620f2464c66b",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/c/cai.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "0.13.0",
  "versioned_formulae": [],
  "why_use_this": null
}