MIT Open Source · Built on T3 Code

Threebot Documentation

Threebot is an open-source, self-hosted personal AI agents app built on T3 Code. Think Grok Bot, but you host it on your own machine and run it on the AI subscriptions or local models you already pay for.

What is Threebot?

Threebot is a self-hosted messaging app and Node gateway that turns long-lived T3 Code threads into personal AI agents ("Bots"). Instead of opening a new coding session for every task, you keep one or two Bots for each part of your life — shipping code, triaging email, watching Stripe, researching topics — each with its own face, persistent Markdown memory, standing instructions, scheduled routines, encrypted login vault, and a place on your phone.

Threebot does not resell AI or lock you into a hosted cloud. Every Bot runs on your own computer or server using the providers and subscriptions you already signed into in T3 Code, or your own local models.

Concept in ThreebotWhat it is in T3 Code
A BotA long-lived thread inside its own T3 project (~/.threebot/bots/<slug>)
SubagentsT3 provider subagents and delegated child threads, including across linked machines
RoutinesT3 scheduled tasks bound to the Bot's chat or a dedicated routine thread
A Bot's computerYour host machine and T3's headless browser, with Take control
Model selectorYour signed-in T3 Code providers and local models

Because every Bot stays a standard T3 thread, you can inspect its full tool history or open it in T3 Code at any time.

Threebot vs Grok Bot

People often ask how Threebot compares to Grok Bot and other personal AI agent apps like OpenClaw or Lindy. The short answer: Threebot gives you the personal-agent messaging experience of Grok Bot, except it is MIT-licensed open source, self-hosted on your own machine, and runs on top of T3 Code with your existing AI subscriptions or local models.

DimensionThreebotHosted assistants (e.g. Grok Bot, Lindy)
Hosting & dataSelf-hosted on your own Mac, Linux, or Windows machine. Plain Markdown memory and JSON files in ~/.threebot.Cloud-hosted on the vendor's servers.
AI models & costBring your own T3 Code providers (Claude, Codex, Cursor, Grok Build, OpenCode, Antigravity, Pi, Ollama, etc.). Zero markup; no Threebot account.Tied to one provider's subscription or per-task cloud billing.
TransparencyEvery Bot is a real T3 Code thread you can open, inspect, and steer directly in T3 Code.Proprietary backend and opaque agent state.
Phone experienceInstallable PWA over one-click Tailscale, Cloudflare Tunnel, or your own domain with Cloudflare Access.Vendor mobile or web app.
LicenseMIT open source.Closed source.

Threebot vs OpenClaw

Both Threebot and OpenClaw are open-source, self-hosted personal AI agent apps. The key architectural difference is that Threebot does not build a separate agent runtime from scratch — it builds directly on T3 Code. That gives Threebot immediate access to T3's multi-provider harnesses, delegated worktree threads, headless browser, encrypted secret requests, scheduled tasks, and multi-machine environments, while keeping the Threebot codebase small and focused on the personal-agent experience.

Install & Quick Start

Prerequisites: T3 Code (0.1.6 or later) running on the same machine with at least one AI provider signed in, plus Node.js 22.18 or newer (bundled automatically in the Windows installers).

macOS and Linux

curl -fsSL https://raw.githubusercontent.com/swk-tools/threebot/main/install.sh | sh
threebot up

Windows

Download Threebot-Setup-<version>.exe from GitHub Releases for a one-click install (no admin prompt, Node bundled), grab the portable Threebot-<version>-win64.zip, or install from PowerShell:

irm https://raw.githubusercontent.com/swk-tools/threebot/main/install.ps1 | iex
threebot up

What threebot up does: requests a session token from T3 Code, registers Threebot as a background service (launchd on macOS, systemd on Linux, Startup folder on Windows), and prints its local address — http://127.0.0.1:3780. Open it in your browser and create your first Bot.

From source

git clone https://github.com/swk-tools/threebot.git
cd threebot
npm run setup
cp .env.example .env
t3 auth session issue --ttl 30d --label threebot --token-only   # paste into T3_TOKEN
npm start

Update a release install anytime from Settings → Updates or by running threebot update (with automatic rollback if a new version fails to start). See the full self-hosting guide.

Phone & Remote Access

