One bot in Telegram, every model behind it. The exact install, the Telegram connection, and how to swap models with one command.
The whole point of running your own gateway is that you are never stuck with one company's model. You text one bot, and behind it you can swap between Claude, GPT, Gemini, cheaper models, or something running locally on your own machine.
OpenClaw is an MIT-licensed, self-hosted gateway that connects chat apps like Telegram, WhatsApp, Discord, Slack and iMessage to AI agents. It is genuinely more work upfront than a polished commercial app. Set aside an afternoon. What you get back is a setup that outlives whichever model is winning this month.
If you only want to switch models, start here
One OpenRouter key gets you most major models behind a single credential, so you can swap without going and creating an account with every provider. Add the direct keys later for the two you use daily.
This is the whole install. The onboard command sets up your first provider and installs the background service in one go.
This is the part that makes it feel like magic, because now it is just a chat you text from your phone.
The error you will probably hit
A deleteWebhook 401 on startup means the bot token is wrong. Usually a trailing space from the copy-paste. Go back to BotFather, revoke and reissue the token, paste it clean, restart.
Once keys for more than one provider are in the config, switching is a single command, or one message from your phone. Here is the command set worth keeping.
How I actually split it: a frontier model for anything where being wrong is expensive, a cheap fast one for reminders and quick lookups, and whichever model is currently best at the specific job for that job. You can also point it at a local model through Ollama or LM Studio when you want something to never leave your machine.
Be honest about the tradeoff
You are the one running this. That means you handle updates, uptime, and keeping your own API keys safe, and you pay per token instead of a flat subscription. In exchange nothing you build is trapped in someone else's product, and the day a better model ships you change one line.