aichat  by sigoden

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

Created 2 years ago
8,133 stars

Top 6.3% 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 week ago

Responsiveness

1 day

Pull Requests (30d)
3
Issues (30d)
14
Star History
315 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.