Skip to main content

🧠 Aria

Your local AI assistant with a unified tool-driven architecture

Python 3.12+ CI PyPI Docker License Code style: ruff

Run a local AI assistant in your terminal, with a CLI and headless API


✨ Features

Feature Description
🎯 Unified Tool Architecture Centralized registry of named tools + an ax dispatcher routing to 12 domain families (41 commands)
🖥️ Terminal-first Textual TUI, plain REPL, one-shot CLI, and headless API
🤖 Local LLM Support Run models locally with vLLM (GPU-accelerated inference with GPTQ/AWQ quantization)
🌐 Browser Automation Lightpanda headless browser with CDP/Playwright support
🔒 Privacy First Your data stays on your machine
🌐 Web Research Search, weather, finance, and more
💻 Code Execution Safe Python sandbox and shell commands
📊 Knowledge & Reasoning Persistent knowledge store, cross-conversation memory, structured reasoning
⏳ Background Jobs Long crawls, downloads, and batch runs keep going after Aria replies (ax processes)
📄 Document Conversion Convert office/HTML/PDF uploads to markdown on demand via ax documents convert (MarkItDown + optional local Granite-Docling for scanned PDFs)
🔌 MCP Integration Connect stdio, SSE, and streamable-HTTP MCP servers from the CLI, TUI, and API
🔧 CLI Tool Commands Domain-specific CLI commands for search, finance, IMDb, and more

🚀 Quick Start

Option A — Run from source

Breaking change in v0.5.0: the browser UI and desktop GUI are gone, and chat history is not migrated. Before the first run, delete the old database (rm -rf ~/.aria/db/aria.db ~/.aria/db/chromadb/ — or point ARIA_HOME at a fresh directory), run aria init, re-add accounts with aria users add if you used multi-user mode, then start aria chat. Threads now live in a fresh native store; the old Chainlit database is refused with a reset hint if left in place.

git clone git@github.com:malvavisc0/aria-ai.git
cd aria-ai
uv sync   # pins CPU-only torch automatically (embeddings run on CPU; vLLM has its own isolated CUDA venv)
aria init            # detect hardware, install binaries, download models (run once)
aria chat            # Textual TUI; use --plain for the inline REPL

aria init walks you through setup: it detects your GPU, picks a chat mode (local vLLM when an NVIDIA GPU is present, or a remote OpenAI-compatible endpoint), installs vLLM/Lightpanda/docling/voice as appropriate, and downloads the required models. Re-running it is safe — every step is idempotent and your .env customizations are preserved.

Option B — Install from PyPI

pip install aria-ai
aria init
aria chat

Option C — One-shot and scripted use

aria ask "summarize the attached report" --file report.pdf
aria ask "research solid-state batteries" --json

Option D — Docker (CUDA)

docker run --gpus all -p 9876:9876 -v ./data:/app/data ghcr.io/malvavisc0/aria-ai-cuda:latest
curl http://localhost:9876/health

The container entrypoint runs aria init --non-interactive on every boot (idempotent — a populated /app/data volume makes it a no-op) before aria server run, so a fresh volume is bootstrapped automatically. The container runs the headless FastAPI service; use aria chat locally or call the API.


🤖 Agent System

Aria uses a tool-first architecture centered around one primary agent with a centralized tool registry. The agent registers its core and file tools directly and routes every domain task through a single ax dispatcher. Long-running jobs start as background processes and keep running after Aria replies.

How It Works

User Request → Aria → Registry-selected tools → Response
                ↓ (long jobs)
            ax processes start → Background process → Output file + log

Aria evaluates each request, keeps core capabilities available by default, and pulls in domain-specific tools only when the task requires them. Work that takes more than about 30 seconds and doesn't need watching (crawls, downloads, batch conversions) starts as a background job: Aria reports its name and returns control, and the TUI's session panel shows it until it finishes.


🛠️ Tools

Aria registers a small set of named tools and route everything else through a single ax dispatcher. Tool loading is managed by a centralized registry (src/aria/tools/registry.py).

Registered tools — called directly by the agent:

Group Tools
🧠 Core reasoning · shell
📁 Files read_file, write_file, edit_file, list_files, search_files
🔀 ax The dispatcher above — routes to the domain families below

ax domain families — 12 families, 41 commands (call ax help in-app to list them live):

Family Commands
web search, fetch, visit, click, close, weather, youtube
memory store, recall, search, list, update, delete
knowledge status, reindex
finance stock, company, news
imdb search, movie, person, filmography, episodes, reviews, trivia
http request
dev run
processes start, stop, status, logs, list, restart, signal
documents convert, extract, status
check extras
voice transcribe
mcp list, call

