macOS
brew install cailocal Homebrew formula metadata
安装
brew install cailocal Homebrew formula metadata
概览
CLI tool for prompting LLMs
历史
cai is a Rust CLI for running LLM, image, OCR, speech, coding-context, and automation prompts from the terminal.
The public repository was created on 2024-03-28 and the changelog marks 0.1.0 as the initial release on the same date. Early releases added provider subcommands, proper clap-based argument handling, local Ollama support, stdin prompt input, Anthropic support, multi-model prompting through cai all, and markdown syntax highlighting.
Through 2024 and 2025 cai expanded from a simple prompt CLI into a multi-provider terminal assistant, adding JSON output, raw output, OCR, file renaming, changelog generation, programming-language context commands, DeepSeek, Cerebras, xAI, Google Gemini, image generation, transcription, rewrite, and shell-adjacent helper commands.
cai belongs to the wave of post-ChatGPT command-line LLM clients. Its official README positions it as a user-friendly CLI with providers including Anthropic, OpenAI, Google, Groq, Cerebras, DeepSeek, xAI, Ollama, and Llamafile, and it is distributed through Cargo and Homebrew.
Typical usage is short natural-language prompts, stdin pipelines, provider-specific model shortcuts, simultaneous prompting across providers, OCR, image generation, shell command generation, database querying, and coding-context prompts. The README documents API key setup on first run and support for local LLM servers.
cai is a good snapshot of how AI tooling entered package managers: a fast-moving Rust CLI that maps commercial and local model providers into Unix-style commands, stdin/stdout workflows, and package-manager installation.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
$XDG_CONFIG_HOME/cai/config.yaml~/.config/cai/config.yamlCredential-bearing paths to review before unattended agent runs.
$XDG_CONFIG_HOME/cai/secrets.yaml~/.config/cai/secrets.yaml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cai | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:cai |
|---|---|
| 版本 | 0.13.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/cai |
| 主页 | https://github.com/ad-si/cai |
| 仓库 | https://github.com/ad-si/cai |
| 上游文档 | https://github.com/ad-si/cai#readme |
| 许可证 | ISC |
| 源码归档 | https://github.com/ad-si/cai/archive/refs/tags/v0.13.0.tar.gz |
| 构建依赖 | pkgconf, rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cai |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.