LibreAI / Dev Tools / aichat
// devtools · sigoden/aichat

aichat

One Rust CLI for every LLM: shell assistant, chat REPL, RAG, tools and agents across 20+ providers.

★ 10.5k stars⑂ 748 forksApache-2.0updated 2026-02
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

aichat is an open-source dev tools project by sigoden (sigoden/aichat on GitHub). It has 10,490 GitHub stars and 748 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 23 February 2026.

Repository
sigoden/aichat
GitHub stars
10,490
Forks
748
License
Apache-2.0
Last updated on GitHub
23 February 2026
Category
Dev Tools
Listing
Full install guide
// how it works

How it works

  1. Install the binary

    Use your platform's package manager or download a pre-built binary from GitHub Releases and put it on your PATH.

  2. Configure a provider

    On first run AIChat walks you through adding a provider - an API key for a hosted service, or a local Ollama endpoint if you want no key at all.

  3. Try the three core modes

    Ask a one-off question in CMD mode, open the interactive REPL for a longer session, and use shell-assistant mode to turn a task description into a command you can review and run.

  4. Add your own material

    Point it at files, folders or URLs with -f, build a RAG over your documents, and save roles, sessions and macros for work you repeat.

// features

Why people love it

20+ providers, one interface

OpenAI, Claude, Gemini, Ollama, Groq, Azure OpenAI, Vertex AI, Bedrock, GitHub Models, Mistral, DeepSeek, xAI Grok, Cohere, Perplexity, OpenRouter and any OpenAI-compatible API, all through one config.

Shell assistant

Describe a task in natural language and AIChat writes the shell command for your OS and shell, ready to review and execute.

Interactive chat REPL

Tab autocompletion, multi-line input, history search, configurable keybindings and custom prompts for long working sessions.

Multi-form input

Feed it prompts, stdin, local files and directories, remote URLs or the output of external commands, and combine several inputs in one request.

Roles, sessions and macros

Roles pair a prompt with model settings; sessions keep conversations context-aware; macros record REPL command sequences you replay on demand.

RAG, tools, agents and a local server

Chat over your own document sets, connect function-calling tools and MCP, build agents from instructions plus tools plus documents, or run aichat --serve for OpenAI-compatible chat, embeddings and rerank endpoints with a web playground and model arena.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Most users install the pre-built binary instead; clone if you want to build or inspect the Rust source.

    git clone https://github.com/sigoden/aichat.git
    cd aichat
  2. Install AIChat

    Install from crates.io (or use brew install aichat, pacman -S aichat or scoop install aichat).

    cargo install aichat
  3. Start chatting

    Launch the REPL, or start the built-in local server with playground and arena.

    aichat
    aichat --serve
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains AIChat?

It is maintained by sigoden (the aichat-developers) as an open-source project.

Is AIChat free to use?

Yes. It is offered under the MIT or Apache-2.0 license at your option, free for personal and commercial use.

Does it need a paid API key?

Only if you choose a hosted provider - you bring that provider's key. Connect a local Ollama and it works with no API key and no per-token cost.

How does AIChat compare with Simon Willison's llm or mods?

Those are excellent focused tools; AIChat bundles more into one binary - REPL, shell assistant, RAG, function-calling agents and a local API server - across 20+ providers.

How do I get started?

Run cargo install aichat (or your package manager's equivalent), launch aichat once to configure a provider, then ask your first question.

// keep exploring

Similar tools

Dev Tools

rtk

CLI proxy that cuts LLM token consumption 60-90% on common dev commands — one Rust binary

★ 82.7k starsApache-2.0
View guide →
Dev Tools

openagent

⚡️next-generation personal AI assistant powered by LLM, RAG and agent loops, supporting computer-use, browser-use and coding agent, demo: https://demo.openag…

★ 5.7k starsApache-2.0
View guide →
Dev Tools

agents-cli

The CLI and skills that turn any coding assistant into an expert at creating, evaluating, and deploying AI agents on Google Cloud.

★ 6.0k starsApache-2.0
View guide →
Dev Tools

destructive_command_guard

A guard that blocks dangerous git and shell commands before AI agents can execute them.

★ 6.1k starsMIT
View guide →
Dev Tools

zvec-grep

zvec-grep (zg): one local CLI unifying ripgrep-style exact search, BM25, and semantic vector search

★ 4.0k starsApache-2.0
View guide →
Dev Tools

mirage

A virtual terminal and filesystem that lets AI agents work across S3, Drive, Slack, Gmail and more.

★ 3.7k starsApache-2.0
View guide →
// alternatives

Alternatives in Dev Tools

The most-starred other Dev Tools projects in the LibreAI catalogue — the realistic shortlist if aichat is not the right fit.

Get aichat

Free and open — grab the source, star the repo, and start creating.