Troubleshooting
Missing API key
If you see an error about OPENROUTER_API_KEY:
- Set
OPENROUTER_API_KEYin your.env - Or set
ai.apiKeyinraiken.config.json
Playwright browsers not installed
If tests fail to launch a browser:
npx playwright installPort already in use
Start Raiken on a different port:
raiken start -p 7200Empty or slow test generation
- Make sure your app is running locally
- Provide a more specific prompt
- Check network access for the model provider
Rebuild local state
If project structure changed significantly:
- Delete
.raiken/and runraiken initagain
Example error output
ERROR: No API key found. Set OPENROUTER_API_KEY in your environment.ERROR: Failed to connect to http://localhost:7101 (connection refused).Status checklist
| Check | Status |
|---|---|
| API key configured | Pending |
| Dev server running | Pending |
| Playwright browsers installed | Pending |