Skip to content
bigmintsPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

469 Commits

Folders and files

Repository files navigation

Youbot Logo

Youbot

Your AI concierge for visitors

Open-source, self-hosted concierge that helps visitors on behalf of you or your organization.
Runs locally. Privacy-first. Extensible via MCP.

MIT License Node.js β‰₯22 TypeScript Launch on PicoRunner


Start here

For macOS or Linux, use the reviewed user-scoped installer below. Windows users can open START HERE.md for the launcher instructions.

  • Self-hosted: free software; you manage your computer and AI account.
  • Version 1: self-hosted on macOS, Linux, and Windows. Paid managed hosting is planned for phase two and is not part of this release.

The instructions below are for developers and existing installations.

What is Youbot?

Youbot is a self-hosted AI concierge that helps visitors using the information and boundaries its owner supplies. The owner configures the concierge, connects supported channels, follows visitor conversations, and takes over when a decision or personal reply is needed. Channel integrations and available actions depend on configuration and authorization.

Youbot's server runs on your own computer. Connected messaging services and configured AI providers receive the information needed for the requests you send through them.

Collections

Youbot includes a reusable headless collection engine with provider-neutral tools. Owners can add catalogues or written information, review organized items through cards, galleries, or schedules, publish selected facts, and keep visitor answers current through conversational updates. Other projects can use the same package with their own model, authentication, and interface. See the collection engine package and collections documentation.

Key Capabilities

  • πŸ—£οΈ LLM-First Architecture β€” Every message goes through the LLM orchestrator. It analyzes intent, calls tools, follows skill instructions, or responds conversationally.
  • πŸ“± Multi-Channel β€” WhatsApp, Telegram, iMessage β€” all normalized into a unified message flow.
  • 🧠 Soul System β€” Evolving personality profiles for you and every contact. The bot learns and remembers.
  • ⚑ 80+ Native Tools β€” Messaging, Google Workspace, file management, web search, scheduling, CLI agents, and more.
  • πŸ”Œ MCP Extensible β€” Connect any Model Context Protocol server to add new capabilities.
  • πŸ€– Multi-LLM β€” Works with OpenAI, Anthropic, Google Gemini, Ollama (local), or any OpenAI-compatible API.
  • πŸ›‘οΈ Safety & Security β€” Configurable guardrails, visitor-safe tool restrictions, approval workflows for sensitive actions.
  • πŸ“Š Dashboard β€” Beautiful Next.js + shadcn/ui control center with real-time processing indicators.

Tool Modules

Module Description
Messaging Send, search, forward messages across WhatsApp, Telegram, iMessage
Google Workspace Gmail, Drive, Sheets, Docs, Contacts, Calendar, Places
CLI Agents Delegate coding tasks to Gemini CLI, Claude Code, or Codex
File System Read, write, list, search files & folders (sandboxed)
Scheduler Cron jobs, reminders, one-time tasks with persistent storage
Skills Custom automations with triggers, conditions & outcomes
Memory Store & recall memories, manage contact personas
Web Search Serper API + direct fetch fallback
Approvals Owner approval flow for sensitive visitor actions
Follow-ups Schedule conversation follow-ups and closure checks
Vault Secure credential storage for API keys and secrets
Apple Calendar, Reminders, Notes integration (macOS)

Quick Start

curl --proto '=https' --tlsv1.2 -fsS https://youbot.live/install.sh -o install.sh
less install.sh
bash install.sh
~/.local/bin/youbot start

Dashboard: http://localhost:11490

The installer runs without sudo, resolves the requested source version to an immutable Git commit, verifies any downloaded private Node.js runtime, and keeps application releases separate from your settings and data. Add ~/.local/bin to PATH if you want to run youbot without the full path. For a manual source build, clone this repository and run make verify && make install.

Connect Your Channels

  1. Open the dashboard
  2. Go to LLMs β†’ add your LLM provider (Gemini, OpenAI, Ollama, etc.)
  3. Go to WhatsApp β†’ scan the QR code
  4. Go to Telegram β†’ enter your bot token
  5. Go to iMessage β†’ enter your BlueBubbles server URL and password
  6. Go to Google β†’ connect your Google account

Architecture

youbot/
β”œβ”€β”€ install.sh                # User-scoped macOS/Linux installer
β”œβ”€β”€ packages/
β”‚   └── collection-engine/    # Reusable provider-neutral collection engine
β”œβ”€β”€ Makefile                  # Build + install pipeline
β”œβ”€β”€ start.sh / stop.sh        # Dev mode scripts
└── youbot-core/              # Main application
    β”œβ”€β”€ src/
    β”‚   β”œβ”€β”€ api/              # REST API (custom HTTP router)
    β”‚   β”œβ”€β”€ engine/           # LLM orchestrator, tool routing, unified handler
    β”‚   β”œβ”€β”€ channels/         # WhatsApp (Baileys), Telegram, iMessage adapters
    β”‚   β”œβ”€β”€ capabilities/     # Google, Apple, CLI, web-search, filesystem
    β”‚   β”œβ”€β”€ agents/           # Skills engine, vault, specialized agents
    β”‚   β”œβ”€β”€ automation/       # Scheduler, approvals, follow-ups
    β”‚   β”œβ”€β”€ memory/           # Soul system, conversation store, personas
    β”‚   β”œβ”€β”€ data/             # SQLite database & config management
    β”‚   └── logger/           # Ring-buffer structured logging
    β”œβ”€β”€ web-ui/               # Next.js 16 + shadcn/ui dashboard source
    └── webchat-relay/        # Public website and visitor relay

