Installation & local setup

Set up your machine to work on an Alloy project locally, and (for contributors) run Alloy itself in mock mode without any real accounts.

Your machine

ToolVersionCheck with
Node.js20+ (22 recommended)node -v
npm10+npm -v
Gitany recent versiongit --version
EditorVS Code, Cursor, WebStorm…

A generated project

git clone https://github.com/<you>/<repo>.git
cd <repo>
npm install
npm run dev

The dev server prints a local URL (usually http://localhost:5173). Changes you save reload instantly.

Useful scripts

ScriptWhat it does
npm run devDevelopment server with hot reload
npm run buildType-check and production build into dist/
npm run previewServe the production build locally
npm run lintLint the code (when the project includes ESLint)

Recommended editor setup

  • Install the ESLint and Tailwind CSS IntelliSense extensions.
  • Turn on "format on save".
  • Open the project root so path aliases like @components resolve.

Running Alloy itself (contributors)

Alloy runs fully offline in mock mode: a seeded demo user, mock AI responses and fake GitHub, GitLab and Bitbucket providers.

npm install
cp alloy.config.example.json alloy.config.json   # gitignored, holds your local settings
npm run dev:mock