Skip to content

Local setup ​

This page sets up a local copy of Nimbus. You need it to run the workbench, the tests and the UI in development.

Prerequisites ​

  • PHP 8.2 or newer with the curl, mbstring, pcntl, intl, fileinfo and sodium extensions.
  • Composer.
  • Node.js and npm. CI uses Node 24.
  • Git.

Install ​

Fork the repository on GitHub, then clone your fork. Replace your-username with your GitHub username.

Terminal
git clone https://github.com/your-username/nimbus.git
cd nimbus
composer install
npm install

The composer install command also runs npx agenteq sync, which writes the agent files described in working with AI agents. The first sync asks where to clone the shared AI guidelines.

Build the workbench ​

The workbench/ folder is a Laravel app powered by Orchestra Testbench. It loads the package with demo routes, an OpenAPI file and seeders, so you do not need a host application.

Terminal
composer build

This creates the SQLite file and runs the Testbench build.

Run everything ​

Terminal
composer dev

The command runs the workbench servers and the Vite dev server in one terminal. Press Ctrl+C to stop all of them.

To run only the servers, use composer serve. It builds the workbench first.

ServerURLRole
Apphttp://127.0.0.1:8000Serves the workbench and Nimbus.
Relayhttp://127.0.0.1:8001Receives the requests Nimbus relays.

The PHP built-in server handles one request at a time. The relay endpoint calls back into the app, so one server would wait for itself. The second server avoids this. workbench/.env.example sets NIMBUS_RELAY_ENDPOINT to the relay URL.

Open the demo UI at http://127.0.0.1:8000/demo.

Run a package command ​

The nimbus script forwards arguments to Testbench.

Terminal
composer nimbus nimbus:doctor

Switch the Laravel version ​

Terminal
composer switch:l10
composer switch:l11
composer switch:l12
composer switch:l13

Each script updates Testbench and the related packages to that Laravel major. Run composer test:parallel afterward. Do not commit an accidental composer.lock change. See PHP and Laravel support.