TrinaxAI runs entirely on your Mac — no cloud, no subscriptions, no data leaving your network. The installer detects whether you’re on Apple Silicon (M1/M2/M3/M4) or Intel, auto-sizes a hardware profile based on your RAM, writesDocumentation 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.
.env, installs dependencies via Homebrew, builds the PWA frontend, and registers a LaunchAgent in ~/Library/LaunchAgents/ for autostart. Apple Silicon gets Metal-accelerated inference through Ollama automatically; Intel Macs fall back to CPU.
When the install completes you’ll have:
- Ollama running at
http://localhost:11434 - RAG API (FastAPI) at
https://localhost:3333 - PWA chat interface at
https://localhost:3334
One-command install
Paste this into Terminal. The script clones the repo to~/trinaxai if it doesn’t already exist, then runs the guided installer:
Security tip: Review the script before running it.macOS may also block scripts downloaded from the internet via Gatekeeper. Cloning the repository and running locally avoids any quarantine issues — see the manual steps below.
Manual install
Install Xcode Command Line Tools
Required by Homebrew and for building native Python/Node modules:A system dialog will appear. Click Install and wait for it to finish.
Install Homebrew
If you don’t have Homebrew yet:On Apple Silicon, follow the post-install instructions to add Homebrew to your
PATH (usually eval "$(/opt/homebrew/bin/brew shellenv)").Install dependencies
You can also install Ollama from the official macOS app and keep it running in the menu bar instead of using the Homebrew formula.
Installer flags
Pass any of these flags toinstall.sh to skip prompts or override defaults:
| Flag | Description |
|---|---|
--interactive | Guided install; prompts for optional choices (default) |
--non-interactive | Fully automatic install — no prompts. Useful for CI/scripts |
--no-models | Skip downloading all Ollama models (including vision) |
--no-vision | Skip vision model download only |
--no-autostart | Do not enable boot auto-start |
--no-start | Do not start TrinaxAI at the end of the install |
--profile 8gb|16gb|max|ultra | Override the auto-detected hardware profile |
--lan-system | Enable LAN system-control endpoints and generate an admin token |
| Profile | RAM target | Notes |
|---|---|---|
8gb | ≤ 8 GB | llama3.2:1b, qwen2.5-coder:1.5b, nomic-embed-text |
16gb | 9–19 GB | llama3.2:3b, qwen2.5-coder:3b, bge-m3 |
max | 20–31 GB | qwen2.5-coder:7b, larger context window |
ultra | ≥ 32 GB | qwen2.5-coder:14b, qwen2.5vl:7b — ideal for M2/M3 Max/Ultra |
Gatekeeper and quarantine
macOS quarantines files downloaded from the internet. If you see “cannot be opened because it is from an unidentified developer” or a quarantine error, clear the attribute:git clone does not trigger quarantine — only files downloaded via a browser or curl -O are affected.
Trusting the local HTTPS certificate
TrinaxAI generates a self-signed certificate forlocalhost and your LAN IP. The installer tries to add it to your login keychain automatically via security add-trusted-cert. If it doesn’t auto-trust:
- Open Keychain Access → select the login keychain.
- Import
~/trinaxai/chat-pwa/certs/trinaxai-local.crt. - Double-click the certificate → expand Trust → set “When using this certificate” to Always Trust.
- Close and enter your password to save.
https://localhost:3334 without a warning.
Service management
Start and stop
LaunchAgent autostart
TrinaxAI registers a LaunchAgent in~/Library/LaunchAgents/com.trinaxcode.trinaxai.plist. Manage it with:
Update
Run the guided updater from the repository root. It asks whether to back up first, pull the latest code, update models, change autostart, and restart services. Python and npm dependencies always update automatically:Uninstall
The guided uninstaller stops services, removes the LaunchAgent, and asks which generated/runtime files to remove. Your source code is always kept:RAG index data (
storage/) and uploaded files (local_sources/) are kept by default. Pass --remove-data to delete them.Port reference
| Port | Service | Notes |
|---|---|---|
3333 | RAG API (FastAPI) | Backend — binds to 0.0.0.0 for LAN access |
3334 | PWA (chat interface) | Open https://localhost:3334 in your browser |
11434 | Ollama | Binds to 127.0.0.1 by default |
https://[YOUR-LAN-IP]:3334 from any device on the same Wi-Fi. Find your Mac’s LAN IP:
TRINAXAI_ADMIN_TOKEN. Enable it during install with --lan-system, or set TRINAXAI_ALLOW_LAN_SYSTEM=1 and TRINAXAI_ADMIN_TOKEN in .env manually.