Install
Already followed Getting Started? You’re all set — this page is for alternative install methods, platform-specific instructions, and maintenance.System requirements
On Windows, we strongly recommend running TraseAI under WSL2.
Install methods
From source
From source
Clone and build
Clone the TraseAI repo and build:
Link the CLI (optional)
Make the Alternatively, skip the link and run commands via
traseai command available globally:pnpm traseai ... from inside the repo.Other install methods
Docker
Containerized or headless deployments.
Podman
Rootless container: run
setup-podman.sh once, then the launch script.Nix
Declarative install via Nix.
Ansible
Automated fleet provisioning.
Bun
CLI-only usage via the Bun runtime.
After install
Verify everything is working:TRASEAI_HOMEfor home-directory based internal pathsTRASEAI_STATE_DIRfor mutable state locationTRASEAI_CONFIG_PATHfor config file location
Troubleshooting: traseai not found
PATH diagnosis and fix
PATH diagnosis and fix
Quick diagnosis:If On Windows, add the output of
$(npm prefix -g)/bin (macOS/Linux) or $(npm prefix -g) (Windows) is not in your $PATH, your shell can’t find global npm binaries (including traseai).Fix — add it to your shell startup file (~/.zshrc or ~/.bashrc):npm prefix -g to your PATH.Then open a new terminal (or rehash in zsh / hash -r in bash).