The TrinaxAI CLI brings every capability of the PWA into your terminal. Ask one-shot questions, run an interactive REPL, index entire project directories for semantic code search, and manage memory and collections — all without leaving your shell. Because the CLI talks directly to the same FastAPI backend (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TrinaxCode/TrinaxAI/llms.txt
Use this file to discover all available pages before exploring further.
localhost:3333) that powers the PWA, there is no separate setup: configure once, use everywhere.
The CLI is distributed as a standard Python package and is installed with pip install -e . from the repo root. It targets Python 3.10+ and has two runtime dependencies: httpx for HTTP and rich for terminal output.
Installation
Running
pip install -e . inside a virtual environment (.venv) is recommended so the CLI’s dependencies don’t conflict with system Python packages. The one-command install.sh script does this automatically.Quick Commands Overview
| Command | Description |
|---|---|
trinaxai | Open the interactive REPL (defaults to chat) |
trinaxai ask "..." | Send one question and print the answer, then exit |
trinaxai chat | Start an interactive streaming chat session |
trinaxai index <path> | Index a directory into the local RAG store |
trinaxai browse | Browse indexed collections, files, and chunks |
trinaxai doctor | Run a full system health check |
trinaxai start | Start all TrinaxAI local services |
trinaxai stop | Stop AI services (optionally including the PWA) |
trinaxai watch | Control the file watcher daemon for auto-reindex |
trinaxai research "..." | Multi-pass deep research on a question |
trinaxai export | Export a saved chat session to Markdown |
trinaxai memory | Manage persistent memory entries |
trinaxai collections | List or manage RAG knowledge collections |
Global Flags
These flags apply to every command and are placed before the subcommand name:| Flag | Description |
|---|---|
--api-url <URL> | Override the RAG API base URL for this invocation |
--insecure | Disable TLS certificate verification (useful for custom certs) |
--config <path> | Path to a config TOML file (overrides $TRINAXAI_CONFIG and XDG search) |
--no-color | Disable ANSI colour output |
--verbose / -v | Enable DEBUG-level logging to stderr |
--version | Print the CLI version and exit |
Same Backend as the PWA
The CLI and the PWA share the same FastAPI backend. Every query, indexed document, memory entry, and collection is visible from both interfaces. When you index a directory withtrinaxai index ., the results are immediately available in the chat at https://localhost:3334. No separate configuration is required.