# Tech stack

Every language, framework, library, model, database and tool AgenticMind is built with, and what each is used for.

Source: https://glamorous-boar.cloudvent.net/tech-stack/

---

## At a glance

| Layer | Technology |
|---|---|
| Languages | **Python 3.11+** (backend, runtime, nodes), **TypeScript** (strict, web IDE) |
| Backend | **FastAPI** + **Uvicorn**, **Pydantic 2**, **SQLAlchemy 2** |
| Frontend | **React 18**, **React Flow** (`@xyflow/react` 12), **Vite 5**, **Tailwind CSS 3** |
| Storage | **SQLite** (default) or **PostgreSQL** (psycopg 3); local artifact store on disk |
| Packaging | **uv** workspace (Python, `hatchling` builds), **npm** workspace |
| Testing | **pytest** (+ pytest-asyncio), **Vitest**, `tsc` type checking, **ruff** linting |
| CI | GitHub Actions (ruff, pytest, typecheck, Vitest, web build) |
| Containers | Docker (multi-stage: Node 22 builds the IDE, Python 3.11 slim runs the API), Docker Compose |
| Licence | MIT |

## Backend packages and their libraries

| Package | Key dependencies | Used for |
|---|---|---|
| `agenticmind-ir` | Pydantic | IR models, JSON Schema, canonical JSON, migrations |
| `agenticmind-node-sdk` | Pydantic | Node contracts, typed config, test helpers, `agenticmind-node` CLI |
| `agenticmind-registry` | importlib entry points | Node discovery, versions, trust |
| `agenticmind-runtime` | Pydantic; `mcp` + `jsonschema` (extra) | Engine, validation, CLI, MCP server builder |
| `agenticmind-providers` | **httpx**, **anthropic** SDK; **fastembed** (extra) | Chat and embedding providers, streaming |
| `agenticmind-vectorstores` | **qdrant-client**; extras: chromadb, faiss-cpu + numpy, lancedb + pyarrow, psycopg (pgvector), pinecone, pymilvus, weaviate-client, pymongo, redis; httpx for Elasticsearch/OpenSearch | 12 vector stores |
| `agenticmind-compiler` | **ruff** | IR → FastAPI project generation, formatting and linting the output |
| `agenticmind-deployment` | PyYAML | Compose, Kustomize and Cloud Run manifests, plans |
| `agenticmind-plugins` | jsonschema | Wheel inspection, isolated workers |
| `agenticmind-evaluation` | Pydantic | Datasets, evaluators, judges, comparison |
| `agenticmind-observability` | **opentelemetry-proto**, httpx | OTLP protobuf/JSON export, Prometheus text |
| `agenticmind-sandbox` | (stdlib) + Docker | Code execution |
| `agenticmind-git` | httpx | GitHub REST (Git Data API) |
| `agenticmind-api` | FastAPI, Uvicorn, SQLAlchemy, python-multipart, python-dotenv, **cryptography** (AES-GCM secrets) | The control plane |

## Node packages and their libraries

| Package | Libraries | Nodes |
|---|---|---|
| `agenticmind-nodes-core` | jsonschema, sandbox | Inputs, transforms, control, LLM, Model Router, Classifier, Summarizer, guardrails, triggers, Human Approval, Code |
| `agenticmind-nodes-data` | **pypdf**, **python-docx**; extras **rapidocr** + **onnxruntime** + **Pillow** (OCR), **boto3** (S3); stdlib `zipfile`/`xml.etree` for XLSX/PPTX/EPUB | Loaders, cleaner, OCR, S3 |
| `agenticmind-nodes-rag` | providers, vectorstores | Chunking, embeddings, indexing, retrieval, reranking, context, citations |
| `agenticmind-nodes-agents` | jsonschema, **tzdata**, **mcp**, sandbox | Agent, tools, reasoning, memory, MCP |
| `agenticmind-nodes-semantic` | **sqlglot** (pinned 30.29.0), httpx; extras psycopg, PyMySQL, pymssql, snowflake-connector-python, duckdb, cryptography (BigQuery JWT) | Databases, NL-to-SQL, Auto Ontology |

## Models used by default

| Purpose | Default | Where it runs |
|---|---|---|
| Chat / agents / Wingman | `google/gemini-3.8-flash` via OpenRouter | API |
| Model Router classifier | `google/gemini-3.1-flash-lite` | API |
| Embeddings | `BAAI/bge-small-en-v1.5` (fastembed, ONNX) | Local CPU |
| Reranking | `Xenova/ms-marco-MiniLM-L-6-v2` cross-encoder (fastembed) | Local CPU |
| OCR | RapidOCR (PaddleOCR models on ONNX Runtime) | Local CPU |
| Tests and offline demos | Mock provider, hash embeddings | Local |

## Protocols and standards

| Standard | Where |
|---|---|
| JSON Schema (Draft 2020-12) | IR schema, node config schemas, tool arguments, Output Guard |
| OpenAPI 3.1 | Exported apps |
| Server-Sent Events | Run event and token streams |
| Model Context Protocol (Streamable HTTP, stdio) | MCP client and server |
| OpenTelemetry (OTLP/HTTP, GenAI semantic conventions) | Trace export |
| Prometheus text format | `/api/metrics` |
| OpenAI Chat Completions format | Most providers, tool calling |
| Git Data API | GitHub sync |
| Cron | Schedule triggers |

## Integrations

- **Model providers:** OpenRouter, OpenAI, Anthropic, Google Gemini, Azure OpenAI, Amazon Bedrock, Mistral, Groq, DeepSeek, Together, xAI, Hugging Face, Ollama, any OpenAI-compatible server.
- **Vector databases:** Qdrant, Chroma, FAISS, LanceDB, pgvector, Pinecone, Milvus/Zilliz, Weaviate, Elasticsearch, OpenSearch, MongoDB Atlas, Redis.
- **SQL engines:** SQLite, DuckDB/MotherDuck, PostgreSQL (Supabase, Neon, RDS), MySQL/MariaDB, SQL Server/Azure SQL, Snowflake, Databricks, ClickHouse, BigQuery.
- **Storage:** Amazon S3, MinIO, Cloudflare R2, Wasabi, other S3-compatible.
- **Channels:** Slack, Telegram, WhatsApp Cloud API, email (IMAP/SMTP), webhooks, Redis Streams, Amazon SQS.
- **Observability:** OTel Collector, Jaeger, Grafana Tempo, Honeycomb, Datadog, Langfuse, Arize Phoenix, Prometheus/Grafana.
- **Semantic layer:** NVIDIA Auto Ontology.
- **Version control:** GitHub, GitHub Enterprise.
- **Deployment targets:** Docker, Docker Compose, Kubernetes (Kustomize), Google Cloud Run, AWS ECS Fargate, Azure Container Apps, Vercel (checks).

## Why these choices

- **Pydantic everywhere**: one source of truth for validation and JSON Schema, which drives the IDE's forms.
- **FastAPI**: async, typed, OpenAPI out of the box; the generated apps use it too.
- **SQLAlchemy + SQLite default**: zero-setup local use, PostgreSQL for scale, same code.
- **React Flow**: a mature node-graph canvas.
- **uv workspace**: fast, reproducible installs of 19 interdependent packages.
- **Local defaults** (fastembed, embedded Qdrant, RapidOCR, Ollama): AgenticMind works offline after the first model download.

## This documentation site

Built with **Astro** from the [Stratus documentation template](https://github.com/CloudCannon/stratus-astro-documentation-template), MDX content, Pagefind search, Mermaid diagrams and Shiki highlighting, deployed as a static site on Vercel. The node reference is generated from the AgenticMind registry.
