Sonu Sahani logo
Sonusahani.com
How to Uninstall and Reinstall OpenClaw with Telegram Bots?

How to Uninstall and Reinstall OpenClaw with Telegram Bots?

0 views
4 min read
#AI

This guide shows how I uninstall OpenClaw cleanly and reinstall it with a Telegram channel using OpenRouter. I verify the reinstallation with the Terminal UI and pair the Telegram bot again. The exact commands and choices I used are below.

Uninstall and Reinstall OpenClaw with Telegram Bots?

Check status

I start by confirming the current setup is working.

openclaw status

Screenshot from How to Uninstall and Reinstall OpenClaw with Telegram Bots? at 17s

Uninstall components

Run the uninstaller and choose what to remove. I remove the gateway service, state plus config, and the workspace.

openclaw uninstall

Screenshot from How to Uninstall and Reinstall OpenClaw with Telegram Bots? at 23s

Select Gateway service
Select State + Config
Select Workspace
Press Enter
Choose Yes to proceed

Screenshot from How to Uninstall and Reinstall OpenClaw with Telegram Bots? at 40s

Confirm uninstall

Check the status again to confirm the gateway service is removed and previous sessions or channels are not active.

openclaw status

Screenshot from How to Uninstall and Reinstall OpenClaw with Telegram Bots? at 47s

You should see that the gateway systemd is not installed. This confirms OpenClaw is uninstalled and ready for a fresh setup. For more context on cleanup, see our uninstall guide.

Onboard again

Start the onboarding wizard.

openclaw onboard

Screenshot from How to Uninstall and Reinstall OpenClaw with Telegram Bots? at 73s

Select Quick Start: Yes
Choose provider: OpenRouter
Set the OpenRouter API key when prompted
Pick a model: google/gemini-2.5-flash-preview
Select channel: Telegram
Enter your Telegram bot token
Skip any optional prompts you do not need

Screenshot from How to Uninstall and Reinstall OpenClaw with Telegram Bots? at 107s

After the inputs, the gateway service installs again. If you need help with API keys or provider choices, see this OpenRouter setup.

Screenshot from How to Uninstall and Reinstall OpenClaw with Telegram Bots? at 140s

Attach and test in Terminal UI

The wizard asks to attach your bot. I choose the Terminal UI to run a quick test prompt and confirm the model responds.

In the Terminal UI, I run a simple prompt that lists files under the root directory. Example prompt: List all files under the root directory. I see a valid response, which confirms the setup is working locally.

Screenshot from How to Uninstall and Reinstall OpenClaw with Telegram Bots? at 171s

Pair Telegram and test

The Telegram channel requires pairing again after reinstall. The tool shows a pairing code, which I copy and use in the Telegram chat with the bot.

Exit the Terminal UI after copying the pairing code. Paste the pairing code in your Telegram bot chat to complete pairing. Run the same prompt from Telegram and confirm the bot responds.

Screenshot from How to Uninstall and Reinstall OpenClaw with Telegram Bots? at 196s

For quick navigation and checks during or after setup, you can use the AI dashboard to inspect status and activity. If you face a Node.js related startup issue during the bot run, try this fix for the Node.js error. If your Telegram connection drops with code 1006, use this guide for disconnected 1006.

Screenshot from How to Uninstall and Reinstall OpenClaw with Telegram Bots? at 218s

Final thoughts

Uninstalling with openclaw uninstall and selecting Gateway service, State + Config, and Workspace clears the setup completely. Onboarding again with openclaw onboard, OpenRouter as the provider, a valid API key, the google/gemini-2.5-flash-preview model, and the Telegram token restores the bot. Pair the Telegram bot again, run a quick test in Terminal UI and Telegram, and you are back to a working setup.

Subscribe to our newsletter

Get the latest updates and articles directly in your inbox.

sonuai.dev

Sonu Sahani

AI Engineer & Full Stack Developer. Passionate about building AI-powered solutions.

Related Posts