Domain tools are also available as CLI commands via ax (e.g., ax web search, ax memory store, ax dev run).

For the full inventory with parameter reference, see docs/tools-inventory.md.


📦 Installation

Prerequisites

  • Python 3.12 or higher
  • uv package manager (recommended)
  • Git
  • 16 GB+ system RAM
  • GPU with 8 GB+ VRAM (8 GB minimum; 12 GB+ recommended) — only for local LLM inference. With no GPU, point Aria at a remote OpenAI-compatible endpoint via ARIA_VLLM_REMOTE=true. The aria-ai-arm64 image provides the no-GPU layout for Raspberry Pi and other ARM boards.

See docs/memory-requirements.md for detailed VRAM/RAM breakdown per model.

Install

# Clone the repository
git clone git@github.com:malvavisc0/aria-ai.git
cd aria-ai

# Install dependencies
uv sync   # CPU-only torch pinned automatically via [tool.uv] index

First Run

Run aria init once to bootstrap ARIA_HOME, detect your hardware, pick a chat mode, and install/download everything needed:

aria init            # interactive: detect, ask mode, install, download
aria init --mode remote --remote-url https://api.openai.com/v1 --api-key sk-... --model gpt-4o
aria init --dry-run  # print the plan, change nothing
aria init --non-interactive  # derive everything from env vars (Docker)

Then start chatting:

aria chat            # Textual TUI
aria ask "..."       # One-shot
ax check preflight   # Verify installation

💻 CLI Commands

Aria ships with two CLI entry points:

CLI Purpose Commands
aria Assistant + management Chat, ask, threads, server, users, models, vLLM, config, system, Lightpanda
ax Agent Experience CLI Web, memory, knowledge, dev, processes, check

aria — Management CLI

Human-facing commands for infrastructure and system management.

# Setup (run once before starting the server)
aria init               # Bootstrap, detect hardware, install binaries, download models
aria init --mode remote # Configure a remote OpenAI-compatible endpoint

# Assistant
aria chat              # Textual TUI (--plain for the inline REPL)
aria ask "question"    # One-shot answer
aria threads list      # List threads
aria threads show ID   # Inspect a thread
aria threads export ID # Export a thread as markdown

# API service
aria server run       # Run in foreground (preflight verifies, then serves)
aria server start     # Start in background (no auto-install — run `aria init` first)
aria server stop      # Stop the service
aria server status    # Check status

# Inference engine
aria vllm install         # Build isolated vLLM venv + install pinned wheel
aria vllm install --version 0.24.0  # Install a specific pinned release
aria vllm update          # Recreate the isolated venv at the latest PyPI release
aria vllm status          # Check installation status, version, and venv path
aria vllm info            # Show vLLM configuration details
aria vllm start           # Start the vLLM server
aria vllm stop            # Stop the vLLM server
aria vllm restart         # Restart only the vLLM server (no API side effects)
aria vllm uninstall       # Remove the isolated vLLM venv
aria vllm uninstall --legacy  # Remove a pre-detach vLLM from Aria's own .venv

# Browser
aria lightpanda download  # Download Lightpanda headless browser
aria lightpanda status    # Check Lightpanda installation

# Model management
aria models download      # Download a model from Hugging Face
aria models list          # Show configured models and download status

# User management
aria users list           # List users
aria users add            # Add new user
aria users reset          # Reset user password
aria users edit           # Update user details
aria users delete         # Delete a user

# MCP servers (CLI/TUI/API)
aria mcp list                                  # List configured MCP servers
aria mcp add fs --command "uvx mcp-server-fs ~"  # Add a stdio server
aria mcp add remote --url "https://mcp.example.com/mcp"  # Add a remote server
aria mcp remove fs                             # Remove a server

# System info
aria system info          # Full system overview
aria system gpu           # GPU information
aria system vram          # VRAM details
aria system hardware      # Host hardware summary as JSON

# Configuration
aria config show          # Show current config
aria config paths         # Show configured paths
aria config database      # Show database info
aria config api           # Show API endpoints

ax — Agent Experience CLI

Agent-facing commands for research, knowledge, code execution, and workflow management.

# Web & research
ax web search "query"         # Web search
ax web fetch "url"            # Fetch URL content
ax web weather "city"         # Weather forecast

