Skip to main content

One command to generate a production-ready AI/ML backend โ€” LLM, RAG, Voice, Vision, Emotion, Agents, ML Training, Computer Vision, Edge AI & more

Project description

One Click AI Spark Banner

๐Ÿค– One Click AI Spark ๐Ÿš€

One Click AI Spark is a powerful CLI tool that generates production-ready AI backend projects in seconds โ€” powered by FastAPI, with built-in LLM integration, RAG pipelines, voice, vision, emotion detection, AI agents, ML training (PyTorch, TensorFlow, scikit-learn, XGBoost, LightGBM), computer vision (YOLO, SAM2, OCR, face detection, image generation), edge AI (ONNX, TensorRT, quantization), LLM fine-tuning (LoRA/QLoRA), AI guardrails (PII, content filter, prompt injection), conversational analytics (Text-to-SQL), Docker, CI/CD, IaC, and full observability.

PyPI version Python versions License GitHub Stars

๐Ÿ› ๏ธ Technology Stack

Python FastAPI OpenAI Docker Terraform Ansible GitHub Actions Prometheus Grafana Redis PostgreSQL PyTorch TensorFlow scikit-learn ONNX Ultralytics Hugging Face Ollama

โญ Star us on GitHub โ€” your support motivates us a lot! ๐Ÿ™๐Ÿ˜Š

Follow Mohammad Asif Khan Share on LinkedIn


โšก Stop copy-pasting boilerplate. Start building what matters. โšก

๐ŸŒŸ The Story Behind One Click AI Spark

Every time a new AI project starts, I see the same cycle โ€” developers lose days reinventing the same infrastructure:

  • Provider Headaches: Writing LLM client wrappers for OpenAI, Anthropic, Google, Groq โ€” over and over.
  • RAG Nightmares: Stitching together document ingestion, chunking, embedding, vector stores, and retrieval from scratch.
  • Multimodal Chaos: Integrating STT, TTS, vision, and emotion detection with no standard structure.
  • Infrastructure Fatigue: Manually setting up Dockerfiles, CI/CD pipelines, Terraform configs, Prometheus dashboards โ€” before writing a single line of AI logic.
  • Confidence Gap: After hours of wiring, nobody is 100% sure the architecture is production-ready.

One Click AI was born to eliminate this. It generates a battle-tested, modular AI backend in seconds โ€” with every integration wired up, every best practice baked in, and every deployment tool ready to go. No more boilerplate, no more forgotten configs โ€” just one command to start building real AI applications.

๐Ÿš€ What You Get with ocd-ai

