tribecodetribecode
    DocsPricingLogin
    Documentation

    Documentation

    • Getting Started
    • CLI Commands
    • TRIBE API UsageBeta
    • MUSENew
    • CIRCUITNew
    • Self-Hosting
      • Quick Start
      • Team Setup
    • API Reference
    • Analytics Dashboard
    • Privacy & Security
    • Troubleshooting
    1. Docs
    2. Self-Hosting
    3. Quick Start

    Self-Hosting Quick Start

    Set up tribecode for your team with complete privacy and control. All your AI analytics data stays on your own infrastructure.

    What You'll Set Up

    1. Database

    PostgreSQL for persistent storage (Supabase, NeonDB, or self-hosted)

    2. Server

    tribecode server running on your infrastructure

    3. Team Setup

    Each team member connects their CLI to your server

    Phase 1: Admin Setup

    One-time setup by the team admin or DevOps

    1

    Set Up Your Database

    tribecode requires a PostgreSQL database for persistent storage. Choose one of these options:

    Option A: Supabase (Easiest)

    1. 1. Go to supabase.com and create a free account
    2. 2. Create a new project
    3. 3. Go to Settings β†’ Database
    4. 4. Copy the Connection string (URI)
    postgresql://postgres.[project-ref]:[password]@aws-0-[region].pooler.supabase.com:6543/postgres

    Option B: NeonDB (Serverless PostgreSQL)

    1. 1. Go to neon.tech and create an account
    2. 2. Create a new project
    3. 3. Copy the connection string from the dashboard
    postgresql://[user]:[password]@[endpoint].neon.tech/neondb?sslmode=require

    Option C: Self-Hosted PostgreSQL

    Use your existing PostgreSQL server or deploy one with Docker:

    docker run -d --name tribe-postgres \ -e POSTGRES_USER=tribe \ -e POSTGRES_PASSWORD=your-secure-password \ -e POSTGRES_DB=tribe_analytics \ -p 5432:5432 \ postgres:15

    Connection string: postgresql://tribe:your-secure-password@localhost:5432/tribe_analytics

    πŸ“ Save your DATABASE_URL - you'll need it in the next step. This is also the key you'll distribute to team members who want to view the dashboard.

    2

    Install & Start the Server

    Install the tribecode CLI on your server machine:

    npx @_xtribe/cli@latest

    Configure your database connection:

    # Configure database (interactive) tribe server config set # Or set database directly: tribe server config database "postgresql://user:pass@host:5432/tribe_analytics" # Verify configuration tribe server status

    Start the server:

    # Start the server tribe server start # Check status tribe server status # View logs tribe server logs

    βœ… Success! Your server is now running. Test it: curl http://localhost:8080/api/health

    3

    Make Server Accessible to Your Team

    Your team members need to reach the server. Options:

    Option A: Internal Network

    If your team is on the same network, use the server's internal IP:

    http://192.168.1.100:8080

    Option B: Public URL with HTTPS (Recommended)

    Set up a reverse proxy (nginx, Caddy) with SSL for remote access:

    https://tribe.your-company.com

    Option C: Cloud Deployment

    Deploy on Railway, Render, Fly.io, or your cloud provider. Set the DATABASE_URL environment variable.

    πŸ“ Save your Server URL - this is what you'll share with team members.

    Phase 2: Team Member Setup

    Each team member follows these steps on their own machine

    4

    Install the tribecode CLI

    Each team member installs the CLI on their development machine:

    npx @_xtribe/cli@latest

    Requirements: Node.js 16+ with npm/npx. Works on Linux, macOS, and Windows.

    5

    Connect to Your Team's Server

    Configure the CLI to point to your team's self-hosted server:

    # Interactive configuration tribe config set # When prompted, enter your team's server URL: # Dashboard URL: https://tribecode.ai (keep default) # tribecode server URL: https://tribe.your-company.com (YOUR server) # Verify configuration tribe config show

    Authenticate via tribecode.ai OAuth:

    # Login (opens browser for OAuth) tribe login # Enable telemetry collection tribe enable # Check everything is connected tribe status

    βœ… Done! Your CLI is now sending telemetry to your team's self-hosted server. All data stays on your infrastructure.

    Phase 3: Using the Dashboard

    View your team's AI analytics

    6

    Access the Dashboard

    Team members can view analytics via the tribecode.ai dashboard, pointed at your self-hosted data:

    1. 1Go to tribecode.ai and log in
    2. 2Navigate to Settings β†’ Data
    3. 3Enter your team's tribecode server URL (e.g., https://tribe.your-company.com from Step 3)
    4. 4Click Test & Save

    πŸ”’ Privacy Guarantee

    The tutor server URL is stored only in your browser's localStorage. tribecode's servers never see or store your server connection details. The dashboard connects directly from your browser to your tutor server.

    7

    Share Server Access with Team

    For team members to view the dashboard, share your tutor server URL:

    Team Onboarding Checklist

    Team Setup Instructions ----------------------- 1. Install CLI: npx @_xtribe/cli@latest 2. Configure server: tribe config set When prompted, enter: - Dashboard URL: https://tribecode.ai (default) - tribecode server URL: https://tribe.your-company.com 3. Login: tribe login 4. Enable: tribe enable 5. Dashboard setup (for viewing analytics): - Go to tribecode.ai β†’ Settings β†’ Data - Enter tribecode server URL: https://tribe.your-company.com - Click Test & Save

    Copy this to your team's internal wiki or Slack channel.

    ⚠️ Security Note: Ensure your tutor server is properly secured with HTTPS and network access controls before sharing access with team members.

    Quick Reference

    WhoWhat They NeedWhere to Get It
    AdminDatabase URLSupabase/NeonDB/PostgreSQL
    AdminServer hostingYour infrastructure
    Team MembersServer URLAdmin provides (e.g., https://tribe.company.com)
    Team Memberstribecode server URL (for dashboard)Admin provides (same as CLI server URL)
    Team Memberstribecode.ai accountSign up at tribecode.ai

    Troubleshooting

    ❌ "Connection refused" when team member enables

    Problem: CLI can't reach the server

    Solutions:

    • Verify server is running: tribe server status (on server machine)
    • Check firewall allows the port
    • Verify the server URL is correct: tribe config show

    ⚠️ Dashboard shows "Connection failed"

    Problem: Dashboard can't connect to the tutor server

    Solutions:

    • Verify the tribecode server URL is correct
    • Check the server is running: curl https://your-server/api/health
    • Ensure CORS allows connections from tribecode.ai
    • For HTTPS: ensure SSL certificate is valid

    ℹ️ No data appearing in dashboard

    Problem: Dashboard is connected but shows no events

    Solutions:

    • Ensure CLI is enabled: tribe status
    • Check CLI is pointing to correct server: tribe config show
    • Verify server is receiving data: curl https://your-server/api/telemetry/stats
    • Use Claude Code or Cursor to generate some telemetry events

    πŸŽ‰ You're All Set!

    Your team now has tribecode running on your own infrastructure with complete privacy and control. All AI analytics data stays on your database - tribecode never sees your data.

    Full Self-Hosting GuideTeam Setup Details
    tribecodetribecode

    Not another agentβ€”a telemetry vault + API you can trust.

    Product

    • Pricing
    • Support

    Developers

    • Documentation
    • API Reference
    • GitHub

    Β© 2026 tribecode. All rights reserved.

    Privacy PolicyTerms of Service