Repository navigation
Architecture
Generated from
docs/architecture/README.mdat04c936e32790. Edit the source, not this page -- the next merge to main overwrites any change here.
Last Updated: 2025-12-13
This document provides a high-level overview of the AutoBot platform architecture and serves as the central navigation hub for all architecture documentation.
AutoBot is an AI-powered automation platform built on a distributed, role-based architecture. It runs in Docker, on a single VM, or across any number of machines an operator scales to — see VM_ROLES.md for the role definitions. The system provides:
- Multi-LLM Chat Interface - Intelligent conversation with multiple AI models
- Knowledge Base - Vectorized document storage and retrieval
- Workflow Automation - Automated task execution and orchestration
- Multi-Modal AI - Image, voice, and desktop interaction
- Browser Automation - Web scraping and automation via Playwright
graph TB
User[User Browser] --> Frontend[Frontend role<br/><frontend-ip>:5173]
Frontend --> Backend[Backend role<br/><backend-ip>:8443]
Backend --> Redis[Database role: Redis Stack<br/><database-ip>:6379]
Backend --> AI[AI Stack role<br/><aiml-ip>:8080]
Backend --> NPU[NPU Worker role<br/><npu-ip>:8081]
Backend --> Browser[Browser role<br/><browser-ip>:3000]
Backend --> Desktop[Backend role: VNC Desktop<br/><backend-ip>:6080]
Example placement for a fully distributed deployment; a co-located deployment runs every role on one host instead. See VM_ROLES.md.
| Role | Example Host | Services | Purpose |
|---|---|---|---|
| Backend | Backend API (8001), VNC (6080) | Core API, desktop automation | |
| Frontend | Vite (5173) | Web interface (single source) | |
| NPU Worker | NPU API (8081) | Hardware-accelerated AI | |
| Database (Redis) | Redis Stack (6379) | Data persistence, caching | |
| AI Stack | Ollama (8080) | LLM inference, embeddings | |
| Browser | Playwright (3000) | Web automation |
Hosts shown are illustrative; each role can be co-located with any other on one machine or placed on its own host, in any combination the deployment needs.
Key architectural decisions are documented in ADRs. See docs/adr/ for the complete index.
| ADR | Decision | Status |
|---|---|---|
| ADR-001 | Distributed VM Architecture (historical, fixed count) | Superseded by ADR-010 |
| ADR-002 | Redis Database Separation | Accepted |
| ADR-003 | NPU Hardware Acceleration | Accepted |
| ADR-004 | Chat Workflow Architecture | Accepted |
| ADR-005 | Single Frontend Server | Accepted |
| ADR-010 | Role Separation with Count-Agnostic Placement | Accepted |
- Python 3.14 - Core backend language
- FastAPI - REST API framework
- Redis Stack - Data layer (cache, vectors, queues)
- LlamaIndex - RAG and knowledge base
- OpenVINO - NPU model optimization
- Vue 3 - UI framework
- TypeScript - Type-safe JavaScript
- Vite - Build tool and dev server
- Tailwind CSS - Styling
- Ollama - Local LLM inference
- OpenAI API - Cloud LLM (fallback)
- ChromaDB - Vector storage (code analysis)
- Intel NPU - Hardware acceleration
- Hypervisor-agnostic - runs on any supported hypervisor or bare metal (VirtualBox, VMware, Hyper-V, KVM, WSL2); requires only a supported OS + hardware
- Docker - Containerization (optional)
- Playwright - Browser automation
- noVNC - Desktop streaming
| Document | Description |
|---|---|
| VM_ROLES.md | Role definitions, ports, and count-agnostic placement |
| DISTRIBUTED_ARCHITECTURE.md | Canonical distributed architecture (roles, not a VM count) |
| VISUAL_ARCHITECTURE.md | Architecture diagrams |
| AGENT_SYSTEM_ARCHITECTURE.md | Agent system design |
| Document | Description |
|---|---|
| REDIS_SERVICE_MANAGEMENT_ARCHITECTURE.md | Redis management |
| AUTOBOT_MEMORY_GRAPH_ARCHITECTURE.md | Memory graph system |
| VECTOR_STORE_MIGRATION.md | Vector store design |
| Document | Description |
|---|---|
| auth.md | Authentication and RBAC architecture |
| SECURITY_ASSESSMENT_WORKFLOW.md | Security assessment workflow |
| Document | Description |
|---|---|
| TERMINAL_ARCHITECTURE_DISTRIBUTED.md | Terminal integration |
| LONG_RUNNING_OPERATIONS_ARCHITECTURE.md | Long-running tasks |
| Document | Description |
|---|---|
| INDEX.md | Code vectorization index |
| CODE_VECTORIZATION_ARCHITECTURE.md | Vectorization system |
| CODE_VECTORIZATION_DATA_FLOWS.md | Data flow diagrams |
| Document | Description |
|---|---|
| NPU_WORKER_ARCHITECTURE.json | NPU worker design |
| Docker_Architecture_Documentation.md | Docker setup |
| Kubernetes_Migration_Strategy.md | K8s future plans |
| Scaling_Roadmap_and_Architecture_Evolution.md | Scaling strategy |
# Backend API
curl http://localhost:8001/api/health
# Frontend
curl http://<frontend-ip>:5173
# Redis
redis-cli -h <database-ip> ping
# Ollama
curl http://<aiml-ip>:8080/api/tags| File | Purpose |
|---|---|
scripts/start-services.sh |
CLI service wrapper (replaces deprecated run_autobot.sh) |
.env |
Environment variables |
backend/core/config.py |
Backend configuration |
autobot-frontend/vite.config.ts |
Frontend configuration |
- Single Frontend - Only the designated frontend host runs the frontend server
- Edit Locally - Never edit directly on remote hosts
- Sync Changes - Use sync scripts after edits
-
Named Databases - Use
get_redis_client(database="name")
Author: mrveiss Copyright: © 2025 mrveiss