π Patent Pending - US Application #64/000,114
Spatial Intelligence System with Self-Evolving App Ecosystem
A sovereign, self-sustaining AI platform powered by user-provided models.
π¦ Vex Core (Infrastructure)
βββββ π Atlas (Travel Agent)
βββββ π Peach (Social Assistant)
βββ πΈ Bloom (Wellness Coach)
βββ π¦ Vault (Finance Manager)
Vex is not just a tool; it is a marketplace.
70% Revenue Share: Builders keep the lion's share of subscription revenue.
BYOK (Bring Your Own Key): We operate on a sovereign model. Users/Builders provide their own API keys (OpenAI, Anthropic, DeepSeek).
Benefit: We don't tax your intelligence.
Benefit: You optimize your own margins by selecting efficient models.
Inheritance: New apps can "extend" existing apps, inheriting their capabilities and tools.
"Does this feature cause brain damage?" "It should. That's how they learn."
Vex operates on a counterintuitive principle: friction is not failure, it's feedback.
Small errors, navigation dead-ends, and user corrections aren't bugsβthey're essential signals for organic growth. Our multi-agent ecosystem (Chrry, Vex, Grape, Pear, Sushi) doesn't compete; it specializes and cooperates, creating a closed-loop learning economy.
What users love most: RAG + Knowledge Graph. Upload documents, and watch the system build connections you didn't know existed. The "brain damage" becomes neural pathways.
The future isn't a hierarchy of AIs; it's an ecology.
π€ Model Agnostic: First-class support for OpenAI, Claude, DeepSeek, Gemini, and Perplexity.
π API Key Support:
- Official Providers: Bring your own API keys for OpenAI, Anthropic, DeepSeek, Google (Gemini), and Perplexity
- OpenRouter: Single API key for access to all models with unified billing
- Coming Soon: Custom OpenAI-compatible endpoints (LocalLLM, Ollama, vLLM) and per-app API keys
π§ Vector Memory: Smart context management that persists across sessions.
π RAG (Retrieval-Augmented Generation): Upload documents (PDF, images, video) and chat with your files using hybrid vector + graph search.
πΈοΈ Knowledge Graph: FalkorDB-powered entity extraction and relationship mapping for advanced context understanding.
π Multi-App PWA: The only open-source implementation of dynamic manifest injection.
π Privacy First: User-controlled keys mean user-controlled data. Burn mode for incognito conversations.
β‘ Real-Time: WebSocket-powered collaboration and streaming.
π₯ Sato Dojo: AI-powered mutation testing system where agents learn through code strikes
- Students (Coder agents): Strike code, gain XP, level up
- Senseis (Architect agents): Strategic high-value mutations
- Organic Learning: System learns from failures, improves mutation quality
- Integration Ready: BAM (bug detection), STRIKE (mutation engine), Memory (learning system)
Run Vex entirely on your local machine with Docker. No cloud dependencies required.
# Clone and install
git clone https://github.com/chrryai/vex.git
cd vex
pnpm install
# Start local infrastructure (PostgreSQL, Redis, MinIO, FalkorDB, Mailhog)
pnpm local:setup
# Add your API keys to .env.local
# OPENAI_API_KEY=sk-...
# Start development
pnpm dev:allThat's it! Everything runs locally. See SELF_HOSTING.md for full guide.
Prerequisites:
- Node.js 18+
- pnpm 9+
- PostgreSQL 14+ (with
pgvectorextension) - FalkorDB (for Knowledge Graph RAG)
git clone https://github.com/chrryai/vex.git
cd vex
pnpm install
Environment Setup
Bash
# Generates necessary .env files from templates
pnpm run setup:env
Edit the .env files to add your DB_URL and OPENAI_API_KEY (or set VITE_TESTING_ENV='e2e' for mock mode).
Database Initialization
**PostgreSQL + pgvector:**
Bash
# Install pgvector extension
psql -d your_database -c "CREATE EXTENSION IF NOT EXISTS vector;"
# Run migrations
cd packages/db
pnpm run generate # Generate Drizzle artifacts
pnpm run migrate # Push to Postgres
pnpm run seed # Populate default apps
cd ../..
**FalkorDB (Knowledge Graph):**
Bash
# Using Docker (recommended)
docker run -p 6379:6379 -it --rm falkordb/falkordb:latest
# Or install locally via Homebrew (macOS)
brew tap FalkorDB/falkordb
brew install falkordb
# Add to .env
FALKORDB_URL=redis://localhost:6379
FALKORDB_GRAPH_NAME=vex_knowledge_graph
Launch
Bash
pnpm run dev:all
Web App: http://localhost:3000
Marketing/API: http://localhost:3001
ποΈ Architecture
Vex is a modern monorepo built for scale and separation of concerns.
Stack:
Frontend: Vite, React 19
Backend: Bun, Hono, WebSocket Server
Data: PostgreSQL (pgvector), FalkorDB (Knowledge Graph), Drizzle ORM, Redis (Upstash)
State: React Context + Server Actions
Project Structure:
Plaintext
vex/
βββ apps/
β βββ api/ # Core API & Marketing (Hono, Port 3001)
β βββ flash/ # Main PWA (Vite + React, Port 5173)
β βββ mobile/ # React Native (Expo)
β βββ extension/ # Browser Extension (Chrome/Firefox)
β βββ browser/ # Desktop App (Tauri)
βββ packages/
β βββ ui/ # Shared Design System (@chrryai/chrry)
β βββ db/ # Drizzle Schema & Migrations
β βββ pepper/ # Universal Routing Logic
β βββ waffles/ # E2E Testing (Playwright)
β βββ auth/ # Better Auth Configuration
β βββ calendar/ # Calendar Utilities
β βββ focus/ # Focus Mode Logic
β βββ shared/ # Shared Utilities
β βββ cache/ # Caching Layer
β βββ typescript-config/ # Shared TypeScript Config
β βββ eslint-config/ # Shared ESLint Config
βββ scripts/ # DevOps & Automation
## βοΈ License & Attribution
License: AGPL-3.0. Use it, learn from it, but if you distribute it, share your changes.
Icons: This project uses premium icons from Wannathis.
Note: If you fork this project for commercial use, you must purchase your own license for these assets or replace them.
Support: Issues β’ Email β’ Twitter
## Support The Project
Vex is built entirely open source by a solo developer, pioneering a new economic model for AI. If you find value in this platform, support it directly by **buying credits** at [vex.chrry.ai](https://vex.chrry.ai).
No sponsors. No middlemen. Just users supporting the product they use.
## π One Codebase, Unlimited Apps
Vex introduces a breakthrough **Polymorphic PWA, Web, Extension, Desktop, Mobile Architecture** with **Spatial Navigation**. It enables a single codebase to spawn infinite, independent applications on a user's device.
### π§ Spatial Navigation System
Apps exist in a 3D coordinate system:
- **X-Axis (Apps)**: Navigate between apps (Vex β Atlas β Bloom)
- **Y-Axis (Stores)**: Navigate between domains/stores (chrry.ai β vex.chrry.ai β atlas.chrry.ai)
- **Z-Axis (Depth)**: Navigate into code structure (/ β /.sushi β /.sushi/mutations)
**Examples:**
- `chrry.ai` β Blossom store, Chrry app
- `vex.chrry.ai` β LifeOS store, Vex app
- `atlas.chrry.ai` β Compass store, Atlas app
- `chrry.ai/atlas` β Blossom store, Atlas app (different context!)
- `vex.chrry.ai/.sushi` β LifeOS store, Vex app, Sato Dojo depth
### ποΈ Architecture Features
π± **Dynamic Manifest Generation**: The server generates unique PWA manifests on the fly (/api/manifest/[id]).
π **Context Switching**: The app detects which "personality" (Atlas, Bloom, Vault) it should adopt based on the install context.
𧬠**App Inheritance**: Apps extend parent apps (FightClub extends Popcorn extends Chrry), inheriting features and tools.
π² **Native-Grade Experience**: Each app installs separately with its own name, icon, theme, and memory, despite running on shared infrastructure.