Documentation Index
Fetch the complete documentation index at: https://docs.kaireonai.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
| Dependency | Version | Required |
|---|---|---|
| Node.js | 22+ | Yes |
| PostgreSQL | 14+ | Yes |
| Python | 3.11+ | No (for ML Worker) |
| Redis | 6+ | No (recommended) |
Install PostgreSQL
- macOS
- Ubuntu/Debian
- Docker
Install Redis (Optional)
KaireonAI uses Redis for enrichment data caching and API rate limiting. Without it, the platform runs fine but skips these features.- macOS
- Ubuntu/Debian
- Docker
Platform Setup
Initialize the database
- Email:
admin@kaireonai.com - Password:
admin123
Start the development server
ML Worker Setup (Optional)
The ML Worker provides scikit-learn-based analysis for AI features. It’s optional — all AI features fall back to LLM-based analysis without it.Docker Compose (Full Stack)
Run the entire stack with Docker Compose instead of installing each dependency:The ML Worker includes a health check (
/health endpoint) that Docker monitors automatically. If the worker becomes unhealthy, Docker will restart it. You can check its status with docker compose ps.Verify Installation
After signing in, check the home dashboard — you should see cards for Decision Flows, Offers, Channels, etc. all at zero counts. To load demo content, go to Settings → Sample Data and load the Starbucks Offers dataset. This will populate the platform with schemas, offers, channels, models, and creatives.Running Tests
Troubleshooting
Prisma 7: 'The datasource property url is no longer supported'
Prisma 7: 'The datasource property url is no longer supported'
Prisma 7 moved the connection URL out of
schema.prisma and into prisma.config.ts. If you see this error, remove the url = env("DATABASE_URL") line from prisma/schema.prisma. The datasource block should only contain provider = "postgresql". The connection URL is configured in prisma.config.ts.Port 3000 already in use
Port 3000 already in use
Another process is using port 3000. Find and stop it:Alternatively, start on a different port:
Redis connection refused (optional dependency)
Redis connection refused (optional dependency)
Redis is optional for local development. If Redis is not running, the platform skips enrichment caching, rate limiting, and circuit breaker features but otherwise works normally. To suppress connection warnings, remove
REDIS_URL from your .env file. To install Redis, see the Install Redis section above.npx prisma generate fails with 'Cannot find module'
npx prisma generate fails with 'Cannot find module'
Ensure you are running commands from the
platform/ directory (not the repo root). The Prisma 7 config expects prisma.config.ts in the working directory:NEXTAUTH_SECRET warning in development
NEXTAUTH_SECRET warning in development
The platform warns if
NEXTAUTH_SECRET is not set in development. Auth features (login, session management) will not work correctly without it. Add any random string to your .env:Next Steps
Platform Walkthrough
Build a complete decisioning setup step by step.
Cloud Deployment
Ready for production? Deploy to AWS App Runner.
Kubernetes
Deploy to any Kubernetes cluster using the Helm chart.
ML Worker
Add the Python ML Worker for AI-powered analysis.