When you run ocd-ai init, you don't just get a folder โ€” you get a complete AI production environment:

  • ๐Ÿง  Multi-Provider LLM: Pre-configured clients for OpenAI, Anthropic, Google, Groq, Grok, Cohere, Mistral, and Ollama โ€” swap providers with a config change.
  • ๐Ÿ“š RAG Pipeline: Full document ingestion โ†’ smart chunking โ†’ embedding โ†’ vector retrieval โ†’ LLM generation pipeline, ready to go.
  • ๐ŸŽค Voice & Audio: Whisper/Deepgram STT + OpenAI/ElevenLabs TTS + real-time voice-to-voice conversation.
  • ๐Ÿ‘๏ธ Vision & Emotion: Image/video analysis (GPT-4o, Claude, Gemini) + emotion detection (Hume AI + LLM fallback).
  • ๐Ÿค– AI Agents: ReAct-style agents with built-in tool use and web search (Tavily, Serper, DuckDuckGo).
  • ๐Ÿง  Memory: Short-term (in-context) + long-term (persistent) conversation memory with session management.
  • โšก Streaming: SSE + WebSocket streaming for real-time responses.
  • ๐Ÿณ Docker Ready: Multi-stage Dockerfiles + docker-compose for dev and production with Nginx reverse proxy.
  • โš™๏ธ CI/CD (GitHub Actions): Pre-configured workflows for testing, linting, and automated deployment.
  • ๐Ÿ—๏ธ Infrastructure as Code: Terraform templates for AWS + Ansible playbooks for server configuration.
  • ๐Ÿ“Š Monitoring & Observability: Prometheus metrics + Grafana dashboards + alerting rules โ€” all pre-configured.
  • ๐Ÿ“Š Vector Store Flexibility: Choose from FAISS, Pinecone, Qdrant, Weaviate, ChromaDB, Milvus, or pgvector.
  • ๐Ÿ”’ Standard .gitignore & .env: Pre-configured environment files with secrets management best practices.
  • ๐Ÿš€ GitHub Integration: Auto-initializes a git repo and pushes to a new GitHub repository in one go.
  • ๐Ÿ”ฌ ML Training Pipelines: PyTorch, TensorFlow, scikit-learn, XGBoost, LightGBM โ€” with trainers, predictors, feature engineering, model registry, and experiment tracking (MLflow/W&B).
  • ๐Ÿ–ผ๏ธ Computer Vision: YOLO (object detection), SAM2 (segmentation), EasyOCR/Tesseract (OCR), face detection/recognition, Stable Diffusion (image generation).
  • โšก Edge AI Deployment: ONNX Runtime, TensorRT conversion, INT8 quantization, model optimization, benchmarking.
  • ๐Ÿ”ง LLM Fine-Tuning: LoRA/QLoRA fine-tuning with PEFT + Transformers, merge & export for deployment.
  • ๐Ÿ›ก๏ธ AI Guardrails: Content safety (Detoxify), PII detection/anonymization (Presidio), prompt injection defense, audit logging.
  • ๐Ÿ“Š Conversational Analytics: Natural language โ†’ SQL (Text-to-SQL), auto-chart generation (Plotly), report builder.
  • ๐Ÿ  Ollama Local Deployment: Self-hosted LLM inference via Ollama in docker-compose.
  • ๐Ÿš€ One-Command Deploy: Deploy to AWS ECS, Google Cloud Run, Azure Container Apps, DigitalOcean, Railway, Fly.io, Render, or any VPS โ€” with ocd-ai deploy.

โœจ Feature Matrix

Feature Description
๐Ÿง  LLM Chat Multi-provider support (OpenAI, Anthropic, Google, Groq, Grok, Cohere, Mistral, Ollama)
๐Ÿ“š RAG Pipeline Document ingestion โ†’ chunking โ†’ embedding โ†’ retrieval โ†’ generation
๐ŸŽค Voice (STT/TTS) Speech-to-Text (Whisper, Deepgram) + Text-to-Speech (OpenAI, ElevenLabs)
๐Ÿ—ฃ๏ธ Voice-to-Voice Real-time audio conversation pipeline
๐Ÿ‘๏ธ Vision Image & video analysis with GPT-4o, Claude, Gemini
๐Ÿ˜Š Emotion Detection Audio/text emotion analysis (Hume AI + LLM fallback)
๐Ÿ” Web Search Internet search (Tavily, Serper, DuckDuckGo) with LLM summarization
๐Ÿค– AI Agents ReAct-style agents with tool use
๐Ÿง  Memory Short-term + long-term conversation memory
โšก Streaming SSE + WebSocket streaming responses
๐Ÿ” Sessions Persistent session management (Redis-backed)
๐Ÿ“Š Vector Stores FAISS, Pinecone, Qdrant, Weaviate, ChromaDB, Milvus, pgvector
๐Ÿณ Docker Production + dev Dockerfiles, docker-compose, Nginx
๐Ÿ”„ CI/CD GitHub Actions (test, lint, deploy)
๐Ÿ—๏ธ IaC Terraform (AWS) + Ansible server configuration
๐Ÿ“ˆ Monitoring Prometheus + Grafana + alerts
๐Ÿ”ฌ ML Training PyTorch, TensorFlow, scikit-learn, XGBoost, LightGBM pipelines
๐Ÿ–ผ๏ธ Computer Vision YOLO detection, SAM2 segmentation, OCR, face detection, image generation
โšก Edge AI ONNX Runtime, TensorRT, INT8 quantization, model benchmarking
๐Ÿ”ง Fine-Tuning LoRA/QLoRA fine-tuning with PEFT + Transformers
๐Ÿงช MLOps MLflow + Weights & Biases experiment tracking
๐Ÿ›ก๏ธ Guardrails Content filter (Detoxify), PII detection (Presidio), prompt injection defense
๐Ÿ“Š Analytics Text-to-SQL, auto-chart generation (Plotly), report builder
๐Ÿ  Ollama Local LLM deployment via docker-compose
๐ŸŽฏ GPU Support CUDA-accelerated training, mixed precision (FP16/BF16)
๐Ÿ“‹ Audit Logging Full AI interaction audit trail for compliance
๐Ÿš€ One-Command Deploy Deploy to AWS, GCP, Azure, DigitalOcean, Railway, Fly.io, Render, or VPS

