# Install aichat with Homebrew, MacPorts, Nix, pacman, scoop, winget

All-in-one AI-Powered CLI Chat & Copilot. Version 0.30.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:aichat
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install aichat
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install aichat
```

  Evidence: MacPorts ports tree: textproc/aichat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#aichat
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ai/aichat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S aichat
```

  Evidence: Arch Linux sync databases: aichat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/aichat
```

  Evidence: Scoop official bucket manifest trees: bucket/aichat.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id sigoden.AIChat -e
```

  Evidence: Windows Package Manager source index: sigoden.AIChat from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:aichat
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/aichat>
- **Version:** 0.30.0
- **Source summary:** All-in-one AI-Powered CLI Chat & Copilot
- **Homepage:** <https://github.com/sigoden/aichat>
- **Repository:** <https://github.com/sigoden/aichat>
- **Upstream docs:** <https://github.com/sigoden/aichat#readme>
- **License:** Apache-2.0 OR MIT
- **Source archive:** <https://github.com/sigoden/aichat/archive/refs/tags/v0.30.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- aichat (cli)
- aichat (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.30.0
- Local data: ok
- Upstream repository: https://github.com/sigoden/aichat
- Upstream latest detected: v0.30.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

AIChat is a Rust-based all-in-one LLM command-line tool. It combines a chat REPL, command mode, shell assistant, roles, sessions, macros, RAG, tool and agent support, and a local HTTP server under one CLI.

### Project history

The GitHub repository was created in March 2023, and the first listed release, v0.1.0, was published the same day. Early positioning was simple CLI chat, but the current README describes a much broader terminal copilot with multi-provider model access.

By the current documentation, AIChat supports more than 20 LLM providers through a unified interface, including OpenAI, Claude, Gemini, Ollama, Groq, Azure OpenAI, Vertex AI, Bedrock, GitHub Models, Mistral, Deepseek, OpenRouter, and OpenAI-compatible APIs. Later features include RAG, custom roles, function calling, MCP-style tools, agents, shell integration, completions, and a local server exposing chat, embeddings, rerank, playground, and arena endpoints.

### Adoption history

Official installation instructions cover cargo install, Homebrew/Linuxbrew, pacman, Scoop, Termux, and prebuilt binaries for macOS, Linux, and Windows. The supplied package facts also list MacPorts, Nix, winget, and additional package-manager entries.

The repository's GitHub metadata shows five-figure stars by this run, and official releases continued through at least v0.30.0 in July 2025. Its adoption profile is broader than a single provider wrapper: it is used as a terminal frontend for many commercial, hosted, and local models.

### How it is used

AIChat can be run with a plain prompt, as an interactive REPL, as a shell assistant with natural-language command execution, as a code-output filter, with files or URLs as inputs, with named roles or sessions, with RAG collections, with agents, or as a local API server.

Configuration lives in a per-user config directory as config.yaml, and secrets may be stored in the config directory's .env file or supplied with provider-specific environment variables such as OPENAI_API_KEY. The wiki documents AICHAT_CONFIG_DIR, AICHAT_ENV_FILE, AICHAT_CONFIG_FILE, and related overrides.

### Why package nerds care

AIChat is significant because it packages much of the post-2023 LLM terminal workflow into one distributable binary: chat, shell command generation, file ingestion, provider abstraction, local serving, RAG, and agents.

For package maintainers, it is also a good example of modern CLI packaging pressure: rapid upstream releases, many optional provider integrations, cross-platform binaries, shell completions, and config paths that differ by OS.

### Timeline

- 2023: GitHub repository created and v0.1.0 released.
- 2024: Releases expanded through v0.20+ while multi-provider and workflow features matured.
- 2025: v0.30.0 released in July.
- 2026: Official repository metadata and input package facts show broad cross-platform package-manager availability.

### Related projects

- AIChat is related to provider-specific CLIs and SDKs for OpenAI, Anthropic Claude, Gemini, Ollama, Bedrock, Mistral, and other model services.
- The README points to sigoden/llm-functions for external tool/function-calling support.

### Sources

- <https://api.github.com/repos/sigoden/aichat>
- <https://api.github.com/repos/sigoden/aichat/releases?per_page=100>
- <https://github.com/sigoden/aichat#readme>
- <https://github.com/sigoden/aichat/wiki/Command-Line-Guide>
- <https://github.com/sigoden/aichat/wiki/Configuration-Guide>
- <https://github.com/sigoden/aichat/wiki/Environment-Variables>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Linux: /home/alice/.config/aichat/config.yaml
- macOS: /Users/Alice/Library/Application Support/aichat/config.yaml
- Windows: C:\Users\Alice\AppData\Roaming\aichat\config.yaml

## Credential files

- Linux: /home/alice/.config/aichat/.env
- macOS: /Users/Alice/Library/Application Support/aichat/.env
- Windows: C:\Users\Alice\AppData\Roaming\aichat\.env
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** aichat
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - aichat: normalized package name match | nixpkgs package indexes: pkgs/by-name/ai/aichat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - aichat - 0.30.0-3: normalized package name match | Arch Linux sync databases: aichat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | All-in-one AI CLI tool featuring Chat-REPL, Shell Assistant, RAG, AI tools & agents | https://github.com/sigoden/aichat
- MacPorts - aichat: normalized package name match | MacPorts ports tree: textproc/aichat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/aichat: normalized package name match | Scoop official bucket manifest trees: bucket/aichat.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - sigoden.AIChat: normalized package name match | Windows Package Manager source index: sigoden.AIChat from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [MCP tool packages](https://www.automicvault.com/pkg/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [aider](https://www.automicvault.com/pkg/brew/aider/) - Shares av.db curated category or tags: ai, cli, developer-tools.
- [chatblade](https://www.automicvault.com/pkg/brew/chatblade/) - Shares av.db curated category or tags: ai, cli, developer-tools.
- [context7-mcp](https://www.automicvault.com/pkg/brew/context7-mcp/) - Shares av.db curated category or tags: ai, cli, developer-tools.
- [fabric-ai](https://www.automicvault.com/pkg/brew/fabric-ai/) - Shares av.db curated category or tags: ai, cli, developer-tools.
- [gollama](https://www.automicvault.com/pkg/brew/gollama/) - Shares av.db curated category or tags: ai, cli, developer-tools.
- [gptme](https://www.automicvault.com/pkg/brew/gptme/) - Shares av.db curated category or tags: ai, cli, developer-tools.
- [gptscript](https://www.automicvault.com/pkg/brew/gptscript/) - Shares av.db curated category or tags: ai, cli, developer-tools.
- [hyper-mcp](https://www.automicvault.com/pkg/brew/hyper-mcp/) - Shares av.db curated category or tags: ai, cli, developer-tools.
- [oterm](https://www.automicvault.com/pkg/brew/oterm/) - Local package facts share a topical domain. Shared terms: ai, chat, cli, developer, developer-tools.
- [aicommit](https://www.automicvault.com/pkg/brew/aicommit/) - Local package facts share a topical domain. Shared terms: ai, ai-powered, cli, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/aichat.yml](https://github.com/automic-vault/db/blob/main/combined/aichat.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
