AIChat
A terminal workspace for multi-provider LLM chat, shell assistance, document context, and local APIs.
- Source repo
- sigoden/aichat
- Stars
- ★ 11k
- Last updated
- 8mo ago
- License
- Apache-2.0
- Primary language
- Rust
- FA score
- 62/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API · Claude API
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A developer asking about code, text, or piped command output from a terminal can use CMD mode with stdin.
- Not a fit if
- Users who need a GUI and avoid the terminal
- Teams wanting a vendor-hosted cloud service instead of self-hosting
- Maintenance
- No commits for 6+ monthslast commit 2026-02-23latest release v0.30.0 (2025-07-06)+3.3 ★/day over 7 days
- Source review
- 62/100 · Some gaps
What does this agent do, and when should you use it?
AIChat is a command-line LLM application with CMD mode, an interactive Chat-REPL, and a Shell Assistant. It presents a unified interface for more than 20 providers, including OpenAI, Claude, Gemini, Ollama, and Groq, plus OpenAI-compatible APIs. Prompts can include stdin, local files and directories, remote URLs, or output from external commands. The product includes roles, sessions, macros, RAG, function calling, AI Tools, MCP, and AI Agents composed of instructions, tools, and RAG documents. With aichat --serve, it runs a lightweight local HTTP server exposing chat, embeddings, rerank, Playground, and Arena endpoints. The README states that AIChat is available under either the MIT License or Apache License 2.0, at the user's option.
In CMD mode, aichat hello sends a prompt to the configured model, while cat data.txt | aichat reads piped standard input. The -f option accepts inputs such as image.png, data.txt, a directory, https://example.com, or external-command output such as git diff, and combines them with the prompt; the REPL counterpart is .file. Shell Assistant turns natural-language tasks into shell commands adjusted to the current OS and shell environment. Sessions retain conversational context, roles combine a prompt with model configuration, macros chain REPL commands, and RAG brings external documents into conversations; AI Tools and MCP connect external tools. aichat --serve listens locally at 127.0.0.1:8000 and exposes /v1/chat/completions, /v1/embeddings, /v1/rerank, /playground, and /arena?num=2.
- A developer asking about code, text, or piped command output from a terminal can use CMD mode with stdin.
- A terminal user who describes an operation in plain language can use Shell Assistant to generate a command suited to the current OS and shell.
- Someone conducting an extended investigation in a terminal can use Chat-REPL for multiline input, history search, and session context.
- An engineer who needs answers grounded in local documents, a directory, a remote URL, or command output can attach that context with -f or .file.
- A team evaluating supported models side by side can use the locally served LLM Arena.
- A workflow builder combining instructions with external tools, function calling, MCP, and RAG documents can use AI Tools or AI Agents.
How do you install or deploy this agent?
Install with cargo install aichat, brew install aichat, pacman -S aichat, scoop install aichat, or pkg install aichat. Alternatively, download a pre-built macOS, Linux, or Windows binary and add aichat to PATH. A first invocation is: aichat hello. The supplied material confirms multi-provider support but does not document the steps for configuring provider credentials or API keys; that provider configuration is required before making a real model request.
How do you use this agent?
Run aichat hello for a CMD request. Pipe input with cat data.txt | aichat, or combine context with aichat -f dir/ -f data.txt explain. Start the local server with aichat --serve. You can then POST a payload containing model, messages, and stream to http://127.0.0.1:8000/v1/chat/completions; use http://127.0.0.1:8000/playground for the browser UI and http://127.0.0.1:8000/arena?num=2 for side-by-side model comparison.
What are this agent's strengths and limitations?
- One CLI brings together CMD mode, Chat-REPL, Shell Assistant, RAG, tool calling, and a local HTTP server.
- It accepts concrete, varied context sources: stdin, local files and directories, remote URLs, and external-command output.
- Support for more than 20 providers and OpenAI-compatible APIs reduces dependence on a single model provider.
- The built-in localhost service includes Chat Completions, Embeddings, and Rerank APIs alongside Playground and Arena interfaces.
- The supplied material does not provide the actual provider credential, API-key, or provider-configuration procedure, leaving first-time setup incomplete.
- The primary interface is a shell CLI; users who do not work in a terminal must rely on the locally served web UI or API.
- Remote URL inputs, cloud-model requests, and external-tool connections can introduce network, data-handling, and access-control considerations.
- Detailed setup, permission scope, and failure behavior for AI Tools, MCP, RAG, and AI Agents are not established in the supplied material.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| AIChat This agent | 62 · Some gaps | CLIFree + model costs | ★ 11k | 8mo ago | Rust | OpenAI API · Claude API |
| Sidekick | 40 · Major gaps | Desktop appFree + model costs | ★ 3.3k | 1mo ago | Swift | OpenAI API |
| PyGPT Desktop Assistant | 56 · Major gaps | Desktop appFree + model costs | ★ 2k | 1mo ago | Python | OpenAI API · Claude API |
| Skales | 55 · Major gaps | Desktop appFreemium | ★ 2.2k | 7d ago | — | ChatGPT · OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
The code shows multiple input types, remote LLMs, external tools, and shell execution, while permission and data-flow controls are only lightly documented. The interactive shell path offers execute/revise/describe/copy/quit choices in a terminal and supports dry-run, supporting user confirmation, but the excerpt does not establish confirmation for every side-effecting operation. Dependencies and licensing are listed, but there is no dependency audit evidence; rollback and maintenance attribution are also thin.
The entry point connects configuration, modes, and tool calls coherently, and errors pass through render_error before a nonzero exit, supporting self-consistency and failure feedback. Many providers and dependencies increase reliance on external availability; the packet does not describe fallback or retry behavior, so dependency availability scores lower.
The README identifies CMD, REPL, shell assistance, RAG, tools/agents, a server, and varied inputs with concrete scenarios. CLI branches show configuration through dry-run, shell/code roles, sessions, and RAG. Cross-platform installation and shell environment adjustment support strong environment fit, though the packet does not show every capability boundary.
The README has clear feature, installation, documentation, and licensing sections, with multi-platform installation methods, guides, and an FAQ; Cargo metadata and README state a version and dual license. Known limitations are barely covered, no changelog appears in the supplied material, and maintenance responsibility is represented only by a developer attribution without a clear process.
The CLI, interactive REPL, sessions, RAG, function calling, and built-in API server provide concrete outputs, while one interface for many model providers offers substantial marginal value. Installation options are clear, but setup costs for configuration, credentials, and multiple providers, as well as actual output quality, are not established by this static packet, so cost-benefit is moderate.
Some README claims are corroborated by entry-point branches for modes, agent calls, dry-run, and serving; Cargo metadata and the README support version and license claims. The CI file shows configured test, Clippy, and formatting jobs, but does not establish that they passed for this revision. Some advertised capabilities lack corresponding source samples, so full marks are not justified.
- The shell assistant can execute generated commands; inspect them before execution and use dry-run where appropriate. The visible code shows an interactive confirmation path but does not establish confirmation for every execution path.
- Inputs can come from local files, directories, remote URLs, and external commands, and the product calls remote models or tools; the packet does not fully describe sensitive-data handling or egress boundaries.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
New Features - add support for OSC52 clipboard codes ([#1280](https://github.com/sigoden/aichat/pull/1280)) - abandon support for lingyiwanwu client ([#1327](https://github.com/sigoden/aichat/pull/1327)) - support autodetecting dark/light theme ([#1335](https://github.com/sigoden/aichat/pull/1335)) - enhence .regenerate ([#1340](https://github.com/sigoden/aichat/pull/1340)) - ctrl+j for newline ([#1342](https://github.com/sigoden/aichat/pull/1342)) Bug Fixes - use_tools in agent mode ([#1252](https://github.com/sigoden/aichat/pull/1252)) …View on GitHub ↗ -
Release notes excerpt
New Features - add cmd_prelude and remove prelude ([#1197](https://github.com/sigoden/aichat/pull/1197)) - support claude-3-7-sonnet ([#1201](https://github.com/sigoden/aichat/pull/1201)) - bumping Azure OpenAI API Version to 2024-12-01-preview ([#1205](https://github.com/sigoden/aichat/pull/1205)) - --code (tty) strips <think> tag ([#1227](https://github.com/sigoden/aichat/pull/1227)) - enhence glob for --file and rag docs ([#1230](https://github.com/sigoden/aichat/pull/1230)) …View on GitHub ↗ -
Release notes excerpt
New Features - display reasoning tokens ([#1139](https://github.com/sigoden/aichat/pull/1139)) - webui support think tag ([#1140](https://github.com/sigoden/aichat/pull/1140)) - strip reasoning contents ([#1141](https://github.com/sigoden/aichat/pull/1141)) - support model alias ([#1150](https://github.com/sigoden/aichat/pull/1150)) - enhance .file for loading resources from diverse sources ([#1155](https://github.com/sigoden/aichat/pull/1155)) - supports selecting LLM during configuration initialization ([#1158](https://github.com/sigoden/aichat/pull/1158)) …View on GitHub ↗
FAQ
Is AIChat limited to OpenAI models?
What local content can it read?
Can it serve an API locally?
How can I compare models?
Is AIChat free?
Is AIChat open source?
Is AIChat safe to use?
Is AIChat still maintained?
Who makes AIChat?
Thanks — we use this to improve the page.