The AlphaTrion dashboard can be launched via the CLI command alphatrion dashboard. This command starts a local web server that serves the dashboard application and automatically opens it in your default browser.
Before running the dashboard, ensure the static files have been built:
cd dashboard
npm install
npm run buildLaunch the dashboard with default settings:
alphatrion dashboardThis will:
- Start the dashboard server on port 5173
- Automatically open your default browser to
http://127.0.0.1:5173
Run the dashboard on a different port:
alphatrion dashboard --port 8080| Option | Description | Default |
|---|---|---|
--port |
Port to run the dashboard on | 5173 |
# Terminal 1: Build and watch dashboard changes
cd dashboard
npm run dev
# Terminal 2: Run the AlphaTrion server
alphatrion server --port 8000
# Terminal 3: Launch dashboard
alphatrion dashboard --port 5173# Build the dashboard
cd dashboard
npm run build
# Launch dashboard on custom port
alphatrion dashboard --port 3000If you see this error:
❌ Error: Dashboard static files not found!
Please ensure the dashboard has been built by running:
cd dashboard && npm run build
Solution: Build the dashboard first:
cd dashboard
npm install
npm run buildIf port 5173 is already in use, specify a different port:
alphatrion dashboard --port 5174The dashboard command:
- Locates static files: Searches multiple possible locations for the built dashboard
- Creates FastAPI app: Sets up a simple web server
- Serves SPA: All routes fallback to
index.htmlfor client-side routing - Serves assets: Static assets (JS, CSS, images) from
/assetsdirectory
alphatrion server- Run the AlphaTrion GraphQL API serveralphatrion version- Show AlphaTrion version