← Back to Leaderboard
Asigoden

sigoden/aichat

Rust CLI unifying multi-provider LLM chat, retrieval and tool workflows

View on GitHub ↗
Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
B · 55/100
Maintenance Activity
● Updated 9mo ago
Latest Release
v0.30.0
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance6/35
Fork Adoption18/25
Release Cadence11/20
License Clarity20/20
CLISelf-HostedAPI
Total Stars
★ 10,622
24h Growth
+2
7d Growth
+25
Forks
763

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

sigoden/aichat Star History (2023-03-01 - 2026-12-01) ALL-TIME STAR HISTORY (2023-03 – 2026-12) +10.6k in 1371d · avg +8/day 11.2k 5.6k 0 2023-03-01: ★ 12023-05-27: ★ 1,1692023-08-19: ★ 1,3522023-11-11: ★ 1,5042024-02-03: ★ 2,0292024-04-27: ★ 2,6452024-07-20: ★ 3,2502024-10-12: ★ 3,8532025-01-04: ★ 4,6962025-03-29: ★ 5,9652025-06-21: ★ 6,8122025-09-13: ★ 7,8192025-12-06: ★ 8,5172026-02-28: ★ 9,2032026-05-23: ★ 9,8572026-08-15: ★ 10,2442026-12-01: ★ 10,622 ★ 10.6k 2023-03 2025-01 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

AIChat is a Rust 2021 application with three entry points: one-shot CMD invocations, an interactive REPL and a built-in HTTP server. The manifest includes clap for CLI parsing, reedline for terminal editing, tokio for async execution and serde_json/serde_yaml for structured data. config.example.yaml, config.agent.example.yaml and models.yaml are concrete starting points for reviewing configuration and model setup.

The CLI assembles a prompt from user input and optional resources, then sends it to a configured model backend through a common provider interface. Roles bind prompts to model settings, sessions retain conversational context, and macros compose REPL commands. Agents combine instructions, function calls and retrieval documents; function calling and MCP connect the application to external tools. The built-in HTTP server is another way to use configured models, not an inference engine.

Key Capabilities & Differentiators

AIChat connects to more than 20 providers, including OpenAI, Claude, Gemini, Groq, Ollama, and OpenAI-compatible APIs. The terminal accepts stdin, files, directories, URLs and external command output as context. The REPL adds completion, multiline editing and history search. The Shell Assistant generates commands for the current OS and shell; RAG adds document context to conversations.

Running aichat --serve starts the local HTTP surface at 127.0.0.1:8000 by default. It exposes /v1/chat/completions, /v1/embeddings and /v1/rerank. The proxy example uses "stream": true for chat completions. The browser playground provides interactive access to configured models, and the arena supports side-by-side comparison. Test the operations you need against the chosen backend rather than assuming that every provider supports all three endpoints.

Trade-offs & Limitations

Compared with a provider-specific CLI, AIChat reduces the work of switching models and reusing terminal workflows across providers. Compared with direct SDK integration, its local HTTP surface gives clients a common endpoint, but model IDs, streaming behavior and support for embeddings or reranking still need testing for each backend. If an application depends on one provider's native options or error semantics, its SDK may be the simpler path.

Self-hosting the CLI or proxy does not make inference local: selecting a hosted backend can send prompts and supplied context outside the host. Treat fetched URLs and tool output as untrusted, review generated shell commands before running them, and scope external tool credentials to the task. The application is dual-licensed under MIT or Apache-2.0; that choice does not cover provider terms, model licenses or rights to indexed documents.

Hardware & Deployment Guide

Install with Cargo, Homebrew, Pacman, Scoop or Termux, or put a prebuilt macOS, Linux or Windows binary on PATH. The binary does not bundle a model: configure access to a hosted provider or provision a backend such as Ollama separately. For local inference, size RAM and VRAM for the model and inference workload; for hosted APIs, plan around network latency, provider limits and cost. To run offline, keep the model, required retrieval components and tools local and avoid workflows that fetch remote resources.

Start with the default loopback listener for local clients. Before sharing it, verify access controls, provider credential handling and behavior under concurrent load. Upgrades also warrant configuration checks: v0.29.0 replaced prelude with cmd_prelude, and v0.30.0 dropped the Lingyiwanwu client while adding OSC52 clipboard support and automatic light/dark theme detection.

Provider routing: A common interface covers more than 20 providers, including hosted APIs, Ollama and OpenAI-compatible endpoints.
Terminal inputs: CMD and REPL can combine prompts with stdin, files, directories, URLs and external command output.
Workflow reuse: Roles pair prompts with model settings, sessions carry conversation context, and macros replay REPL command sequences.
Agent composition: Instructions, function calls and RAG documents can be bundled, with MCP available for external tool integration.
Local HTTP surface: aichat --serve exposes three /v1 endpoints plus a browser playground and side-by-side model arena.
Release detail: v0.30.0 added OSC52 clipboard support and automatic light/dark theme detection.
Best For

Terminal-first teams that want to switch model providers, feed shell output and files into chats, and reuse retrieval or tool workflows through a CLI and local HTTP endpoint.

Skip If

You need a production inference engine, a turnkey multi-tenant gateway, or direct access to provider-native features through a single SDK.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodologyReport inaccuracy

Quick Start & Installation

CLISelf-HostedAPI
curl -X POST -H "Content-Type: application/json" -d '{
  "model":"claude:claude-3-5-sonnet-20240620",
  "messages":[{"role":"user","content":"hello"}], 
  "stream":true
}' http://127.0.0.1:8000/v1/chat/completions

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
aichat ★10.6k+25RustApache-2.0Rust CLI unifying multi-provider LLM chat, retrieval and tool workflows
OpenHands94.7k+415TypeScriptMITSelf-hosted control plane for coding agents across local, remote, and cloud back
n8n212.7k+824TypeScript—Visual Node.js platform for self-hosted workflows and multi-step AI agents
opensre17.2k+1.9kPythonApache-2.0Self-hosted CLI agent for diagnosing CI failures and proposing reviewable fixes

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/sigoden/aichat.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

sigoden/aichat Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about aichat

How should an existing application integrate AIChat?

Use aichat directly for shell pipelines or run aichat --serve for HTTP clients. The server exposes chat completions, embeddings and reranking; test the specific operations, model IDs and streaming behavior your client needs before treating it as a drop-in replacement for another API.

Does AIChat need a GPU, and what should I size for?

With a remote model API, the Rust process does not run model inference locally, so no local inference GPU is required. With Ollama on the same host, size RAM and VRAM for the selected model and workload. For a server deployment, measure the full path under representative concurrency, including any retrieval and external tool execution.

Can we use it commercially and self-host it for sensitive data?

Cargo.toml declares MIT OR Apache-2.0, and the root contains both license files. Choose one of those licenses and follow its terms, including applicable notice and redistribution obligations. Review provider terms, model licenses, external tool dependencies and document-handling requirements separately. A self-hosted API does not guarantee that inputs stay on premises.

When is AIChat a better fit than a provider CLI or SDK?

Prefer AIChat over a provider-specific CLI when model switching, reusable sessions, document retrieval or one local HTTP entry point are central to the workflow. Prefer the provider's SDK when a single backend is enough and you need direct control over its native request parameters, responses and error handling.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining sigoden/aichat? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature sigoden/aichat on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare