Running KaireonAI yourself is an Enterprise offering under a commercial license. Source and image access is provisioned as part of an Enterprise agreement — this is not a free or open download. Contact sales. To evaluate the platform at no cost, use the hosted Playground.
Prerequisites
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
1
Clone and install
2
Create .env file
.env:3
Initialize the database
- Email:
admin@kaireonai.com - Password:
admin123
4
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.1
Set up environment
ml-worker/.env to match your local database:2
Install Python dependencies
3
Start the ML Worker
4
Connect the platform
Add to Restart the Next.js dev server. The AI > Insights page should show “ML Worker Connected”.
platform/.env:Docker Compose (Full Stack)
Run the entire stack with Docker Compose instead of installing each dependency. Thedocker-compose.yml lives at the repository root:
npx prisma db push --skip-generate to sync the schema, then starts the server.
The ML Worker includes a health check (
/health on port 8000) that Docker runs on a schedule. Check its reported status — healthy, unhealthy, or starting — 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 Retail Rewards 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.