AIChat — All-in-One LLM CLI with 20+ Providers
AIChat is a CLI for 20+ LLM providers with shell assistant, RAG, agents, and function calling. 9.7K+ stars. MIT/Apache 2.0.
Staging seguro para este activo
Este activo primero queda en staging. El prompt copiado pide inspeccionar los archivos staged antes de activar scripts, config MCP o config global.
npx -y tokrepo@latest install 0987e062-3c30-4b38-9b5f-3c36dd3a0f7d --target codexPrimero deja archivos en staging; la activación requiere revisar el README y el plan staged.
What it is
AIChat is a command-line interface that connects to 20+ LLM providers including OpenAI, Anthropic, Google, Mistral, Ollama, and more. It provides interactive chat, shell assistant mode, RAG (retrieval-augmented generation), function calling, and agent capabilities from a single binary.
AIChat targets developers and power users who prefer terminal-based workflows and want one tool for all their LLM interactions instead of separate CLIs for each provider.
How it saves time or tokens
AIChat's shell assistant mode interprets natural language commands and generates shell scripts. Instead of remembering complex command-line flags, you describe what you want and AIChat produces the command. The RAG feature indexes local files and provides context-aware answers without manual copy-pasting.
Switching between providers is a config change, so you can test the same prompt across models without leaving the terminal.
How to use
- Install AIChat:
cargo install aichator download a prebuilt binary - Configure your API keys in
~/.config/aichat/config.yaml - Start interactive chat:
aichat - Use shell mode:
aichat -e 'find all Python files larger than 1MB'
Example
# Interactive chat with Claude
aichat --model claude-sonnet-4-20250514
# Shell assistant: describe what you need
aichat -e 'compress all PNG files in current directory to 80% quality'
# Output: find . -name '*.png' -exec convert {} -quality 80 {} \;
# RAG: index a directory and ask questions
aichat --rag-add ./docs/
aichat --rag 'What is the API rate limit?'
# Function calling with custom tools
aichat --agent 'Check the weather in San Francisco and create a calendar event'
Related on TokRepo
- Coding tools -- Terminal-based developer tools
- Automation tools -- Shell automation with AI
Common pitfalls
- Each provider requires its own API key configured in the YAML file; missing keys produce silent failures
- RAG indexing uses local embeddings by default; large document sets can be slow without GPU acceleration
- Shell assistant mode executes suggested commands only with confirmation; review commands before accepting
Preguntas frecuentes
AIChat supports OpenAI, Anthropic, Google Gemini, Mistral, Ollama, Groq, Perplexity, Azure OpenAI, AWS Bedrock, and more. The full list exceeds 20 providers. Each provider is configured in the YAML config file.
Yes. AIChat supports Ollama and other local model providers. Configure an Ollama endpoint in the config file and use any locally running model for chat, RAG, and shell assistance without internet access.
AIChat indexes files using embeddings and stores them in a local vector database. When you ask a question with --rag, it retrieves relevant document chunks and includes them as context in the LLM prompt. This provides accurate answers grounded in your documents.
Yes. AIChat supports function calling where the LLM can invoke pre-defined tools (HTTP requests, shell commands, file operations) during a conversation. This enables agent-like behavior from the terminal.
Yes. AIChat is dual-licensed under MIT and Apache 2.0. The source code is available on GitHub. You can build from source with Rust's cargo build system.
Referencias (3)
- AIChat GitHub— AIChat is a CLI for 20+ LLM providers with 9.7K+ GitHub stars
- AIChat README— RAG and function calling capabilities in CLI tools
- Ollama— Ollama local model serving
Relacionados en TokRepo
Fuente y agradecimientos
sigoden/aichat — 9,700+ GitHub stars
Discusión
Activos relacionados
magic-cli — LLM Command Suggestion for Terminals
magic-cli is a Rust CLI that suggests commands, semantically searches shell history, and works with local or cloud LLM providers.
Augustus — LLM Vulnerability Scanner (Go CLI)
Augustus is a Go-based LLM vulnerability scanner covering 210+ adversarial attacks and 28 providers; verified 205★ and pushed 2026-05-11.
LLxprt Code — Multi-Provider AI Coding CLI
LLxprt Code is an open-source AI coding CLI that switches across providers (Anthropic, Gemini, Codex, local). Install via brew or npm.
Ruff — Python Linter and Formatter in One Fast CLI
Ruff combines linting, import sorting, and formatting in a Rust CLI. Replace several Python style tools with `ruff check` and `ruff format` in seconds.