Quick Start
Get RivetOS running in under 5 minutes. Two paths: Docker (recommended) or bare-metal.
Prerequisites
Section titled “Prerequisites”| Requirement | Version | Check |
|---|---|---|
| Node.js | ≥ 24 | node --version |
| npm | ≥ 10 | npm --version |
| Git | any | git --version |
| Docker (optional) | ≥ 24 | docker --version |
Note:
npm installautomatically builds all packages via postinstall. No separate build step needed.
Option A: Interactive Setup (Recommended)
Section titled “Option A: Interactive Setup (Recommended)”The rivetos init wizard walks you through everything — deployment target, agent configuration, API keys, channels, and generates your config automatically.
git clone https://github.com/philbert440/rivetOS.gitcd rivetOSnpm installnpx rivetos initThe wizard will:
- Detect your environment — Docker available? Proxmox? How much memory?
- Choose deployment target — Docker (recommended), Proxmox, or manual
- Configure agents — pick a provider, enter your API key, choose a model
- Configure channels — Discord, Telegram, voice (Discord voice), terminal, or API-only
- Review and deploy — summary of your choices, then one-click deploy
After the wizard completes, your agent is running.
Option B: Docker (Manual)
Section titled “Option B: Docker (Manual)”1. Clone and install
Section titled “1. Clone and install”git clone https://github.com/philbert440/rivetOS.gitcd rivetOSnpm install2. Create your config
Section titled “2. Create your config”cp config.example.yaml config.yamlEdit config.yaml with your settings:
runtime: workspace: ~/.rivetos/workspace default_agent: myagent
agents: myagent: provider: anthropic
providers: anthropic: model: claude-sonnet-4-6 max_tokens: 8192
channels: discord: channel_bindings: "YOUR_CHANNEL_ID": myagent
memory: postgres: # Connection string is set via RIVETOS_PG_URL env var3. Set up secrets
Section titled “3. Set up secrets”cp .env.example .envEdit .env:
ANTHROPIC_API_KEY=sk-ant-...DISCORD_BOT_TOKEN=...RIVETOS_PG_URL=postgresql://rivetos:rivetos@localhost:5432/rivetosSecurity: Never put API keys in
config.yaml. Always use.envor environment variables.
4. Build and run with Docker
Section titled “4. Build and run with Docker”The unified Compose stack lives at infra/docker/rivetos/docker-compose.yml. You can either pass -f every time, or set COMPOSE_FILE once:
# (optional) so plain `docker compose ...` finds the unified stackexport COMPOSE_FILE=infra/docker/rivetos/docker-compose.yml# Build container images from sourcenpx rivetos build
# Start everything (datahub + agent)docker compose -f infra/docker/rivetos/docker-compose.yml up -d
# Check statusnpx rivetos status
# View logsnpx rivetos logs --follow5. Verify
Section titled “5. Verify”# Run diagnosticsnpx rivetos doctor
# Run smoke testsnpx rivetos testOption C: Bare-Metal (No Docker)
Section titled “Option C: Bare-Metal (No Docker)”Run RivetOS directly on your machine. You’ll need PostgreSQL running separately.
1. Clone and install
Section titled “1. Clone and install”git clone https://github.com/philbert440/rivetOS.gitcd rivetOSnpm install2. Set up PostgreSQL
Section titled “2. Set up PostgreSQL”RivetOS needs PostgreSQL 16+ with the pgvector extension.
# Ubuntu/Debiansudo apt install postgresql-16 postgresql-16-pgvector
# macOS (Homebrew)brew install postgresql@16brew install pgvector
# Create databasecreatedb rivetospsql rivetos -c "CREATE EXTENSION IF NOT EXISTS vector;"3. Create config and secrets
Section titled “3. Create config and secrets”cp config.example.yaml config.yamlcp .env.example .envEdit both files as described in Option B, steps 2-3.
4. Create workspace
Section titled “4. Create workspace”mkdir -p ~/.rivetos/workspace/memoryAdd your workspace files (templates ship under workspace-templates/ in the repo — rivetos init copies them in for you):
| File | Purpose | Required? |
|---|---|---|
~/.rivetos/workspace/CORE.md | Agent identity and personality | Yes |
~/.rivetos/workspace/USER.md | Who the agent is helping | Yes |
~/.rivetos/workspace/WORKSPACE.md | Operating rules and conventions | Yes |
~/.rivetos/workspace/MEMORY.md | Context index for the memory system | Optional |
~/.rivetos/workspace/CAPABILITIES.md | Extended tool/skill reference | Optional |
See the Workspace Files section below for details.
5. Start
Section titled “5. Start”npx rivetos start6. Install as a system service (optional)
Section titled “6. Install as a system service (optional)”# Generate a systemd unitnpx rivetos service init
# Start itnpx rivetos service startWorkspace Files
Section titled “Workspace Files”Workspace files are markdown documents injected into the agent’s system prompt. They define who the agent is and how it behaves.
Required Files
Section titled “Required Files”CORE.md — Agent identity, personality, values, and behavioral rules.
# CORE.md — Who You Are
You are a helpful AI assistant named Rivet.
## Working Style- Be direct and concise- Show your reasoning- Ask before making destructive changesUSER.md — Information about the person the agent is helping.
# USER.md — About Your Human
- **Name:** Phil- **Timezone:** America/New_York- **Preferences:** TypeScript, Next.js, direct communicationWORKSPACE.md — Operating rules, safety boundaries, and conventions.
# WORKSPACE.md — Operating Rules
## Safety- Don't delete files without asking- Don't send emails without approval- Keep secrets private
## Every Session1. Read CORE.md, USER.md, WORKSPACE.md2. Check recent memory files3. Get to workOptional Files
Section titled “Optional Files”MEMORY.md — A lightweight index into the memory system. The agent uses this to know what to search for.
CAPABILITIES.md — Extended reference for tools, skills, and infrastructure. Included in the system prompt for local models where token cost isn’t a concern.
HEARTBEAT.md — Instructions for periodic background tasks. Only injected during heartbeat turns, not regular conversation.
memory/YYYY-MM-DD.md — Daily notes. The agent reads recent daily notes for context continuity between sessions.
First Conversation
Section titled “First Conversation”Once your agent is running, talk to it through whichever channel you configured:
Discord: Send a message in a bound channel (one listed under channels.discord.channel_bindings).
Telegram: Message your bot directly, if you configured channels.telegram.
The agent HTTP channel (
POST /api/message) is an mTLS-authenticated endpoint for inter-agent / mesh delegation, not a casual chat API — it expects a{ fromAgent, message }envelope over HTTPS with client certs. See Mesh Networking.
Useful Commands
Section titled “Useful Commands”In any channel, you can use slash commands:
| Command | What it does |
|---|---|
/stop | Stop the current turn |
/interrupt [message] | Stop the current turn and send a new message |
/steer [message] | Inject guidance into the active turn |
/new | Start a fresh session (clears conversation history) |
/status | Show runtime status |
/model [provider] [model] | Show or switch the current model |
/think [level] | Set thinking depth: off, low, medium, high |
/reasoning | Toggle reasoning (thinking) visibility |
/tools | Toggle tool-call visibility |
/context | Show context-window stats |
/memory | Show memory system health and stats |
/clear | Clear queued messages |
/help | List available commands |
CLI Reference (Quick)
Section titled “CLI Reference (Quick)”# Setuprivetos init # Interactive setup wizardrivetos update # Pull latest, rebuild, re-symlink (add --mesh or --bare-metal)rivetos doctor # Health check (config, providers, connectivity)
# Runtimerivetos start [--config <path>] # Start the runtimerivetos stop # Stop the running instancerivetos status # Show runtime status and metrics
# Configurationrivetos config show|validate|edit|pathrivetos config init # Generate a default config.yaml
# Agents & modelsrivetos agent list|add|removerivetos model # Show providers + current modelsrivetos model <provider> <model> # Switch default model (persistent)
# Providersrivetos <provider> status # anthropic | xai | google | ollamarivetos ollama models # List local Ollama models
# Mesh (multi-node)rivetos mesh list|ping|statusrivetos mesh join <host> # Join an existing mesh via a seed noderivetos keys rotate|list|status # Manage mesh keys
# Memory & databaserivetos memory queue-status # Show graphile-worker job queuerivetos memory backfill-tool-synth # Enqueue historical tool calls for synthesisrivetos db migrate|status # Run / inspect schema migrations
# Containers & servicerivetos build # Build container images from sourcerivetos service init|start|stop|restart|status|logs
# Introspectionrivetos logs [--lines --follow --since --grep]rivetos test [--quick] # Smoke tests (config, provider, memory, tools)rivetos plugins listrivetos skills listNext Steps
Section titled “Next Steps”- Channel Setup — Connect to Discord, Telegram, voice, and agent-to-agent messaging
- Provider Setup — Configure Anthropic, xAI, Google, Ollama, vLLM, llama-server, and claude-cli
- Mesh Networking — Multi-node fleets with mTLS delegation
- Configuration Reference — Every config option explained
- Architecture — How the system works
- Plugins — How to write your own channel, provider, or tool
- Skills — How to write and share skills
- Deployment — Docker, Proxmox, multi-agent, networking
- Troubleshooting — Common issues and fixes
Quick Troubleshooting
Section titled “Quick Troubleshooting”Agent doesn’t respond?
- Run
npx rivetos doctorto check connectivity - Check
npx rivetos logsfor errors - Verify your API key is set in
.env
Docker containers won’t start?
- Run
docker compose -f infra/docker/rivetos/docker-compose.yml logs datahubto check PostgreSQL - Ensure port 5432 isn’t already in use
- Try
npx rivetos buildto rebuild images
Memory search returns nothing?
- Check PostgreSQL connection:
npx rivetos test --quick - Embeddings may still be processing — check
npx rivetos statusfor queue depth
Can’t find config?
- Default location:
./config.yamlor~/.rivetos/config.yaml - Override with:
npx rivetos start --config /path/to/config.yaml