Self-Hosted

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.

01

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.

02

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.

03

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.

MonthlyAnnualSave 20%

Developer

Perfect for solo builders

$79/month

Billed $948/year · Save $216

Full platform — all features included
1 user seat
50,000 AI tokens/month via Rare Agents API
All agent tools (web search, vault, media generation)
Automatic security updates for 12 months
Community Discord support
Get Developer License
Most Popular

Team

Built for growing teams

$247/month

Billed $2,964/year · Save $600

Full platform — all features included
Up to 10 user seats
500,000 AI tokens/month via Rare Agents API
Social Media Agent & advanced tools
Custom branding (logo + colors)
Priority email support (24h response)
Automatic security updates for 12 months
Get Team License

Enterprise

Full control at scale

Contact us
Full platform — all features included
Unlimited user seats
10M+ AI tokens/month — custom limits available
White-label: your domain, logo, and colors
Dedicated Slack support channel
99.9% uptime SLA
Custom integrations & onboarding
Security updates for 12 months + renewals
Contact Sales
Licenses renew annually. AI tokens are consumed through Rare Agents' hosted inference infrastructure — additional token top-ups are available if you exceed your monthly allowance. Licenses are non-transferable and cannot be resold. See our Terms of Service.

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.

Docker is the fastest way to get started. It handles all dependencies and keeps your install isolated and easy to update.

1. Create a .env file with your variables (see below), then save this as docker-compose.yml:

yaml
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:

bash
docker compose up -d

3. Open your browser and go to http://localhost:3000

Updating to a new version:

bash
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_URLRequired

PostgreSQL connection string (e.g. postgres://user:pass@localhost:5432/rareagents)

RAREAGENTS_LICENSE_KEYRequired

Your license key — format: RA-XXXX-XXXX-XXXX-XXXX. Get this after purchase.

SESSION_SECRETRequired

Random 32+ character string used to sign sessions. Generate with: openssl rand -hex 32

COOKIE_SECRETRequired

Another random 32+ character string for cookie signing.

ENCRYPTION_MASTER_KEYRequired

32-byte hex key for vault encryption. Generate with: openssl rand -hex 32

CHUTES_API_KEYRequired

Your Rare Agents AI API key — provided with your license. Powers all AI inference.

HF_API_TOKENOptional

HuggingFace token — enables audio transcription (Whisper) and image generation (FLUX).

REPLICATE_API_TOKENOptional

Replicate token — enables video generation.

PINATA_JWTOptional

Pinata IPFS token — enables storing generated images on IPFS.

APP_URLOptional

Public 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.