Threebot listens on 127.0.0.1 by default. To message your Bots from your phone and install Threebot as a home-screen PWA, open Settings → Remote access and pick one of three options:

  • Tailscale (one click): exposes a private https://...ts.net URL reachable only from devices on your own tailnet.
  • Cloudflare Tunnel (one click): after setting a password, creates a public trycloudflare.com link that works anywhere without a Cloudflare account.
  • Custom domain with Google sign-in: put Threebot behind Cloudflare Access using the Cloudflare Access guide.

Core Features

  • Messaging app (PWA): Built for phones and desktop with push notifications, search, themes, voice/file attachments, and @ mentions between Bots.
  • Persistent Markdown memory: Each Bot maintains memory/MEMORY.md as it learns, plus a shared memory file across all your Bots. Both are plain Markdown files you can view and edit in the Memory tab.
  • Standing instructions: Tell each Bot how to behave in your own words under Details › Instructions. Loaded at the start of every session and kept separate from Bot-authored notes.
  • Scheduled routines: Tell a Bot "do this every weekday at 8" to create a recurring T3 scheduled task. It wakes up on schedule, runs, and reports back.
  • Subagents & multi-machine threads: A Bot delegates work to subagents and child T3 threads — locally or on other machines linked to T3 Code.
  • Encrypted Vault: Store site logins and API tokens encrypted on disk. Through T3 secure requests, a Bot can sign into a site without ever reading the plaintext password.
  • Connected apps via Executor: Connect Gmail, Calendar, GitHub, Slack, Notion, Stripe, and more through Executor, with per-Bot approval controls.
  • Projects board (beta): Opt-in live board for projects, to-dos, machines, repos, notes, and links that Bots can read and update in real time.
  • Tidy T3 sidebar (beta): Optionally auto-settle quiet Bot threads in T3 Code while leaving active, waiting, pinned, or PR-watching threads alone.
  • Expressive Bot faces: The Threebot ball's weather reflects what a Bot is doing (storms, aurora, moon when sleeping), or choose from 22 objects or Bot-drawn avatars.

Providers & Harnesses

Because a Bot is a T3 thread, Threebot runs on every provider and agent harness that T3 Code supports: Claude, Codex, Cursor, Grok Build, OpenCode, Antigravity, Muse Code, Pi, fx, ACP agents such as Hermes, and local models such as Ollama.

  • Claude Code & Codex: Project MCP files (.mcp.json / .codex/config.toml) are written automatically by the gateway.
  • Pi: Project .pi/mcp.json is written automatically; trust the Bot folder (or `~/.threebot/bots`) in Pi once.
  • Antigravity: Run threebot bridge install once to register the host stdio MCP bridge.

See docs/harnesses.md for the complete harness matrix.

Architecture & Security

The browser app talks only to a lightweight local Node gateway, and the gateway talks to T3 Code. There is no database: each Bot is a folder containing its config, Markdown memory, instructions, and library, paired with a T3 project and thread. Read the full architecture guide.

  • Local-first by default: Listens on 127.0.0.1:3780; the T3 bearer token never reaches the browser.
  • Independent Bots with guardrails: Bots act on their own and report back, stopping to ask for decisions that involve your money, your identity, or anything on your Always Ask list.
  • Prompt-injection guard: External content from web pages, emails, issues, and PRs is treated as data, never instructions. See SECURITY.md.
  • Privacy: No telemetry is sent unless you explicitly opt in under Settings → Usage stats. See PRIVACY.md.

Frequently Asked Questions

Do I need another AI subscription to use Threebot?

No. Threebot has no account or paid tier of its own. Your Bots use the AI plans already connected to T3 Code — or local models running on your hardware.

How is Threebot different from T3 Code?

T3 Code is where threads, subagents, scheduled tasks, browser automation, and MCP tools execute. Threebot sits on top of T3 Code and gives you a focused messaging app: one or two persistent Bots per area of your life, each with a face, memory, vault, and phone access, orchestrating your other T3 threads.

Where does my data live?

Everything stays on your own machine or server under ~/.threebot — Bot configs, Markdown memory files, encrypted Vault entries, and your Projects board. Nothing is hosted by Threebot.

Is Threebot made by the T3 Code team?

No. Threebot is an independent, MIT-licensed open-source project built on top of T3 Code. It is not affiliated with or endorsed by T3 Tools Inc.

What operating systems are supported?

macOS, Linux, and Windows for the gateway (alongside T3 Code), plus any modern desktop browser, iOS, or Android phone via the installable PWA.