Guides·Guide

The self-hosted AI assistant guide

An assistant that lives on your infrastructure, answers on your channels and keeps your data in-house. Every option, honestly compared, from one user to a team.

TL;DR

A self-hosted AI assistant runs on infrastructure you control, responds on your messaging apps and keeps conversations in-house. The architecture is three parts, a channel gateway, a model backend and a state store, and you can assemble them yourself or run OpenClaw, which bundles all three. The choices that matter: which channels, cloud API or local model, and who operates the thing once it works.

  • The pitch: privacy on your own infrastructure, cost control without per-seat SaaS fees, full customization, and one assistant across all your channels.
  • Channels vary wildly in effort: Telegram and Discord have official bot APIs and take minutes; WhatsApp needs QR pairing over an unofficial protocol; iMessage and Signal are the hard tier.
  • Cloud models (Claude, GPT, Gemini) need a $5 VPS; local models (Llama 3, Mistral, Qwen) need a GPU with 16GB+ VRAM but remove per-token costs.
  • Realistic DIY budget: $5-20/month hosting plus $10-100/month model usage, plus the maintenance time nobody writes down.
  • OpenClaw is the all-in-one route: multi-channel gateway, model switching, persistent state and a web UI in one runtime you host, or have hosted.

Why teams self-host their assistant

A self-hosted assistant is not a philosophical statement, it solves concrete problems that SaaS assistants cannot.

  • Privacy: conversations and files stay on infrastructure you control, which for regulated teams is not optional.
  • Cost control: you pay for model usage, not per-seat fees that scale with headcount.
  • Customization: system prompts, tools and integrations you decide, without waiting on a vendor roadmap.
  • Multi-channel: one assistant with one memory across every messaging app, instead of one bot per platform.
  • No artificial limits: no vendor rate caps or usage tiers between you and your own compute.

The anatomy: three components

Every self-hosted assistant, however assembled, is three parts. The gateway connects to messaging platforms and normalizes messages in and out. The model backend processes each message with Claude, GPT or a local model. The state store persists conversation history and preferences so the assistant remembers anything at all.

You can build each part yourself, and for a single channel with one user that is a reasonable weekend. The reason runtimes like OpenClaw exist is that the second channel, the second user and the second month each multiply the plumbing, and the bundle starts beating the bespoke build.

Picking your channels

Channel choice sets most of your setup effort, because the platforms differ enormously in how welcoming they are to bots.

  • Telegram: the easy start. An official bot API and a token from BotFather in thirty seconds. Best for a quick first assistant and groups.
  • Discord: also easy, official API, well-trodden. Best for communities and servers.
  • WhatsApp: medium. It runs over an unofficial client protocol with QR-code pairing, and sessions expire periodically. Worth it because it is where people actually are.
  • Slack: medium, official SDK with OAuth scopes to configure. The natural choice for team assistants.
  • iMessage: hard, requires an always-on Mac running a bridge server. Only for committed Apple households.
  • Signal and Microsoft Teams: the hard tier, via CLI bridges and bot frameworks respectively. Choose them for privacy or corporate mandates, not convenience.

Choosing the model: cloud API or local

Cloud APIs are the right default for most: Claude for conversation, coding and analysis, GPT for versatility and ecosystem, Gemini if you live in Google Workspace. They need no special hardware, and if you already pay for a Claude Pro or ChatGPT Plus subscription, the assistant can often ride it instead of metered keys.

Local models, Llama 3, Mistral or Qwen, remove per-token costs and keep every byte on your hardware, at a price: you need a GPU with 16GB+ VRAM, 32GB of system RAM and a fast SSD for good results, and quality still trails the frontier cloud models. The honest rule: choose local for privacy or cost-at-volume reasons you can articulate, not as a default.

What it actually costs

The DIY budget has three lines. Hosting: $5-20/month for a VPS with 1 CPU and 1GB RAM, which is enough for cloud-API setups, or a Raspberry Pi at home for nearly nothing. Model usage: $10-100/month on APIs depending on how much you talk to it, or a flat subscription if you connect one. Maintenance: your time, which is the line that decides whether DIY is cheap.

