GuidesGuide

The self-hosted AI assistant guide

An assistant on your infrastructure, on your channels, with your data in-house. Every option compared, from one user to a team.

TL;DR

A self-hosted AI assistant runs on infrastructure you control, answers on your messaging apps and keeps conversations in-house. It has three parts: a channel gateway, a model backend and a state store. Build them yourself or run OpenClaw, which bundles all three.

  • Why: privacy, no per-seat fees, full customization, one assistant on every channel.
  • Telegram and Discord take minutes. WhatsApp needs QR pairing. iMessage and Signal are hard.
  • Cloud models need a $5 VPS. Local models need a GPU with 16GB+ VRAM.
  • DIY budget: $5-20/month hosting plus $10-100/month model usage, plus maintenance time.
  • OpenClaw bundles gateway, model switching, state and a web UI in one runtime.

Why teams self-host their assistant

A self-hosted assistant solves concrete problems that SaaS assistants cannot.

  • Privacy: conversations and files stay on infrastructure you control.
  • Cost control: you pay for model usage, with no per-seat fees.
  • Customization: you decide the prompts, tools and integrations.
  • Multi-channel: one assistant with one memory across every messaging app.
  • No artificial limits: no vendor rate caps or usage tiers.

The anatomy: three components

Every self-hosted assistant has three parts:

One channel for one user is a reasonable weekend build. The second channel, user and month each multiply the plumbing. That is why runtimes like OpenClaw exist.

  • Gateway: connects to messaging platforms and normalizes messages in and out.
  • Model backend: processes each message with Claude, GPT or a local model.
  • State store: persists history and preferences so the assistant remembers.

Picking your channels

Your channels set most of the setup effort. Platforms differ a lot in how they treat bots.

  • Telegram: easy. Official bot API, token from BotFather in thirty seconds.
  • Discord: easy, official API. Best for communities and servers.
  • WhatsApp: medium. Unofficial protocol, QR pairing, sessions expire. Worth it for reach.
  • Slack: medium. Official SDK with OAuth scopes. The natural team assistant.
  • iMessage: hard. Needs an always-on Mac running a bridge server.
  • Signal and Microsoft Teams: hard, via CLI bridges and bot frameworks. For privacy or mandates.

Choosing the model: cloud API or local

Cloud APIs are the right default. Claude for conversation, coding and analysis. GPT for versatility. Gemini if you live in Google Workspace. No special hardware needed. An existing Claude Pro or ChatGPT Plus subscription can often power it.

Local models (Llama 3, Mistral, Qwen) remove per-token costs and keep every byte on your hardware. You need a GPU with 16GB+ VRAM, 32GB of RAM and a fast SSD. Quality still trails frontier cloud models.

Choose local for a clear privacy or volume reason, never by default.

What it actually costs

The DIY budget has three lines:

For local models, swap the VPS for GPU hardware. With no per-seat fee anywhere, self-hosting gets more attractive the more people use it.

  • Hosting: $5-20/month for a 1 CPU, 1GB VPS. A Raspberry Pi at home costs almost nothing.
  • Model usage: $10-100/month on APIs. A flat subscription works too.
  • Maintenance: your time, the line that decides whether DIY is cheap.

OpenClaw: the all-in-one route

OpenClaw, formerly MoltBot and Clawdbot, bundles the whole architecture into one open-source runtime:

You configure one runtime once. Every channel talks to the same assistant with the same memory. That is why OpenClaw is the default for serious self-hosted setups.

  • A gateway for WhatsApp, Telegram, Discord, Slack, iMessage, Signal and more.
  • Model switching across Claude, GPT, Gemini or local models.
  • Persistent conversation state and a web UI for configuration.
  • Bring-your-own-key auth, including existing subscriptions.

Security is not optional

A self-hosted assistant holds credentials and reads strangers' input all day. Treat it like a production service.

  • Keys: never in git. Use env vars or a secrets manager, rotate them, cap spend.
  • Access: allowlist users and numbers, rate limit per user, log for audit.
  • Injection: treat inbound messages as untrusted and watch for prompt injection.
  • Data: encrypt stored conversations, expire old ones, use local models for sensitive data.

From personal assistant to production service

The build order that works: one channel first (Telegram by default). Then the model, then a VPS or home server. Add channels last. Add a health check and external uptime monitoring early.

Things change when others depend on it. A team assistant cannot go down for an evening. An assistant per client can afford it even less. You then need automatic recovery, isolation, versioned state and observability.

Molted gives integrators and teams that platform for OpenClaw: crashes caught in under 60 seconds, 1,700+ business apps, in our cloud or on your servers.

FAQ

The short version.

01

What is the easiest channel to start with?

Telegram. The official bot API gives you a token in thirty seconds, with no pairing or bridging friction. Prove the assistant there, then add the channels where your conversations live.

02

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

Only for a local model. With cloud APIs like Claude or GPT, a $5 VPS with 1 CPU and 1GB RAM is enough. Local models like Llama 3 or Mistral need a GPU with 16GB+ VRAM and 32GB of RAM.

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. The caveat is maintenance time. Count your hours and the gap gets smaller than the sticker prices suggest.

04

Can one assistant really cover all my messaging apps?

Yes, that is what a multi-channel gateway does. OpenClaw connects WhatsApp, Telegram, Discord, Slack, iMessage and Signal to one assistant with one memory, so conversations continue across apps.

05

How do I keep a self-hosted assistant secure?

Four habits: secrets in env vars or a manager with provider spending caps. An allowlist and per-user rate limits. All inbound messages treated as untrusted. Encrypted stored conversations with expiry.

06

What if I want the assistant without running the server?

For one always-on personal agent, Molted's self-serve hosting runs a managed OpenClaw from $2.88 a month. For integrators and teams, Molted.net runs fleets, multi-tenant deployments and white-label products.

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