Getting Started
This guide walks through installing Raiken and generating your first test.
Prerequisites
- Node.js 18+
- A JavaScript or TypeScript project with a
package.json - A running dev server for the app you want to test
Install Raiken
Raiken can be installed globally, run via npx, or added as a dev dependency.
Global install:
npm install -g raikenRun once with npx:
npx raikenProject-local install:
npm install -D raikenVerify the install:
raiken --versionInitialize your project
From your project root:
raiken initThis will:
- Create
.raiken/for local state and the SQLite database - Create
raiken.config.json - Create
test-results/andtest-reports/ - Optionally generate
playwright.config.ts - Optionally generate an example test file
- Add scripts to
package.json
Sample CLI output
Detected framework: PlaywrightCreated .raiken/ workspaceWrote raiken.config.jsonReady to start: raiken startSetup checklist
- Make sure your app can run locally (dev server available).
- Set your AI API key (see below).
- Run
raiken initin the project root. - Install Playwright browsers if you plan to run tests.
- Start Raiken and open the dashboard.
Add your API key
Raiken uses OpenRouter by default. Set this in your environment:
OPENROUTER_API_KEY=your_key_hereYou can also set ai.apiKey inside raiken.config.json.
Install Playwright browsers (recommended)
If you selected Playwright and want to run tests locally:
npx playwright installStart Raiken
raiken startThe dashboard runs at:
http://localhost:7101Generate your first test
- Open the dashboard.
- Enter a prompt like the example above.
- Review the generated test.
- Save and run it from your test framework.