# Memory (facts)
ax memory store "key" "v"     # Store a fact
ax memory recall "key"        # Retrieve a fact

# Knowledge hub
ax knowledge status           # Index status

# Development
ax dev run "code"             # Execute Python code

# Processes & checks
ax processes list             # List background processes
ax check preflight            # Verify installation

🖥️ Terminal UI

aria chat opens the Aria notebook: a focused reading column with streaming Markdown, collapsible tool activity, numbered sources, and @path attachments.

aria chat              # Textual TUI
aria chat --plain      # inline Rich REPL
aria chat --continue   # resume the most recent thread

Use Ctrl+K for commands and starter prompts, Ctrl+B for threads, Ctrl+N for a new thread, Ctrl+O for activity, and Ctrl+J to inspect an answer's sources and files. While a turn runs, the primary button becomes Stop (Ctrl+C also cancels). The session panel shows context as a charge gauge (◈ 18k/128k █▏░░░░░░░░ 14%) and keeps failures visible while folding healthy tools behind N more tools. Evidence and Activity hints appear only when they apply. On narrow terminals, the Threads drawer opens over the transcript, the wordmark hides, and the model block compacts to N fixes. Click it or choose Capabilities from Ctrl+K to see which tools and integrations are loaded, disabled, or not yet checked. The inspector does not start services or run health checks.

🌐 Headless API

aria server start runs the FastAPI service on http://localhost:9876.

Endpoint Purpose
GET /health Health and startup status
GET /v1/threads List threads
POST /v1/threads Create a thread
GET /v1/threads/{id} Fetch a thread with messages, tool runs, and artifacts
DELETE /v1/threads/{id} Delete a thread
POST /v1/threads/{id}/messages Stream a turn as Server-Sent Events

The API always requires a bearer token: aria init generates ARIA_AUTH_SECRET, or set ARIA_API_TOKEN to use a separate API token. Send Authorization: Bearer <token>; only /health is unauthenticated. The API streams the same typed TurnEvent values the TUI consumes.


🐳 Docker

Quick start

# NVIDIA / CUDA
docker run --gpus all -p 9876:9876 -v ./data:/app/data ghcr.io/malvavisc0/aria-ai-cuda:latest

# ARM64 (Raspberry Pi and similar boards — remote LLM or CPU-only)
# Requires a configured .env with ARIA_VLLM_REMOTE=true (see Docker Compose).
docker run -p 9876:9876 -v ./data:/app/data -v ./.env:/app/.env:ro ghcr.io/malvavisc0/aria-ai-arm64:latest

Docker Compose

# Copy and configure environment. Start from the generic template at
# src/aria/.env.example, or from a VRAM-tuned preset in docs/env/.
cp src/aria/.env.example .env
#   e.g. for a 16 GB GPU use the tuned preset instead:
#   cp docs/env/.env.16gb.example .env

# NVIDIA / CUDA
docker compose up -d

# ARM64 (Raspberry Pi and similar boards)
docker compose up -d aria-arm64
Image Base GPU
ghcr.io/malvavisc0/aria-ai-cuda:latest vLLM (CUDA/CPU) NVIDIA
ghcr.io/malvavisc0/aria-ai-arm64:latest Debian (no vLLM) None — remote or CPU-only

First run: the container auto-generates an ARIA_AUTH_SECRET and persists it to the data volume. The ARM64 image has no vLLM, so its .env must set ARIA_VLLM_REMOTE=true plus CHAT_OPENAI_API and CHAT_MODEL. Create a login user in the running container:

docker exec -it aria aria users add --identifier admin@example.com --name "Admin" --role admin       # CUDA
docker exec -it aria-arm64 aria users add --identifier admin@example.com --name "Admin" --role admin # ARM64

⚙️ Configuration

Aria uses environment variables stored in $ARIA_HOME/.env (defaults to ~/.aria/.env):

# Runtime data lives under ~/.aria (override with ARIA_HOME)
#ARIA_HOME=~/.aria
ARIA_AUTH_SECRET=<auto-generated>

# Chat model — aria init picks the tier that matches your VRAM
CHAT_MODEL = Qwen3.8-4B-gptq-int4
CHAT_MODEL_PATH = malvavisc0/Qwen3.8-4B-gptq-int4
CHAT_CONTEXT_SIZE = 65536

# Embeddings model (loaded in-process on CPU)
EMBEDDINGS_MODEL = bge-small-en-v1.5
EMBED_MODEL_PATH = BAAI/bge-small-en-v1.5
ARIA_EMBEDDINGS_QUERY_INSTRUCTION = "Represent this sentence for searching relevant passages: "
ARIA_EMBEDDINGS_DTYPE = float32

