HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
sigoden
aichat
Rust2023–2026
sigoden / aichat

aichat

All-in-one LLM CLI tool featuring Shell Assistant, Chat-REPL, RAG, AI Tools & Agents, with access to OpenAI, Claude, Gemini, Ollama, Groq, and more.

34Distinct people
41Mentions
0Explicit recommenders
10.6KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

All-in-one LLM CLI tool featuring Shell Assistant, Chat-REPL, RAG, AI Tools & Agents, with access to OpenAI, Claude, Gemini, Ollama, Groq, and more.

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 9–Nov 16 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/16/2026, 7:27:27 AM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year41 dated mentions

Observed mentions: 2023-03-20 02:42:06 UTC to 2026-11-01 15:23:50 UTC.

0510152023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 9 mentions; 2 submissions, 7 comments20232024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 15 mentions; 3 submissions, 12 comments20242025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 14 mentions; 2 submissions, 12 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC927
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC15312
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC14212
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC303

From the project README

An excerpt from the repository, fetched Nov 12, 2026.

Read the project’s introduction
AIChat: All-in-one LLM CLI Tool AIChat is an all-in-one LLM CLI tool featuring Shell Assistant, CMD & REPL Mode, RAG, AI Tools & Agents, and More. Install Package Managers Rust Developers: cargo install aichat Homebrew/Linuxbrew Users: brew install aichat Pacman Users: pacman -S aichat Windows Scoop Users: scoop install aichat Android Termux Users: pkg install aichat Pre-built Binaries Download pre-built binaries for macOS, Linux, and Windows from GitHub Releases, extract them, and add the aichat binary to your $PATH. Features Multi-Providers Integrate seamlessly with over 20 leading LLM providers through a unified interface. Supported providers include OpenAI, Claude, Gemini (Google AI Studio), Ollama, Groq, Azure-OpenAI, VertexAI, Bedrock, Github Models, Mistral, Deepseek, AI21, XAI Grok, Cohere, Perplexity, Cloudflare, OpenRouter, Ernie, Qianwen, Moonshot, ZhipuAI, MiniMax, Deepinfra, VoyageAI, any OpenAI-Compatible API provider. CMD Mode Explore powerful command-line functionalities with AIChat's CMD mode. REPL Mode Experience an interactive Chat-REPL with features like tab autocompletion, multi-line input support, history search, configurable keybindings, and custom REPL prompts. Shell Assistant Elevate your command-line efficiency. Describe your tasks in natural language, and let AIChat transform them into precise shell commands. AIChat intelligently adjusts to your OS and shell environment. Multi-Form Input Accept diverse input forms such as stdin, local files and directories, and remote URLs, allowing flexibility in data handling. Input CMD REPL CMD aichat hello STDIN cat data.txt | aichat Last Reply .file %% Local files aichat -f image.png -f data.txt .file image.png data.txt Local directories aichat -f dir/ .file dir/ Remote URLs aichat -f https://example.com .file https://example.com External commands aichat -f '`git diff`' .file `git diff` Combine Inputs aichat -f dir/ -f data.txt explain .file dir/ data.txt -- explain Role Customize roles to tailor LLM behavior, enhancing interaction efficiency and boosting productivity. The role consists of a prompt and model configuration. Session Maintain context-aware conversations through sessions, ensuring continuity in interactions. The left side uses a session, while the right side does not use a session. Macro Streamline repetitive tasks by combining a series of REPL commands into a custom macro. RAG Integrate external documents into your LLM conversations for more accurate and contextually relevant responses. Function Calling Function calling supercharges LLMs by connecting them to external tools and data sources. This unlocks a world of possibilities, enabling LLMs to go beyond their core capabilities and tackle a wider range of tasks. We have created a new repository https://github.com/sigoden/llm-functions to help you make the most of this feature. AI Tools & MCP Integrate external tools to automate tasks, retrieve information, and perform actions directly within your workflow. AI Agents (CLI version of OpenAI GPTs) AI Agent = Instructions (Prompt) + Tools (Function Callings) + Documents (RAG). Local Server Capabilities AIChat includes a lightweight built-in HTTP server for easy deployment. $ aichat --serve Chat Completions API: http://127.0.0.1:8000/v1/chat/completions Embeddings API: http://127.0.0.1:8000/v1/embeddings Rerank API: http://127.0.0.1:8000/v1/rerank LLM Playground: http://127.0.0.1:8000/playground LLM Arena: http://127.0.0.1:8000/arena?num=2 Proxy LLM APIs The LLM Arena is a web-based platform where you can compare different LLMs side-by-side. Test with curl: 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 LLM Playground A web application to interact with supported LLMs directly from your browser. LLM Arena A web platform to compare different LLMs side-by-side. Custom Themes AIChat supports custom dark and light themes, which highlight response text and code blocks. Documentation Chat-REPL Guide Command-Line Guide Role Guide Macro Guide RAG Guide Environment Variables Configuration Guide Custom Theme Custom REPL Prompt FAQ License Copyright (c) 2023-2025 aichat-developers. AIChat is made available under the terms of either the MIT License or the Apache License 2.0, at your option. See the LICENSE-APACHE and LICENSE-MIT files for license details.
Read the full README on GitHub

