This repository contains the configuration needed to deploy Kodus in your own infrastructure.
- Docker
- Docker Compose
- Git
./scripts/install.sh
For a full walkthrough on deploying, check out our docs: https://docs.kodus.io/how_to_deploy/en/deploy_kodus/generic_vm
Upgrading from 1.x? See MIGRATION.md.
If you use Claude Code, you can run an interactive installation that walks you through every configuration option, generates secrets automatically, and verifies the deployment at the end.
npx skills add kodustech/kodus-installer@kodus-installThen inside Claude Code, run:
/kodus-install
If you already have PostgreSQL/MongoDB or RabbitMQ, you can disable the local containers and point Kodus to the external services.
Example .env:
USE_LOCAL_DB=false
USE_LOCAL_RABBITMQ=false
API_PG_DB_HOST=your-postgres-host
API_PG_DB_PORT=5432
API_MG_DB_HOST=your-mongodb-host
API_MG_DB_PORT=27017
API_RABBITMQ_URI=amqp://user:pass@your-rabbitmq-host:5672/kodus-aiWhen set to false, the installer skips starting local services and related health checks.
Start with the doctor script to pinpoint common setup issues: ./scripts/doctor.sh
Common fixes:
- Docker daemon not running:
docker info - Ports already in use:
3000,3001,3101,3332,5432,9140,27017,5672,15672,15692 .envmissing or invalid: copy.env.exampleand fill required vars- RabbitMQ connection errors: ensure
API_RABBITMQ_URImatchesRABBITMQ_DEFAULT_USER,RABBITMQ_DEFAULT_PASS, and vhostkodus-ai - Database errors: confirm Postgres/Mongo credentials, then rerun
./scripts/setup-db.sh - Service crash or boot loop: check logs with
docker compose logs -f api(orworker,webhooks,rabbitmq)
flowchart LR
user((User)) --> web[kodus-web]
web --> api[api]
web --> webhooks[webhooks]
api --> mcp[kodus-mcp-manager]
api --> rabbitmq[(rabbitmq)]
worker[worker] --> rabbitmq
api --> pg[(db_kodus_postgres)]
api --> mongo[(db_kodus_mongodb)]
mcp --> pg
webhooks --> pg
webhooks --> mongo
- kodus-web: Application frontend
- api: Application API
- worker: Background jobs
- webhooks: Webhooks service
- kodus-mcp-manager: MCP manager service
- rabbitmq: Message broker
- db_kodus_postgres: PostgreSQL database
- db_kodus_mongodb: MongoDB database
- migration: One-off migrations runner
- prometheus: Monitoring system
- grafana: Metrics visualization dashboard
- All credentials are managed through environment variables
- Secure inter-service communication
- Container isolation
- Dedicated Docker networks
Contributions are always welcome! Please read the contribution guidelines before submitting a pull request.
- Fork the project
- Create your Feature Branch (
git checkout -b feat/amazing-feature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feat/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support, email support@kodus.io or open an issue in the repository.