For local models, swap the VPS line for GPU hardware you probably already priced. There is no per-seat fee anywhere, which is exactly the point, and why a self-hosted assistant gets more attractive the more people use it.

OpenClaw: the all-in-one route

OpenClaw, formerly known as MoltBot and Clawdbot, bundles the whole architecture into one open-source runtime: a multi-channel gateway covering WhatsApp, Telegram, Discord, Slack, iMessage, Signal and more, model switching across Claude, GPT, Gemini or local models, persistent conversation state, a web UI for configuration, and bring-your-own-key auth including existing subscriptions.

The practical consequence: instead of building a gateway, backend and state store per channel, you configure one runtime once and every channel talks to the same assistant with the same memory. It is the difference between assembling an assistant and operating one, and it is why OpenClaw has become the default answer for serious self-hosted setups.

Security is not optional

A self-hosted assistant holds credentials and talks to strangers' input all day. Treat it like the production service it is.

  • Keys: never in git, always in environment variables or a secrets manager, rotated periodically, with spending caps set at the provider so a leak has a ceiling.
  • Access: allowlist the users and numbers that may talk to the assistant, rate limit per user, and log interactions for audit.
  • Injection: treat inbound messages as untrusted input and watch for prompt injection attempts, especially once the assistant can take actions.
  • Data: encrypt stored conversations at rest, expire old ones, and stay conscious of what flows to cloud model providers; local models exist for the truly sensitive tier.

From personal assistant to production service

The build order that works: pick one channel, Telegram if you have no strong pull elsewhere, choose your model, deploy on a VPS or home server, and only then add channels. Add a health check endpoint and external uptime monitoring early, because an assistant that silently died is worse than none.

The fork in the road comes when other people start depending on it. A personal assistant can go down for an evening; a team's assistant cannot, and an assistant per client absolutely cannot. At that point you need automatic recovery, isolation between instances, versioned state and observability, which is a platform, not a weekend project. Molted runs OpenClaw as exactly that platform, in production since January 2026, with self-healing that catches crashes in under 60 seconds and 1,000+ integrations ready on day one, managed or on your own infrastructure.

FAQ

Q.01

What is the easiest channel to start with?

Telegram. The official bot API hands you a token in thirty seconds and imposes none of the pairing or bridging friction of the other platforms. Prove the assistant there, then add the channels where your actual conversations live.

Q.02

Do I need a GPU to self-host an AI assistant?

Only if you want the model itself local. With cloud APIs like Claude or GPT, a $5 VPS with 1 CPU and 1GB RAM is enough, since the heavy lifting happens at the provider. Local models like Llama 3 or Mistral need a GPU with 16GB+ VRAM and 32GB of system RAM for good results.

Q.03

Is a self-hosted assistant cheaper than a SaaS one?

On infrastructure, usually: $5-20/month hosting plus $10-100 of model usage, with no per-seat fees, beats most SaaS pricing as user count grows. The honest caveat is maintenance time, which is free only if you enjoy it. Count your hours and the comparison gets closer than the sticker prices suggest.

Q.04

Can one assistant really cover all my messaging apps?

Yes, that is what a multi-channel gateway is for. A runtime like OpenClaw connects WhatsApp, Telegram, Discord, Slack, iMessage and Signal to one assistant with one memory, so the conversation continues across apps instead of fragmenting into per-platform bots.

Q.05

How do I keep a self-hosted assistant secure?

Four habits cover most of it: secrets in env vars or a manager with provider spending caps, an allowlist plus per-user rate limits on who can talk to it, treating all inbound messages as untrusted input, and encrypting stored conversations while expiring old ones. None of this is exotic; skipping it is how self-hosted projects end up in incident writeups.

Q.06

What if I want the assistant without running the server?

If you just want one always-on agent for yourself, molted.cloud runs a single managed OpenClaw instance from $14/month. molted.net is the platform layer for running fleets, multi-tenant deployments and white-label products.

Want the self-hosted assistant without the self-hosted on-call? See managed OpenClaw hosting.