Overview
Run a self-hosted OpenClaw assistant on your own server, reach it through a Telegram bot, let it run read-only checks from an allowlist, and require your approval for restarts and other changes.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- OpenClaw · Telegram
- Prerequisites
- A server you control, an OpenClaw install, a Telegram bot token, an API key from your chosen model provider, and a git host with a command-line tool for pull requests (not verified here).
How It Works
Install OpenClaw on the server you want to look after and add a Telegram bot as its channel. Run the assistant under its own operating-system user that can read logs and service status but cannot write to production files or restart services without help. Set the exec tool to an allowlist with ask mode, and put only inspection commands on the allowlist, such as disk usage, service status and recent log lines. Anything else, including a service restart, then needs a human answer. For code or configuration changes, have the assistant edit a separate clone of the repository and open a pull request through your git host's command-line tool, which you review and merge yourself. From Telegram, ask for a health summary or a log check; approve a restart only after reading the exact command. Before relying on this, test from Telegram that a restart request really stops and waits for you.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up OpenClaw.
- Connect the toolsConnect the tools this workflow relies on: OpenClaw, Telegram.
- Check the prerequisitesA server you control, an OpenClaw install, a Telegram bot token, an API key from your chosen model provider, and a git host with a command-line tool for pull requests (not verified here).
- Gather your detailsCollect what the prompt asks for: Server the assistant looks after, Services to check, How many log lines to read, Path of the separate repository clone.
- Run the starter promptPaste the starter prompt below into OpenClaw and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.openclaw.ai before you rely on it.
Practical Starter Prompt: Check my server and ask before changing it
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
You look after the server [Server the assistant looks after]. When I ask in Telegram, run only allowlisted inspection commands: disk usage, the status of [Services to check], and the last [How many log lines to read] lines of their logs, then give me a short health summary. Never edit files on the server. If something needs a restart, show me the exact command and wait for my approval before running it. If code or configuration must change, edit the clone in [Path of the separate repository clone], open a pull request and send me its link; do not merge it.Approve a restart only after reading the exact command, and review every pull request before merging. Before the first real use, test that a command outside the allowlist waits for your answer in Telegram; if it does not, run restarts yourself over SSH.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The OpenClaw pages support a Telegram channel set up with a bot token, a shell tool whose allowlist and ask modes can make commands outside the allowlist wait for a human, and a warning that tools run on the host unless sandboxing is configured. They do not show where approval prompts appear in Telegram, and the pull request step depends on your git host, which was not checked.
Limitations and Considerations
The exec page says disabling file tools does not make exec read-only and that no-approval host exec is the default, so set the mode and allowlist yourself and test them; the operating-system user is your real read-only boundary. The README asks you to treat inbound messages as untrusted input and to read the security guide, exposure runbook and sandboxing guide before connecting other users or exposing the Gateway remotely. Keep the Telegram bot private to you and keep server keys out of chat. Your model provider receives the prompts and command output you send it. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About openclaw/openclaw
395k signal: Openclaw claims full OS control, but who audits its unattended actions (opens in a new tab)
Walkthrough of openclaw by Repo Radar: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)About openclaw/openclaw
Top 10 AI GitHub Repos Blowing Up Right Now — Dec 4, 2026 (opens in a new tab)
Walkthrough of openclaw by AINews-GitHubHuggingFace: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Chat channels - OpenClaw (opens in a new tab)
Project documentation · docs.openclaw.ai · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- It needs a bot token and no plugin install, so it is the fastest channel to get working.
- Exec tool - OpenClaw (opens in a new tab)
Project documentation · docs.openclaw.ai · Undated · Source checked 27 Nov 2026, 09:29 UTC
What this source supports
- Disabling OpenClaw filesystem tools such as `write`, `edit`, or `apply_patch` does not make `exec` read-only.
- If you want approvals/allowlist behavior, set `tools.exec.mode` and tighten the host approvals file.
- Use `/exec ask=always` with a message to require human approval for that run.
- openclaw/openclaw README (opens in a new tab)
Project documentation · github.com · Undated · Source checked 25 Nov 2026, 11:59 UTC
What this source supports
- Treat inbound messages as untrusted input.
- Tools run on the host for the main session unless you configure sandboxing.