What Hacker News says

9 sources
Machato is the closest I've found as well, other than CLI / console tools or "roll your own". Ability to set (and save) system contexts is critical. It's unclear to me why most apps don't enable this. I can't get by without Machato's other innovation of suppressing earlier parts of the history I no longer need later in the conversation, making it straightforward to have 64k interactions with the 8k model. Ability to fork and file conversations, as well as the cost monitoring, are gravy. - https://untimelyunicorn.gumroad.com/l/machato - https://github.com/sigoden/aichat
In Show HN: Yet another macOS ChatGPT app
I really like the direct GitHub repo integration! I've thought about doing something similar as well. But keep in mind, this should be easy to do from the command line with a number of tools as long as you have a gpt-4 api key. I would probably trust gpt-3.5-turbo with this task in a pinch, but I think there would be more risk of it disrupting the original code. Here it is with aichat [1]: $ curl -s https://raw.githubusercontent.com/leachim6/hello-world/main/p/Python%203.py | aichat --model="gpt-4" -p "emit this exact code, but with helpful comments; don't put any comments before a #!shebang line if present" #!/usr/bin/env python3 # This is a simple Python script that prints "Hello World" to the console. # The first line, called the shebang, tells the operating system how to execute the script. # In this case, it specifies th
Read the rest
at the script should be run using the Python 3 interpreter. # The print function is used to output text to the console. # Here, it is used to print the string "Hello World". print("Hello World") Or with my own tool aider [2]: $ git clone https://github.com/leachim6/hello-world.git $ cd hello-world $ aider "p/Python 3.py" Added p/Python 3.py to the chat Using git repo: .git > add helpful comments p/Python 3.py <<<<<<< ORIGINAL #!/usr/bin/env python3 print("Hello World") ======= #!/usr/bin/env python3 # This is a simple Python script that prints "Hello World" to the console print("Hello World") # Print "Hello World" to the console >>>>>>> UPDATED Applied edit to p/Python 3.py Commit aad4afc aider: Added helpful comments to Python script. [1] https://github.com/sigoden/aichat [2] https://github.com/paul-gauthier/aider
In Show HN: File-by-file AI-generated comments for your codebase
I use the aichat [1] command line tool a lot for these sort of ad hoc chats. It takes piped input and has nice configurability for setting up a variety of system prompts ("roles"), etc. If you want to use GPT-4 to manipulate and edit files in your local file system, you can use my cli tool aider [2]. It’s intended for generating and editing code, but you can use it to chat with GPT-4 to read, edit and write any text files in your local. If the files are under git source control, it will commit the changes as they happen as well. Here’s a transcript of aider editing the ANSI-escape codes in an asciinema screencast recording, for example[3]. [1] https://github.com/sigoden/aichat [2] https://github.com/paul-gauthier/aider [3] https://aider.chat/examples/asciinema.html
In CLI tools for working with ChatGPT and other LLMs

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.