Skip to content

federicopalma-pro/Stregatto-Production-Ready

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐱 Cheshire Cat AI - Production Ready Local

Cheshire Cat AI Docker Kubernetes Production

πŸš€ Enterprise-grade Cheshire Cat AI deployment that runs locally with cloud-level features


🎯 What is This?

A production-ready local deployment of Cheshire Cat AI that delivers enterprise-grade features without the complexity and costs of cloud infrastructure. Perfect for teams wanting professional AI capabilities while maintaining full control.


✨ Key Features

🏭 Production-Grade Architecture

  • 🐳 Docker Services:

    • NGINX: Powerful web server and reverse proxy for load balancing and SSL termination
    • CHESHIRECAT AI: Core AI system with advanced language capabilities and plugin architecture
    • QDRANT: High-performance vector database for semantic search and AI memory storage
  • ⎈ Kubernetes/Helm Options:

    • Static Manifests: Quick K3s deployment with predefined configurations
    • Helm Charts: Advanced templating with production-ready configurations and secrets management

⚑ Performance & Reliability

  • πŸ›‘οΈ Container Isolation & security
  • πŸ“ˆ Horizontal Scale Ready architecture
  • πŸ”„ Zero-Downtime Updates capability
  • πŸ’Ώ Persistent Storage with volume mounts
  • πŸš€ Sub-5ms Response Times for user queries

πŸš€ Quick Start

Prerequisites

  • 🐳 Docker & Docker Compose or Podman (version >= 5.4.2) OR
  • ☸️ K3s/Kubernetes cluster with kubectl configured OR
  • ⎈ Helm 3.0+ for advanced Kubernetes deployments
  • πŸ’» 4GB RAM minimum (8GB recommended)
  • πŸ”Œ 2 CPU cores minimum
  • πŸ› οΈ Make (usually pre-installed on Linux/macOS)

🎯 Super Quick Start (Recommended)

# Clone the repository
git clone https://github.com/federicopalma-pro/Stregatto-Production-Ready.git
cd Stregatto-Production-Ready

# 🐳 Docker deployment (one command!)
make docker-up

# ☸️ OR K3s deployment (one command!)
make k3s-deploy

# ⎈ OR Helm deployment (production-ready!)
helm install cheshire-cat helm/cheshire-cat --namespace cheshire-cat --create-namespace

βœ… That's it!

πŸ“‹ Available Commands

make help              # πŸ“š Show all available commands
make env               # πŸ”‘ Generate secure environment keys
make docker-up         # 🐳 Start Docker deployment  
make docker-down       # πŸ›‘ Stop Docker deployment
make k3s-deploy        # ☸️ Deploy to K3s/Kubernetes
make k3s-cleanup       # πŸ—‘οΈ Clean up K3s deployment
make k3s-status        # πŸ“Š Check K3s deployment status

⎈ Helm Deployment (Advanced)

For production environments, use our comprehensive Helm chart:

# Generate secure keys first
make env

# Quick deployment
helm install cheshire-cat helm/cheshire-cat --namespace cheshire-cat --create-namespace

# Production deployment with custom values
helm install cheshire-cat helm/cheshire-cat \
  -f helm/cheshire-cat/values-production.yaml \
  --namespace cheshire-cat-prod --create-namespace

# Upgrade existing deployment
helm upgrade cheshire-cat helm/cheshire-cat --namespace cheshire-cat

# Uninstall
helm uninstall cheshire-cat --namespace cheshire-cat

🎯 Why Helm?

  • βœ… Production-Ready: Advanced configuration options
  • βœ… Templating: Dynamic values and environment-specific configs
  • βœ… Versioning: Easy upgrades and rollbacks
  • βœ… Packaging: Distributable chart packages
  • βœ… Secrets Management: Secure handling of API keys and JWT tokens

πŸ“– View Helm Chart Documentation β†’

πŸ”§ Manual Installation (Alternative)

Click to expand manual installation steps

Docker Deployment

# Generate environment keys
scripts/generate-env.sh

# Start Docker services
cd docker && docker-compose up -d

K3s/Kubernetes Deployment

# Generate environment keys
scripts/generate-env.sh

# Deploy to K3s (static manifests)
scripts/k3s-deploy.sh

Helm Deployment

# Generate environment keys
scripts/generate-env.sh

# Deploy with Helm
cd helm/cheshire-cat
helm install cheshire-cat . --namespace cheshire-cat --create-namespace

πŸ” Automated Key Generation

We provide multiple ways to generate secure API keys and JWT secrets:

πŸ› οΈ Using Makefile (Recommended)

make env                # Generate secure environment keys

πŸš€ Direct Scripts

scripts/generate-env.sh     # Linux/macOS
powershell -ExecutionPolicy Bypass -File scripts/generate-env.ps1    # Windows (PowerShell)

πŸ“ Manual Setup (Alternative)

# Copy sample and edit manually
cp .env-sample .env
nano .env

πŸ”‘ What Gets Generated

  • JWT_SECRET (64 chars): For user authentication tokens
  • API_KEY (32 chars): For REST API authentication
  • API_KEY_WS (32 chars): For WebSocket connections
  • QDRANT_API_KEY (32 chars): For vector database access

All keys use cryptographically secure random generation with proper entropy.


βš™οΈ Architecture Overview

🌐 NGINX Reverse Proxy (Port 80 β†’ Load Balancer)
          β”‚
          β–Ό
🐱 Cheshire Cat Core (Python FastAPI Application)
  β”œβ”€β”€ 🧠 LLM Integration
  β”œβ”€β”€ πŸ“ Embedder Service
  β”œβ”€β”€ 🧩 Plugins System
  └── πŸ‘€ Auth Management
          β”‚
          β–Ό
πŸ’Ύ Data Layer
  β”œβ”€β”€ πŸ” Qdrant Vector DB
  β”œβ”€β”€ πŸ“ JSON Config
  β”œβ”€β”€ πŸ“„ Static Files
  └── 🧩 Plugins Storage

Made with ❀️ for the AI community

About

Production-ready local deployment of Cheshire Cat AI that delivers enterprise-grade features

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •