Documentation Index
Fetch the complete documentation index at: https://docs.yourhq.ai/llms.txt
Use this file to discover all available pages before exploring further.
FAQ
What is HQ?
A self-hostable dashboard for running AI agents. You provide the infrastructure (a Docker host and a Supabase project); HQ gives you the UI, the agent runtime, and a library of templates.Why would I self-host this instead of using a SaaS?
- Your data stays on your machine. No third party has access to your CRM, documents, or agent outputs.
- No per-seat pricing. Run as many agents as your hardware can handle.
- Open source. Fork it, customize it, ship your version.
- Offline-capable. Gateways can run on a laptop or home server and keep working without internet.
Is there a hosted version?
Not yet. A hosted offering atyourhq.ai is on the roadmap. Until then, self-host.
What does “agent” mean here?
An agent is a persistent workspace with:- Its own git branch (identity files, memory, skills)
- Its own Chrome profile (persistent cookies, logged-in sessions)
- Its own messaging channel — Telegram, Discord, Slack, or none (for conversational input/output)
- Its own OpenClaw session (the runtime)
What models do agents use?
HQ is model-agnostic. Agents use whatever provider you configure — OpenAI, Anthropic, Gemini, OpenRouter, local OpenAI-compatible servers, and 20+ other providers supported by OpenClaw. There is no default or required provider. Switching is available per agent through the agent rail and globally through Settings → Connections. You connect models through the Connections UI. API-key providers can be added directly; interactive providers complete through the runner command flow.What does it cost to run?
Infrastructure:- Laptop: free
- $4/month VPS (Hetzner CX22): fine for 1–2 agents
- $20/month VPS (t3.medium on AWS): comfortable for 5+ agents
Does it need internet?
The UI and gateway need internet for:- Model API calls (unless using a local model like Ollama)
- Supabase (if your Supabase is cloud-hosted)
- OpenClaw plugin updates
Can I run multiple gateways?
Yes. Each gateway registers itself in thegateways table with its own GATEWAY_ID. Agents are bound to a specific gateway via gateway_id FK. The UI talks to each gateway via its reachable URL (stored in gateways.meta.reachable_urls).
Example topology: UI on your laptop, one gateway on a Mac mini at home, one gateway on a VPS. All point at the same Supabase. Each runs its own set of agents.
Yes. The normal path is Settings → Gateways → Add Gateway. HQ mints a single-use registration token and gives you a one-line installer command for the new host. Manual registration still works for advanced setups.
Can I run multiple projects / workspaces?
Yes. The UI has a project registry and project switcher, so one UI install can manage multiple Supabase-backed workspaces. Each project is still isolated at the Supabase-project level. You can run multiple Compose stacks on the same host by setting differentCOMPOSE_PROJECT values in .env — each gets its own volumes and container names.
How do agents see each other?
They share a Supabase database, so tasks, contacts, documents, and comments are visible across agents. @-mentioning an agent in a comment inserts a row intoagent_inbox_items; the dispatcher wakes the mentioned agent.
For more sophisticated coordination (agent A’s output triggering agent B), the pattern today is:
- Agent A completes a task or writes a document
- Automation rule fires on the change
- New inbox item gets enqueued for agent B
- Dispatcher wakes B
How do I reach my HQ from my phone?
- Install Tailscale on your phone + HQ host, reach
http://<host-tailscale-ip>:3000 - Tailscale Serve on the host for TLS:
sudo tailscale serve --bg --https=443 localhost:3000→https://hq.<your-tailnet>.ts.net - Tailscale Funnel to make it reachable without Tailscale on the phone
- Public custom domain via Cloudflare Tunnel or your own reverse proxy (see Networking)
Can I use a Raspberry Pi?
Yes. Raspberry Pi 4 or 5 (arm64) runs the stack fine. Pi 4 with 4 GB is the minimum; Pi 5 with 8 GB is comfortable. Use the same installer — arm64 images are published automatically.What about resource usage?
A single gateway with 1–2 idle agents uses about 1.5 GB RAM and 5–10% CPU. Each active agent (browsing, running) adds ~500 MB and spikes CPU during work. t3.small (2 GB) is the floor. t3.medium (4 GB) is comfortable for 2–3 active agents. t3.large or m5.large for heavier use.How do I back up my data?
Three things to back up:- Supabase — your contacts, tasks, agents, documents, audit log. Use Supabase’s built-in backups (Pro tier) or
pg_dumpagainst the direct connection. - Gateway state volume — per-agent git branches, Chrome profile, OpenClaw config.
docker run --rm -v yourhq-gateway-state:/src -v $(pwd):/dst alpine tar -czf /dst/gateway-state.tar.gz -C /src . .env— contains secrets. Keep a copy somewhere safe (password manager, encrypted disk).
GIT_REMOTE_URL in .env so per-agent branches push to a GitHub/Gitea remote you control.
How do I update?
How do I uninstall?
Can I customize the UI?
Yes, fork the repo.apps/ui/ is a standard Next.js app (App Router, Tailwind, shadcn). Changes go into your fork; pull upstream updates as desired.
If your changes might benefit others, PR them.
Can I write my own agent template?
Yes. Copytemplates/default/ to templates/your-role/, edit the identity files (IDENTITY.md, SOUL.md, USER.md, MEMORY.md), add role-specific skills under skills/, rebuild the templates index, open a PR (or keep in your fork).
See Agents.
Who uses HQ?
Currently: the maintainers, beta testers, and whoever else has discovered it. The project targets founders, solo operators, and small teams who want their agents to do real work on their own infrastructure.Why the name “HQ”?
It’s the headquarters metaphor — one place where you manage everything. Short, memorable, hard to misspell.Where do I ask more questions?
- GitHub Discussions — design questions, roadmap, workflow
- GitHub Issues — bugs, feature requests
[email protected]— security issues only (see SECURITY.md)