aichat  by sigoden

All-in-one LLM CLI tool for agents, RAG, and shell assistance

created 2 years ago
7,537 stars

Top 7.1% on sourcepulse

GitHubView on GitHub
Project Summary

AIChat is a comprehensive command-line interface (CLI) tool designed to streamline interactions with various Large Language Models (LLMs). It caters to developers and power users seeking a unified platform for shell assistance, interactive chat, Retrieval-Augmented Generation (RAG), and AI agent creation, supporting over 20 LLM providers including OpenAI, Claude, Gemini, and Ollama.

How It Works

AIChat employs a unified interface to abstract away the complexities of interacting with diverse LLM APIs. Its core strength lies in its multi-provider integration, allowing users to switch between models and services seamlessly. The tool offers distinct modes: CMD for direct command execution, REPL for an interactive chat experience with advanced features like tab completion and history, and a Shell Assistant that translates natural language into shell commands tailored to the user's OS and shell. It also supports flexible input from stdin, files, URLs, and external commands, enhancing its utility.

Quick Start & Requirements

  • Installation: cargo install aichat (Rust Developers), brew install aichat (Homebrew), pacman -S aichat (Pacman), scoop install aichat (Scoop), pkg install aichat (Termux), or download pre-built binaries.
  • Prerequisites: Rust toolchain for source install.
  • Documentation: Chat-REPL Guide, Command-Line Guide, Configuration Guide.

Highlighted Details

  • Supports over 20 LLM providers, including OpenAI, Claude, Gemini, Ollama, Groq, and any OpenAI-compatible API.
  • Features a Shell Assistant that converts natural language to OS-specific shell commands.
  • Includes RAG capabilities, function calling for tool integration, and AI Agents (CLI GPTs).
  • Offers a built-in HTTP server for OpenAI-compatible API endpoints and web-based LLM Playground/Arena.

Maintenance & Community

  • Actively developed by sigoden.
  • Community links are not explicitly provided in the README.

Licensing & Compatibility

  • Licensed under MIT License or Apache License 2.0, allowing for commercial use and integration with closed-source projects.

Limitations & Caveats

The project is actively developed, with some features like AI Agents and RAG potentially being more experimental. Specific performance benchmarks or detailed comparisons against other CLI LLM tools are not presented.

Health Check
Last commit

1 day ago

Responsiveness

Inactive

Pull Requests (30d)
16
Issues (30d)
16
Star History
1,023 stars in the last 90 days

Explore Similar Projects

Starred by Peter Norvig Peter Norvig(Author of Artificial Intelligence: A Modern Approach; Research Director at Google), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
2 more.

aisuite by andrewyng

0.2%
12k
Unified interface for multiple generative AI providers
created 1 year ago
updated 2 days ago
Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Joe Walnes Joe Walnes(Head of Experimental Projects at Stripe), and
5 more.

LibreChat by danny-avila

0.8%
29k
Enhanced ChatGPT clone for self-hosting
created 2 years ago
updated 1 day ago
Feedback? Help us improve.