# vLLM engine (blank values are auto-calculated at launch)
ARIA_VLLM_QUANT = gptq
ARIA_VLLM_GPU_MEMORY_UTILIZATION =

# vLLM isolated venv (advanced overrides)
#ARIA_VLLM_VERSION = 0.24.0          # pinned PyPI release tag (v0.24.0 → 0.24.0)
#ARIA_VLLM_VENV = /opt/vllm          # use a pre-existing venv (Aria won't create/delete it)
#ARIA_VLLM_REMOTE = true            # skip local process mgmt (external server)

Upgrading from an in-.venv vLLM install (before the detach) vLLM is now an external tool installed into an isolated venv at ~/.aria/venvs/vllm (Aria's own dependency tree no longer imports it). A vLLM copy left in Aria's .venv from before the detach is ignored at runtime. aria vllm status prints a one-line notice when it detects this; reclaim the multi-GB CUDA/torch stack with aria vllm uninstall --legacy, then install the isolated copy with aria vllm install.

Reclaiming unused CUDA wheels from Aria's .venv (CPU-torch pin) Aria's venv now installs CPU-only torch — embeddings run on CPU by default (device="cpu"), so the multi-GB CUDA/torch wheel set was loaded but never used. This is enforced automatically via the [tool.uv] pytorch-cpu index in pyproject.toml; plain uv sync resolves torch==+cpu. An existing .venv still holds the old CUDA wheels after re-syncing; prune them explicitly:

uv pip uninstall torch nvidia-cuda-runtime nvidia-cudnn-cu13 \
    nvidia-cusparselt-cu13 nvidia-nccl-cu13 nvidia-nvshmem-cu13 \
    cuda-toolkit cuda-bindings triton
uv sync

vLLM's GPU stack is unaffected — it lives in its own isolated venv at ~/.aria/venvs/vllm, and the vLLM installer passes --no-config so Aria's CPU index never leaks into it.

📁 Directory Structure
~/.aria/                   # Runtime data root (ARIA_HOME)
├── .env                   # Configuration
├── workspace/             # Agent-facing workspace (uploads, reports, citations)
├── bin/                   # Downloaded binaries (lightpanda, etc.)
├── venvs/                 # Isolated vLLM and Docling virtualenvs
├── db/                    # SQLite (aria.db, tools.db) and ChromaDB
├── models/                # Downloaded model files
├── knowledge/             # Knowledge-hub documents
├── public/                # Brand assets (logos, favicon, CSS)
├── logs/                  # Runtime logs
├── processes.json         # Background jobs started with ax processes
└── storage/               # Tool file storage

🤝 Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

Development Setup

# Install dev dependencies
uv sync --group dev

# Lint, format, type-check, and audit dead code
uv run ruff check src/
uv run ruff format --check src/
uv run basedpyright
uv run vulture src/aria

# Run the CI test suite (excludes heavy voice tests)
uv run pytest -m "not voice"

See docs/coding-standards.md for the full standards, the legacy-code exceptions, and the enforcement ratchet.


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with ❤️ by malvavisc0

Report Bug · Request Feature

Metadata

Release files for aria-ai 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aria-ai 0.5.1
File Size Uploaded Provenance Actions
aria_ai-0.5.1.tar.gz 454.4 kB With provenance Details for aria_ai-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aria-ai 0.5.1
File Interpreter ABI Platform Actions
aria_ai-0.5.1-py3-none-any.whl Python 3 none any Details for aria_ai-0.5.1-py3-none-any.whl

Total release size: 980.8 kB

Release files / aria_ai-0.5.1.tar.gz

Download URL aria_ai-0.5.1.tar.gz
Size 454.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d531381da952c6627415ff4290ee76537aae349a04efe5eebae780106c2a6f0b
BLAKE2b-256 checksum
How to use checksums
6f7de7c25ebdb6687287a498dbd86337f6c8943b9df4c4494ccc2b1df1423a54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Release files / aria_ai-0.5.1-py3-none-any.whl

Download URL aria_ai-0.5.1-py3-none-any.whl
Size 526.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
779ccdd2280419de343363e277a073465d1de43197eac9870f431fd3ce9e9dc1
BLAKE2b-256 checksum
How to use checksums
c439525819dce21f682f17fdd56285036a152afb00d3c62d0ea847c6419698d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Security for aria-ai 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aria_ai-0.5.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page