One bot in Telegram, every model behind it. The install, the Telegram connection, and how to swap models with one command.
The whole reason to run your own gateway is that you’re never stuck with one company’s model. You text one bot, and behind it you can swap between Claude, GPT, Gemini, cheaper models, or a model running on your own machine.
OpenClaw is a free, MIT-licensed assistant you host yourself. It connects chat apps like Telegram, WhatsApp, Discord, Slack and iMessage to AI models. It takes more setup than a polished app, so set aside an afternoon. What you get back is a setup that outlives whichever model is winning this month.
node --version. The official installer adds it for you if it’s missing.Only Want To Switch Models? Start Here
One OpenRouter key gets you most major models behind a single login, so you can swap without making an account with every provider. Add direct keys later for the two you use daily.
Run these in Terminal. The onboard step walks you through picking a provider, asks for your key, and installs the background service so it keeps running after you close the window. Full details are in the install docs.
Telegram turns your setup into a chat you text from your phone, and that’s when it starts to feel like magic.
~/.openclaw/openclaw.json and add the Telegram section below with your token.The Error You’ll Probably Hit
If startup says your token is unauthorized, the token is wrong, usually from a stray space when you pasted it. Ask BotFather for a fresh token, paste it clean and restart. (Telegram docs)
Once more than one provider’s key is in the config, switching is one command in the terminal or one message from your phone. Here’s the command set worth keeping.
How I actually split it. Anything where being wrong is expensive goes to a frontier model. Reminders and quick lookups go to a cheap, fast one, like Claude Haiku 5.5, which costs a fraction of Sonnet 5.5 (pricing). Everything else goes to whichever model is best at that job right now. For anything that should never leave your computer, point it at a local model through Ollama or LM Studio.
Run openclaw doctor first. If that doesn’t make the problem obvious, paste this into Claude or ChatGPT with your output. Take out your keys and tokens before you paste anything.
Be Honest About The Tradeoff
You’re the one running this. You handle updates, uptime and keeping your API keys safe, and you pay per use 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.