Your infrastructure.
Your rules.
Run the full Rare Agents platform on your own servers. Keep all data in-house, meet compliance requirements, and customise everything — backed by Rare Agents' AI infrastructure.
Complete data sovereignty
All conversations, vault data, and agent configurations live on your own servers. Nothing is stored on Rare Agents' cloud. Ideal for GDPR, HIPAA, or any strict data residency requirement.
Full source code access
You get the complete codebase. Audit every line, customise the UI, add your own integrations, or extend the platform however you need. No black boxes.
Your brand, your domain
Run it at ai.yourcompany.com with your logo and colors. Team and Enterprise licenses support custom branding. Enterprise includes full white-label with no Rare Agents references.
How the license works
Three things happening together — your server, your data, our AI.
Buy a license
Purchase a Developer, Team, or Enterprise license. You receive a unique license key in the format RA-XXXX-XXXX-XXXX-XXXX and the complete source code.
Run it on your server
Follow our setup guide to deploy on your own infrastructure — a VPS, cloud VM, or on-premise server. Your license key is set as an environment variable and validates automatically.
AI stays powerful
Chat, image generation, and voice transcription route through Rare Agents' hosted AI infrastructure using your token allowance. Your actual data (messages, vault, agents) never leaves your server.
Self-Hosted Pricing
Annual billing saves 20%. All plans include 12 months of updates.
Developer
Perfect for solo builders
Billed $948/year · Save $216
Team
Built for growing teams
Billed $2,964/year · Save $600
Enterprise
Full control at scale
System Requirements
CPU
2+ vCPUs
4+ recommended for AI crew
Memory
2 GB RAM
4 GB recommended
Node.js
Node.js 20+
npm 10+
Python
Python 3.11+
for CrewAI multi-agent features
Database
PostgreSQL 15+
or Neon (hosted)
Setup Guide
Choose your preferred deployment method.
1. Create a .env file with your variables (see below), then save this as docker-compose.yml:
version: "3.9"
services:
app:
image: rareagents/platform:latest
restart: unless-stopped
ports:
- "3000:5000"
environment:
NODE_ENV: production
DATABASE_URL: ${DATABASE_URL}
RAREAGENTS_LICENSE_KEY: ${RAREAGENTS_LICENSE_KEY}
SESSION_SECRET: ${SESSION_SECRET}
COOKIE_SECRET: ${COOKIE_SECRET}
ENCRYPTION_MASTER_KEY: ${ENCRYPTION_MASTER_KEY}
CHUTES_API_KEY: ${CHUTES_API_KEY}
APP_URL: https://your-domain.com
depends_on:
- db
db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: rareagents
POSTGRES_USER: rareagents
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata:2. Start everything:
docker compose up -d
3. Open your browser and go to http://localhost:3000
Updating to a new version:
docker compose pull docker compose up -d
Environment Variables
Create a .env file in the project root with these variables. Required ones must be set — the app will refuse to start without them.
DATABASE_URLRequiredPostgreSQL connection string (e.g. postgres://user:pass@localhost:5432/rareagents)
RAREAGENTS_LICENSE_KEYRequiredYour license key — format: RA-XXXX-XXXX-XXXX-XXXX. Get this after purchase.
SESSION_SECRETRequiredRandom 32+ character string used to sign sessions. Generate with: openssl rand -hex 32
COOKIE_SECRETRequiredAnother random 32+ character string for cookie signing.
ENCRYPTION_MASTER_KEYRequired32-byte hex key for vault encryption. Generate with: openssl rand -hex 32
CHUTES_API_KEYRequiredYour Rare Agents AI API key — provided with your license. Powers all AI inference.
HF_API_TOKENOptionalHuggingFace token — enables audio transcription (Whisper) and image generation (FLUX).
REPLICATE_API_TOKENOptionalReplicate token — enables video generation.
PINATA_JWTOptionalPinata IPFS token — enables storing generated images on IPFS.
APP_URLOptionalPublic URL of your deployment, e.g. https://ai.yourcompany.com — used in email links.
How License Validation Works
Startup check
When the app starts, it sends your RAREAGENTS_LICENSE_KEY to https://api.rareagents.ai/api/validate-license. The response confirms it's valid and tells the app your tier and seat count.
Periodic re-validation
The app re-validates every 24 hours. The result is cached locally, so a temporary network blip won't interrupt your users.
Grace period
If validation fails (e.g. server unreachable), the app allows up to 7 days before disabling AI features. This prevents downtime from internet outages. All other data remains accessible.
What's validated vs. what stays local
Only your license key and validation request travel to Rare Agents. Your messages, vault data, agents, and user data never leave your server during validation.
Frequently asked questions
Ready to self-host?
Contact us to get your license key, source code, and onboarding support. We'll have you running in under an hour.