Skip to content

Configuration

CLI options

alpha-vis serve

Starts the web dashboard.

alpha-vis serve [OPTIONS]
Option Default Description
--forge-dir DIRECTORY . (current directory) Directory containing alpha-forge's output DBs
--forge-config FILE <forge-dir>/forge.yaml Explicit forge.yaml path
--host TEXT 127.0.0.1 Host to bind
--port INTEGER 8000 Port number
--no-open Do not auto-launch the browser

Help:

alpha-vis --help
alpha-vis serve --help

Data paths (ForgeConfig)

alpha-vis serve resolves the following paths relative to --forge-dir:

Purpose Path
Backtest results DB <forge-dir>/data/results/backtest_results.db
Strategy JSON <forge-dir>/data/strategies/*.json
Idea list <forge-dir>/data/ideas/ideas.json
Live results <forge-dir>/data/live/

When forge.yaml defines report.output_path, report.db_filename, strategies.path, or ideas.ideas_path, those values take precedence.

forge.yaml example

report:
  output_path: ./data/results
  db_filename: backtest_results.db
strategies:
  path: ./data/strategies
  use_db: false
ideas:
  ideas_path: ./data/ideas

If forge.yaml lives directly under <forge-dir>, it is loaded automatically. Otherwise pass --forge-config explicitly.

Environment variables

Variable Purpose
FORGE_CONFIG Fallback path to forge.yaml, consulted only when --forge-config is not given and <forge-dir>/forge.yaml does not exist
ALPHA_VIS_JOB_TIMEOUT Timeout in seconds for asynchronous jobs (GUI-launched optimize / WFT / backtest; default 3600)
ALPHA_VIS_JOB_CONCURRENCY Number of concurrent asynchronous jobs (default 1; the backtest engine is CPU-bound, so raise with care)
ALPHA_VIS_AGENT_TIMEOUT Timeout in seconds for an AI strategy development (Develop view) job (default 1800). On timeout, the whole process tree is killed and the job is marked failed

The resolution order is --forge-config > <forge-dir>/forge.yaml > FORGE_CONFIG (since v0.7.2). If the project opened via --forge-dir contains a forge.yaml, it always wins — a stale export FORGE_CONFIG in your shell can no longer silently point the dashboard at a different project. When the FORGE_CONFIG fallback is used, the startup log shows which file was picked.

For CI scenarios, you can clear it: env FORGE_CONFIG= alpha-vis serve ....

Notes for remote / public deployment

When running with --host 0.0.0.0:

  • No built-in authentication. Run behind a VPN, SSH port-forward, or a private network.
  • For public exposure, terminate at a reverse proxy (nginx / Caddy) and add Basic auth, OAuth proxy, or SSO.
  • Browser ⇄ server traffic is plain HTTP. For TLS, terminate at the reverse proxy.

Reflecting changes

Each alpha-forge backtest run or alpha-forge optimize run updates backtest_results.db. Reload the dashboard (Cmd+R / F5) to see new results — automatic reload is not implemented yet.