๐Ÿ“ฆ Installation

Since one-click-ai is a CLI tool, it is recommended to install it globally using uv:

uv tool install one-click-ai

If your system doesn't have uv yet, follow the installation guide here.

Alternatively, you can use pip:

pip install one-click-ai

๐Ÿš€ Usage

Initialize a Full AI Project (everything enabled)

ocd-ai init my-ai-project --all

This creates a new folder my-ai-project with a complete production-ready AI backend.

Initialize in the Current Directory

ocd-ai init .

๐Ÿค– Chatbot (LLM Only)

ocd-ai init my-chatbot --llm-only --openai --docker

๐Ÿ“š RAG Application

ocd-ai init my-rag-app --rag --openai --faiss --docker --ci-cd

๐ŸŽค Voice Assistant

ocd-ai init my-voice-app --voice --voice-to-voice --openai --streaming --docker

๐Ÿ‘๏ธ Vision + Emotion Analysis

ocd-ai init my-vision-app --vision --emotion --openai --google --docker

๐Ÿค– AI Agent with Search & Memory

ocd-ai init my-agent --agents --search --memory --openai --streaming --docker --ci-cd

๐Ÿš€ Full Multi-Provider Stack

ocd-ai init my-enterprise-app \
    --rag --agents --search --memory --streaming --voice --vision --emotion \
    --openai --anthropic --google --groq \
    --faiss --qdrant \
    --postgres --redis \
    --docker --ci-cd --iac --monitoring

๐Ÿ”ฌ ML Training Pipeline

ocd-ai init my-ml-project --ml-training --pytorch --sklearn --xgboost --mlops --docker

๐Ÿ–ผ๏ธ Computer Vision

ocd-ai init my-cv-project --computer-vision --yolo --sam --ocr --face-detection --gpu --docker

๐Ÿ”ง LLM Fine-Tuning (LoRA/QLoRA)

ocd-ai init my-finetune --fine-tuning --pytorch --gpu --mlops --docker

โšก Edge AI Deployment

ocd-ai init my-edge-project --edge-ai --onnx --tensorrt --quantization --docker

๐Ÿ›ก๏ธ AI Guardrails

ocd-ai init my-safe-ai --guardrails --openai --rag --docker

๐Ÿ“Š Conversational Analytics

ocd-ai init my-analytics --analytics --openai --docker

๐Ÿ–ผ๏ธ Image Generation

ocd-ai init my-image-gen --computer-vision --image-gen --gpu --docker

๐Ÿš€ One-Command Deploy

Every generated project includes a deploy.py and deploy.sh that supports 8 deployment platforms out of the box:

# Deploy to any platform (interactive wizard if no platform specified)
ocd-ai deploy

# Direct deploy to a specific platform
ocd-ai deploy aws           # AWS ECS (Fargate)
ocd-ai deploy gcp           # Google Cloud Run
ocd-ai deploy azure         # Azure Container Apps
ocd-ai deploy digitalocean  # DigitalOcean App Platform
ocd-ai deploy railway       # Railway
ocd-ai deploy fly           # Fly.io
ocd-ai deploy render        # Render
ocd-ai deploy vps           # Any VPS via SSH + Docker

# Build & push Docker image before deploying
ocd-ai deploy aws --build --push