Message Flow (LLM-First)

Message β†’ Input Filters β†’ Owner Detection β†’ Orchestrator (LLM)
                                              β”œβ”€ Tools & MCP
                                              β”œβ”€ Skill context
                                              β”œβ”€ Conversational reply
                                              └─ Ask for details

All valid messages β€” from both the owner and visitors β€” go through the LLM orchestrator. Skills are injected as context, not a separate gating pipeline. See .agents/specs/message-flow.md for the full architectural contract.

Data Storage

What Where
Config ~/.youbot/config.json
Database ~/.youbot/data/youbot.db (SQLite)
Skills ~/.youbot/skills/<name>/SKILL.md
Identity ~/.youbot/data/SOUL.md, IDENTITY.md
Backend ~/.youbot/current/lib/ (compiled JS)
Web UI ~/.youbot/current/web/ (Next.js static)
Logs ~/.youbot/logs/

CLI

youbot start             # Start on port 11490
youbot stop              # Graceful shutdown
youbot restart           # Stop + start
youbot status            # Show PID, port, dashboard URL
youbot logs              # Last 50 log lines
youbot logs -f           # Follow logs in real-time
youbot backup            # Create a verified private backup
youbot backup-verify DIR # Verify hashes and SQLite integrity
youbot restore DIR       # Offline, recoverable restore
youbot config            # Show current config
youbot config edit       # Open config in $EDITOR
youbot config set k v    # Set a config value
youbot config get k      # Get a config value
youbot doctor            # Health check
youbot open              # Open dashboard in browser

The supported production profile is one loopback-bound process on one trusted host with local SQLite storage. Read the operations guide before using real visitor data; it covers permissions, backups, restore drills, updates, monitoring, and the boundary for broader deployments.


Development

# Dev mode (hot reload for both backend + frontend)
./start.sh             # Backend on :4081 + Next.js on :4080

# Stop dev servers
./stop.sh

# Run tests
cd youbot-core && npx vitest

# Build + deploy to runtime
make install           # Builds and copies to ~/.youbot/; restart separately

Important: npm run build only compiles to youbot-core/dist/. The runtime loads from ~/.youbot/lib/. Always use make install to deploy changes.


Configuration

Config lives at ~/.youbot/config.json:

{
  "server": { "port": 11490 },
  "database": { "path": "data/youbot.db" },
  "owner": {
    "phone": "",
    "telegram_id": "",
    "telegram_username": ""
  },
  "capabilities": {
    "models": {
      "default": "gemini",
      "providers": {
        "gemini": {
          "baseUrl": "https://generativelanguage.googleapis.com/v1beta/openai/",
          "model": "gemini-2.0-flash",
          "apiKey": "YOUR_API_KEY"
        }
      }
    }
  },
  "channels": {
    "whatsapp": { "enabled": true, "auto_reply": true },
    "telegram": { "enabled": true, "token": "", "auto_reply": true },
    "imessage": { "enabled": false, "server_url": "", "password": "" }
  },
  "filesystem": {
    "allowed_paths": ["~/Documents", "~/Downloads", "~/Desktop"]
  },
  "mcp_servers": {}
}

Supported LLM Providers

Provider Base URL Notes
Google Gemini https://generativelanguage.googleapis.com/v1beta/openai/ Recommended. Fast + cheap.
OpenAI https://api.openai.com/v1 GPT-4o, GPT-4, etc.
Anthropic Via OpenAI-compatible proxy Claude 3.5 Sonnet, etc.
Ollama http://localhost:11434/v1 Local models. Free.
Any OpenAI-compatible Your provider's URL OpenRouter, Together AI, etc.

Skills

Skills are custom automations defined as Markdown files:

---
name: Greeting
description: Respond to greetings warmly
triggers: [message]
filter_dms_only: true
condition: "the message is a greeting like hi, hello, hey"
outcome: reply
enabled: true
---
# Instructions
Respond warmly and ask how you can help today.
Mention the person's name if you know it.

Skills are stored in ~/.youbot/skills/<skill-name>/SKILL.md and are injected as LLM context when their fast filters match an incoming message. The LLM decides whether and how to follow them.

Create skills via the web dashboard (Skills page), the create_skill tool, or by writing the files directly.


Requirements

  • Node.js β‰₯ 22 (via nvm)
  • npm (comes with Node.js)
  • make (pre-installed on macOS/Linux)
  • macOS recommended (required for iMessage & Apple integrations)

Contributing

Contributions welcome! Please open an issue first for major changes.

License

MIT β€” Built by Bigmints

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages