You need:
- OCcode installed and open
- OpenClaw installed (via the Home panel Install button)
- A Telegram account on your phone
You must create a bot via Telegram's official BotFather before anything else.
- Open Telegram on your phone or desktop
- Search for @BotFather and open the chat
- Send the command:
/newbot - BotFather will ask for a name — this is the display name (e.g.
My OpenClaw Bot) - BotFather will then ask for a username — must end in
bot(e.g.myopenclawbot) - BotFather will reply with your Bot Token — it looks like:
Copy this — you will need it in the next step.
8328341297:AAESucIDOoHTt3Wers28iqKERjjyRmAt6_k
- Open OCcode (the editor)
- The OpenClaw Home panel opens automatically on the right
- Make sure the status shows Gateway: Running
- If not, click Start Gateway
- Wait for the green status indicator
- Click the Configure OpenClaw button
- The Gateway Control UI opens inside the editor
The first time you open the Gateway UI you will be asked to authenticate.
- When prompted, enter the gateway token from your config:
- Run this in Terminal to find it:
<
5DF4
div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cat ~/.openclaw/openclaw.json | grep token">
cat ~/.openclaw/openclaw.json | grep token
- Run this in Terminal to find it:
<
5DF4
div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cat ~/.openclaw/openclaw.json | grep token">