๐ŸŽ›๏ธ CLI Flags

Feature Flags

Flag Description
--all Enable every feature, provider, vector store, database, and infrastructure option
--llm-only Just LLM chat (no RAG, voice, vision, etc.)
--rag RAG pipeline (ingestion, chunking, embedding, retrieval, generation)
--voice Speech-to-Text + Text-to-Speech
--voice-to-voice Voice conversation (implies --voice + --streaming)
--vision Image/video analysis
--emotion Emotion detection (audio + text)
--search Web search with LLM summarization
--agents ReAct-style AI agents with tool use
--memory Short-term + long-term conversation memory
--streaming SSE + WebSocket streaming
--session Redis-backed session management

LLM Providers

Flag Provider
--openai OpenAI (GPT-4o, GPT-4, GPT-3.5)
--anthropic Anthropic (Claude 3.5, Claude 3)
--google Google (Gemini Pro, Gemini Flash)
--groq Groq (Llama, Mixtral โ€” ultra-fast inference)
--grok xAI Grok
--cohere Cohere (Command R+)
--mistral Mistral AI (Mistral Large, Mixtral)
--ollama Ollama (local models โ€” Llama, Mistral, etc.)
--all-providers Enable all providers

Vector Stores

Flag Store
--faiss Facebook AI Similarity Search (local, fast)
--pinecone Pinecone (managed, scalable)
--qdrant Qdrant (open-source, feature-rich)
--weaviate Weaviate (hybrid search)
--chroma ChromaDB (lightweight, embedded)
--milvus Milvus (distributed, GPU-accelerated)
--pgvector pgvector (PostgreSQL extension)

Databases

Flag Database
--postgres PostgreSQL (primary relational database)
--mongodb MongoDB (document store)
--redis Redis (caching, sessions, pub/sub)
--all-databases Enable all databases

Infrastructure

Flag Description
--docker Dockerfiles + docker-compose (dev & prod) + Nginx
--ci-cd GitHub Actions workflows (test, lint, deploy)
--iac Terraform (AWS) + Ansible server configuration
--monitoring Prometheus + Grafana + alerting rules

ML / Training

Flag Description
--ml-training Full ML training pipeline (trainer, predictor, data loader, model registry)
--pytorch PyTorch models (MLP, CNN, LSTM, Transformer)
--tensorflow TensorFlow/Keras models
--sklearn scikit-learn pipelines (Random Forest, SVM, Gradient Boosting, auto-select)
--xgboost XGBoost gradient boosting
--lightgbm LightGBM gradient boosting
--fine-tuning LLM fine-tuning with LoRA/QLoRA (PEFT + Transformers)
--gpu Enable CUDA/GPU, mixed precision (FP16/BF16)
--mlops MLflow + Weights & Biases experiment tracking

Computer Vision

Flag Description
--computer-vision Computer vision module (inference, pre/post-processing)
--yolo YOLOv8/v11 object detection (Ultralytics)
--sam SAM2 image segmentation (Segment Anything)
--ocr OCR text extraction (EasyOCR + Tesseract)
--face-detection Face detection & recognition (face-recognition + MediaPipe)
--image-gen Text-to-image generation (Stable Diffusion / Diffusers)

Edge AI

Flag Description
--edge-ai Edge AI deployment module
--onnx ONNX model conversion + ONNX Runtime inference
--tensorrt TensorRT model optimization (NVIDIA)
--quantization INT8 quantization (ONNX + HuggingFace Optimum)

Advanced Features

Flag Description
--aggregator AI API aggregator pattern (multi-provider routing)
--analytics Conversational analytics (Text-to-SQL + charts + reports)
--guardrails AI safety (content filter, PII detection, prompt injection defense, audit)
--multi-tenant Multi-tenant architecture support
--ab-testing A/B testing framework for prompts/models
--ollama-serve Local Ollama deployment in docker-compose

๐Ÿ“ Generated Project Structure

