AIChat
$ aichat Community Med Riskaichat (by sigoden) is a fast single-binary Rust LLM CLI supporting OpenAI, Claude, Gemini, Ollama, and Bedrock, alongside -S (--no-stream), -c (--code) clean code/JSON extraction, -f file attachments, RAG, and an OpenAI-compatible --serve endpoint.
brew install aichat Fast single-binary Rust LLM pipe tool (aichat -S -c); pass prompt arguments or stdin to avoid launching its interactive chat REPL.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -S (--no-stream), -c (--code), -f files, and --list-models, though bare aichat opens an interactive REPL and outputs rely on prompt/code extraction rather than native schema enforcement.
- Supports
-S(--no-stream),-c(--code),-rroles, and--list-models
Remote API billing risk, plaintext keys in config.yaml, and -e (--execute) can run shell commands if explicitly invoked.
- Contains shell-execution flag
-eand stores optional keys inconfig.yaml
Single static Rust binary via brew, cargo, and GitHub Releases.
- Zero-dependency Rust binary across macOS, Linux, Windows
Broad 20+ provider support, built-in RAG, and sub-10ms Rust startup.
- Multi-provider LLM client with roles, RAG, and
--serve
Well-maintained community Rust project (sigoden/aichat) under MIT/Apache-2.0.
- Active
sigoden/aichatrepository
Detailed README, wiki, and --help reference.
- Comprehensive README and wiki at github.com/sigoden/aichat
Security, Auth & Guardrails
Reads provider env vars (OPENAI_API_KEY, GEMINI_API_KEY, etc.) or stores keys in config.yaml inside ~/.config/aichat/ (OS config dir).
MIT/Apache-2.0 open-source Rust binary; remote LLM API calls bill to your provider account.
# AIChat Agent Rules - Always pass a prompt argument or piped stdin plus `-S` (`--no-stream`) so `aichat` does not open its interactive REPL. - Never pass `-e` (`--execute`) inside automated agents—it executes LLM-generated shell commands.
Agent-Ready Command Recipes
Safe Read-Only Queries
aichat --list-models
Prints available providers and models configured in aichat.
Controlled Writes & Previews
cat Cargo.toml | aichat -S -c 'Convert this TOML to valid JSON'
Disables streaming (-S) and outputs raw code/JSON only (-c) without prose.
Strengths for Agents
- + Fast single Rust binary supporting 20+ cloud and local LLM backends.
- +
-S -ccleanly extracts raw code/JSON blocks in shell pipelines.
Caveats & Pitfalls
- ! Bare
aichatwithout prompt/stdin enters an interactive chat REPL. - !
-e(--execute) executes generated shell commands—avoid in automated agent calls.