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
Discovery paused on authentication
If discovery enters a paused/auth-blocked state:
- Capture auth state (
raiken authorraiken discover --auth) - Continue discovery (
raiken discover --continue) - Confirm runtime phase changes from
pausedtorunningin the dashboard
Discovery timeout or incomplete crawl
- Increase timeout via CLI:
raiken discover --timeout 60000 - Or set project defaults in
raiken.config.jsonunderdiscovery - Check
excludePatternsandmaxDepthif expected pages are missing
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 | Confirmed |
| Dev server running | Confirmed |
| Playwright browsers installed | Confirmed |
| Auth state captured (if needed) | Confirmed |
| Discovery runtime phase healthy | Confirmed |