# 5-Minute AI Agent & Developer Quickstart Welcome to **Valstorm Developer Documentation** — covering both **Valstorm Cloud** and **Open Valstorm (COSS)**. Valstorm is built around a **single 1:1 mental model (`PlatformContext`)** shared across: 1. **In-Process Server Triggers & Functions** (`platform.records`, `platform.query`, `platform.vfs`, `platform.`) 2. **Python Client SDK (`valstorm-client`)** (`client.records`, `client.query`, `client.vfs`, `client.schemas`) 3. **Native Go Worker (`apps/open-worker/pkg/platform`)** (`platformCtx.ForOrg(orgID, userID).Records.*`) 4. **Model Context Protocol (`valstorm-mcp-server`)** & **Agent Runtime (`vsagent`)** --- ## ⚡ Step 1: Teach Your AI Agent Valstorm in 10 Seconds Whether you use **Valstorm Agent (`vsagent`)**, **Claude Code**, **Cursor**, or **Windsurf**, point your agent to our machine-readable skill and corpus endpoints: | Resource | URL | Purpose | | :--- | :--- | :--- | | **Agent Skill Ruleset (`SKILL.md`)** | [`/SKILL.md`](/SKILL.md) | Complete coding rules: `PlatformContext` syntax, ANSI SQL macros, Base62 IDs, plain-string lookup rules, and plugin patterns. Drop into `CLAUDE.md` or `.cursorrules`. | | **LLM Index (`llms.txt`)** | [`/llms.txt`](/llms.txt) | Structured index of all guides, 20 plugins, 41 core schemas, and 416 API operations. | | **Full Corpus (`llms-full.txt`)** | [`/llms-full.txt`](/llms-full.txt) | Single-file concatenated Markdown of the entire Open Valstorm developer documentation. | | **Unified OpenAPI 3.1 Spec** | [`/openapi.json`](/openapi.json) | Merged OpenAPI 3.1 JSON across `open-api` (Python :8010), `open-worker` (Go :8080), `open-agent-runtime` (:8660), and `open-web-scraper` (:8661). | ```bash # Download the Valstorm Developer Skill directly into your repo for Claude Code / Cursor / vsagent curl -fsSL https://developers.valstorm.com/SKILL.md -o VALSTORM_SKILL.md ``` --- ## ☁️ Option A: Start on Valstorm Cloud (Zero Infrastructure) 1. **Generate a Personal Access Token (PAT)** (`vst_pat_...`) or **Service Key** (`vst_sk_...`) in your Valstorm Workspace Settings. 2. **Connect via MCP Server (`valstorm-mcp-server`):** ```json { "mcpServers": { "valstorm": { "url": "https://mcp.valstorm.com/mcp", "headers": { "Authorization": "Bearer vst_pat_your_token_here" } } } } ``` 3. **Or install the Python SDK (`valstorm-client`) & CLI (`valstorm`):** ```bash uv add "valstorm-client @ git+https://github.com/Valstorm-Corp/valstorm-client-python.git" uv tool install git+https://github.com/Valstorm-Corp/valstorm-cli ``` --- ## 🐳 Option B: Self-Host Open Valstorm (COSS Docker Stack) Open Valstorm consolidates MongoDB, Qdrant, and ClickHouse into **PostgreSQL 16 + `pgvector`** with ** dedicated database-per-tenant isolation** (`CREATE DATABASE org_xyz`) and **Valkey 7.2**. ```bash # 1. Start the full 1:1 Open Valstorm stack docker compose -f docker-compose.open.yaml up -d # 2. Seed the central directory DB, Admin Org, Support User, and Client Workspace cd apps/open-api uv sync uv run python app/seed.py ``` ### The 8-Container 1:1 Open Valstorm Topology (`docker-compose.open.yaml`) | Service | Port | Runtime | Role | | :--- | :--- | :--- | :--- | | **`open-postgres`** | `:5432` | `pgvector:pg16` | Central `valstorm_directory` DB + isolated per-tenant databases (`org_*`), `pgvector` + `tsvector` hybrid RRF search, and unified `log` telemetry. | | **`open-valkey`** | `:6379` | `valkey:7.2` | L1 schema/session cache, WebSocket Pub/Sub channels, and background task queues (`default`, `low`, `critical`, `video`). | | **`open-api`** | `:8010` | Python 3.13 (FastAPI) | Core REST & GraphQL API, `sqlglot` ANSI SQL compiler, dynamic DDL compiler, PyMuPDF engine, and Python plugin routers (`DISABLE_BACKGROUND_WORKER=true`). | | **`open-worker`** | `:8080` | Go 1.23 (`pgx/v5`) | Real-time WebSocket Hub (`/v1/ws/*`), CUD broadcaster, Cron Scheduler, `valstorm:queue:critical` consumer, Fleet DDL deployer, and Go plugins. | | **`open-worker-p1`** | — | Python 3.13 | Dedicated high-priority background worker (`valstorm:queue:default`, concurrency 50). | | **`open-worker-p2`** | — | Python 3.13 | Dedicated low-priority & scheduled-item worker (`valstorm:queue:low`, concurrency 25). | | **`open-agent-runtime`** | `:8660` | Python 3.13 | Stateful multi-turn Cloud ReAct Agent Runtime (`/v1/runs` + SSE streaming). | | **`open-web-scraper`** | `:8661` | Python 3.14 (`zstd`) | 3-Tier Waterfall Web Scraper (HTTP/2 -> Stealth Playwright Chromium -> Firecrawl) + domain crawler & Postgres `zstd` diff engine. | | **`open-video-worker`** | `:8089` | Python + FFmpeg | Asynchronous FFmpeg H.264 MP4 transcoder, thumbnail extractor, and Deepgram/AI video chapter processor (`valstorm:queue:video`). |