my-ai-project/
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ app/
โ”‚   โ”‚   โ”œโ”€โ”€ main.py                 # FastAPI application entry point
โ”‚   โ”‚   โ”œโ”€โ”€ config.py               # Pydantic settings & environment config
โ”‚   โ”‚   โ”œโ”€โ”€ dependencies.py         # Dependency injection
โ”‚   โ”‚   โ”œโ”€โ”€ exceptions.py           # Custom exception handlers
โ”‚   โ”‚   โ”œโ”€โ”€ api/v1/                 # API routes (versioned)
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ health.py           # Health check endpoint
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ chat.py             # LLM chat endpoint
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ rag.py              # RAG query endpoint
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ documents.py        # Document upload/management
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ voice.py            # STT/TTS endpoints
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ websocket.py        # WebSocket streaming
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ vision.py           # Image/video analysis
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ emotion.py          # Emotion detection
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ search.py           # Web search
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ agents.py           # AI agent endpoint
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ sessions.py         # Session management
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ml.py               # ML training & prediction
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ cv.py               # Computer vision endpoints
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ edge.py             # Edge AI (convert, benchmark)
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ analytics.py        # Text-to-SQL & charts
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ guardrails.py       # AI safety endpoints
โ”‚   โ”‚   โ”œโ”€โ”€ core/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ai/                 # LLM clients + provider factory
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ providers/      # OpenAI, Anthropic, Google, etc.
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ llm_client.py   # Base LLM interface
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ embeddings.py   # Embedding generation
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ rag/                # RAG pipeline
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ingestion.py    # Document ingestion
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ chunking.py     # Smart text chunking
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ retriever.py    # Vector retrieval
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ pipeline.py     # End-to-end RAG
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ multimodal/         # Voice, vision, emotion
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ stt.py          # Speech-to-Text
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ tts.py          # Text-to-Speech
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ vision.py       # Vision analysis
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ emotion.py      # Emotion detection
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ agents/             # Agent framework
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ memory/             # Memory management
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ search/             # Web search
โ”‚   โ”‚   โ”œโ”€โ”€ ml/                     # ML training pipeline
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ trainer.py          # Unified trainer (PyTorch/sklearn/XGBoost)
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ predictor.py        # Model inference
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ data_loader.py      # Data loading & splitting
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ feature_engineering.py # Feature scaling, encoding
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ model_registry.py   # Model versioning & promotion
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ evaluation.py       # Metrics (accuracy, F1, RMSE)
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ experiment.py       # MLflow/W&B tracking
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ pytorch_models.py   # MLP, CNN, LSTM, Transformer
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ sklearn_models.py   # RF, SVM, GB, auto-select
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ tf_models.py        # Keras models
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ fine_tuning.py      # LoRA/QLoRA fine-tuning
โ”‚   โ”‚   โ”œโ”€โ”€ cv/                     # Computer vision
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ inference.py        # Unified CV pipeline
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ preprocessing.py    # Resize, normalize, augment
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ postprocessing.py   # NMS, drawing, formatting
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ yolo_detector.py    # YOLOv8/v11 detection
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ sam_segmenter.py    # SAM2 segmentation
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ocr_engine.py       # EasyOCR + Tesseract
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ face_detector.py    # Face detection/recognition
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ image_generator.py  # Stable Diffusion generation
โ”‚   โ”‚   โ”œโ”€โ”€ edge/                   # Edge AI deployment
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ converter.py        # PyTorchโ†’ONNXโ†’TensorRT
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ optimizer.py        # Quantization, pruning
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ runtime.py          # ONNX Runtime inference
โ”‚   โ”‚   โ”œโ”€โ”€ analytics/              # Conversational analytics
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ text_to_sql.py      # NLโ†’SQL engine
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ chart_gen.py        # Plotly chart generation
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ report.py           # HTML report builder
โ”‚   โ”‚   โ”œโ”€โ”€ guardrails/             # AI safety
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ content_filter.py   # Toxicity detection (Detoxify)
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ pii_detector.py     # PII detection (Presidio)
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ prompt_injection.py # Injection defense
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ audit_logger.py     # Compliance audit trail
โ”‚   โ”‚   โ”œโ”€โ”€ services/               # Business logic layer
โ”‚   โ”‚   โ”œโ”€โ”€ models/                 # Pydantic schemas & enums
โ”‚   โ”‚   โ”œโ”€โ”€ db/                     # Database connections
โ”‚   โ”‚   โ””โ”€โ”€ utils/                  # Logger, security, helpers
โ”‚   โ”œโ”€โ”€ tests/                      # Test suite
โ”‚   โ”œโ”€โ”€ vector_stores/              # Vector store implementations
โ”‚   โ”œโ”€โ”€ middleware/                  # Error handling, rate limiting, logging
โ”‚   โ”œโ”€โ”€ Dockerfile                  # Production Dockerfile
โ”‚   โ”œโ”€โ”€ Dockerfile.dev              # Development Dockerfile
โ”‚   โ”œโ”€โ”€ .env                        # Environment variables
โ”‚   โ””โ”€โ”€ .env.example                # Environment template
โ”œโ”€โ”€ docker-compose.dev.yml          # Development orchestration
โ”œโ”€โ”€ docker-compose.prod.yml         # Production orchestration
โ”œโ”€โ”€ nginx/
โ”‚   โ””โ”€โ”€ nginx.conf                  # Reverse proxy configuration
โ”œโ”€โ”€ .github/
โ”‚   โ””โ”€โ”€ workflows/
โ”‚       โ”œโ”€โ”€ test.yml                # CI testing
โ”‚       โ”œโ”€โ”€ lint.yml                # Code linting
โ”‚       โ””โ”€โ”€ deploy.yml              # Deployment pipeline
โ”œโ”€โ”€ infra/
โ”‚   โ”œโ”€โ”€ terraform/                  # AWS infrastructure
โ”‚   โ””โ”€โ”€ ansible/                    # Server configuration
โ”œโ”€โ”€ monitoring/
โ”‚   โ”œโ”€โ”€ prometheus.yml              # Metrics collection
โ”‚   โ”œโ”€โ”€ alerts.yml                  # Alert rules
โ”‚   โ””โ”€โ”€ grafana_dashboard.json      # Pre-built dashboards
โ”œโ”€โ”€ scripts/
โ”‚   โ”œโ”€โ”€ start.sh                    # Application launcher
โ”‚   โ””โ”€โ”€ health_check.py             # Health check script
โ”œโ”€โ”€ models/                         # Trained model storage
โ”‚   โ”œโ”€โ”€ checkpoints/                # Training checkpoints
โ”‚   โ””โ”€โ”€ exported/                   # Production-ready models
โ”œโ”€โ”€ datasets/                       # Training data
โ”‚   โ”œโ”€โ”€ raw/                        # Raw datasets
โ”‚   โ””โ”€โ”€ processed/                  # Processed features
โ”œโ”€โ”€ experiments/                    # MLflow/W&B experiment logs
โ”œโ”€โ”€ Makefile                        # Common commands
โ”œโ”€โ”€ deploy.py                       # Cross-platform deploy script (Python)
โ”œโ”€โ”€ deploy.sh                       # Deploy script (Bash)
โ”œโ”€โ”€ .gitignore                      # Git ignore rules
โ””โ”€โ”€ DEVELOPMENT_GUIDE.md            # Getting started guide

