Getting Started
Agentrix is local-first by default. Follow this checklist to set up your environment and run the agent runtime on your machine.
Create Virtual Environment
Set up an isolated python sandbox in the project root directory.
python3 -m venv .venvInstall Packages
Install the core runtime, relay agent gateway, and CLI tool in editable mode.
.venv/bin/pip install -e "./packages/core[all]" -e "./packages/relay" -e "./apps/cli"Bring Your Own Key
Log in to store your model credentials securely in your operating system keyring.
./.venv/bin/agentrix loginLaunch the Backend Relay
Start the WebSocket/FastAPI service so the web dashboard or mobile app can coordinate.
./.venv/bin/agentrix relayDefaults to port 8765 on localhost.
CLI Commands Reference
The `agentrix` command is the control panel of the runtime. Run it from your project shell:
Platform Architecture
Agentrix is structured as a decoupled multi-surface stack. A single runtime drives your workflow across all environments:
Resides in `packages/core`. Acts as the brain. Manages prompt structures, token bounds, self-critique/eval loops, and registers system tools.
Resides in `packages/relay`. A lightweight FastAPI server connecting codebases to client surfaces over secure WebSockets.
Includes Next.js 14 Dashboard, Expo React Native Mobile, and VS Code/Cursor plugins. Interacts directly with the relay.
Environment Configuration
Configure the stack behaviour by creating a `.env` file in the workspace root:
| Variable | Purpose | Default |
|---|---|---|
| AGENTRIX_HOST | Host IP for relay server listener. | `127.0.0.1` |
| AGENTRIX_PORT | Port number for relay. | `8765` |
| AGENTRIX_LLM_DEFAULT_PROVIDER | Default LLM model provider. | `openai` |
| AGENTRIX_STORAGE_URL | SQLite path or PostgreSQL connection string. | `sqlite:///...` |
Troubleshooting Guidelines
Port Conflict Errors (EADDRINUSE)
If port 3000, 3001, or 8765 is in use when attempting to start the dashboard, run the following command to free the port bindings:
kill -9 $(lsof -t -i :3000 -i :3001 -i :8765)Relay reports offline / connection failure
Ensure the python virtual environment is activated and you ran agentrix relay. If you specify AGENTRIX_RELAY_AUTH_TOKEN in your root .env, make sure to enter the bearer token inside the web connection credentials screen.
SQLite Journal Size Warnings
Long-lived workspaces can write a large WAL SQLite journal. To clean it up, enter the sqlite database CLI or execute `VACUUM`. For production grade multi-user scaling, switch to PostgreSQL.