Skip to content

Local Development

Run Abacus on your local machine for development.

  • Node.js 18+
  • pnpm
  • PostgreSQL database (local or remote)
  1. Clone and install dependencies

    Terminal window
    git clone https://github.com/getsentry/abacus.git
    cd abacus
    pnpm install
  2. Create environment file

    Create .env.local with your credentials:

    Terminal window
    cat > .env.local << 'EOF'
    POSTGRES_URL=postgres://...
    BETTER_AUTH_SECRET=your-secret-here
    GOOGLE_CLIENT_ID=your-client-id
    GOOGLE_CLIENT_SECRET=your-client-secret
    NEXT_PUBLIC_DOMAIN=yourcompany.com
    CRON_SECRET=your-cron-secret
    # Providers (optional)
    ANTHROPIC_ADMIN_KEY=sk-admin-...
    CURSOR_ADMIN_KEY=...
    EOF
  3. Run database migrations

    Terminal window
    pnpm cli db:migrate
  4. Start the development server

    Terminal window
    pnpm dev

    Open http://localhost:3000.

If you don’t have a remote PostgreSQL database, use Docker:

Terminal window
docker-compose up -d

This starts a local PostgreSQL instance. Use the connection string:

POSTGRES_URL=postgres://postgres:postgres@localhost:5434/abacus

| Command | Description | |---------|-------------| | pnpm dev | Start development server | | pnpm build | Build for production | | pnpm lint | Run ESLint | | pnpm cli <cmd> | Run CLI commands |