๐Ÿš€ Built for the Future (Extensibility)

This structure is intentionally designed for scaling into a full-stack or microservices architecture:

  • Full-Stack Ready: Need a frontend? Add a frontend/ folder (React, Next.js, Streamlit, Gradio) at the root.
  • Microservices Ready: Plug in other services like ml-training/, data-pipeline/, or notification-service/ alongside the backend.
  • Multi-Model Ready: Each AI provider is isolated behind a factory pattern โ€” adding a new provider is one file.
  • ML/CV Pipeline Ready: Training, inference, and edge deployment modules are fully isolated and can scale independently.
  • Simplified Orchestration: New services integrate into the root docker-compose.yml and CI/CD pipelines seamlessly.
  • Guardrails by Default: Content safety, PII protection, and prompt injection defense can be applied to any endpoint.

๐Ÿ”ง Tech Stack

Category Technologies
Framework FastAPI โ‰ฅ 0.115
Runtime Python โ‰ฅ 3.11, uvicorn
Package Manager uv
Validation Pydantic v2, pydantic-settings
LLM Providers OpenAI, Anthropic, Google, Groq, Grok, Cohere, Mistral, Ollama, DeepSeek, Meta
Vector Stores FAISS, Pinecone, Qdrant, Weaviate, ChromaDB, Milvus, pgvector, LanceDB
Voice Whisper, Deepgram, whisper-local (STT) ยท OpenAI TTS, ElevenLabs, Bark (TTS)
Vision GPT-4.1, Claude Opus 4, Gemini 2.5 Pro Vision
Emotion Hume AI, Affectiva, LLM-based fallback
Search Tavily, Serper, DuckDuckGo
ML Frameworks PyTorch, TensorFlow/Keras, scikit-learn, XGBoost, LightGBM
Computer Vision YOLO (Ultralytics), SAM2, EasyOCR, Tesseract, face-recognition, MediaPipe, Diffusers
Edge AI ONNX, ONNX Runtime, TensorRT, HuggingFace Optimum
Fine-Tuning PEFT (LoRA/QLoRA), Transformers, TRL, bitsandbytes
MLOps MLflow, Weights & Biases
Guardrails Detoxify, Presidio (PII), custom prompt injection defense
Analytics SQLAlchemy, sqlparse, Plotly
Databases PostgreSQL, MongoDB, Redis
Containers Docker + docker-compose + Nginx
CI/CD GitHub Actions
IaC Terraform (AWS) + Ansible
Monitoring Prometheus + Grafana + Alertmanager

โš™๏ธ Configuration

On first run, ocd-ai will ask for your GitHub username, DockerHub username, default LLM provider, and default vector store. These are saved in ~/.config/one-click-ai/config.toml so you never have to type them again.

You can reset your configuration at any time by editing or deleting the config file.

๐Ÿค Contributing

We welcome contributions! Here's how to get started:

  1. Fork the repository
  2. Clone your fork: git clone https://github.com/your-username/one-click-ai.git
  3. Install dependencies: uv sync or pip install -e .
  4. Create a branch: git checkout -b feature/my-feature
  5. Make your changes โ€” add generators in src/one_click_ai/generator.py or new templates in src/one_click_ai/templates/
  6. Test locally: ocd-ai init test-project --all
  7. Submit a Pull Request ๐ŸŽ‰

See CONTRIBUTING.md for detailed guidelines.

๐Ÿ‘จโ€๐Ÿ’ป Author

Mohammad Asif Khan

๐Ÿ“„ License

This project is licensed under the MIT License โ€” see the LICENSE file for details.


Made with โค๏ธ for the AI developer community
Back to Top โฌ†

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

one_click_ai_spark-0.3.1.tar.gz (120.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

one_click_ai_spark-0.3.1-py3-none-any.whl (181.0 kB view details)

Uploaded Python 3

File details

Details for the file one_click_ai_spark-0.3.1.tar.gz.

File metadata

  • Download URL: one_click_ai_spark-0.3.1.tar.gz
  • Upload date:
  • Size: 120.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for one_click_ai_spark-0.3.1.tar.gz
Algorithm Hash digest
SHA256 4b5932fa821a8fcc3161dd3f3c8e7fde0d5416fc31a1f8a3b516592c71858e32
MD5 d9697e6f7956dbf691d40762aec838e1
BLAKE2b-256 288f99a9aa82c6ac463052884ed102525f4baf833adb58772a3c44095d9610eb

See more details on using hashes here.

File details

Details for the file one_click_ai_spark-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for one_click_ai_spark-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7a01ac8a1a1fe701e9c87882eef6eec8b33fd7c9e19f23a4596668aa792a3a4
MD5 1c33cc22172f4ca1b645ef92974c7cf9
BLAKE2b-256 71e5deecb7699dc2329be1e329fc0e569a11d9f1cdbfa0fd63c9e021fd7a29b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page