OpenClaw + Discord: Access your home AI from anywhere
table of contents
In a Nutshell
A Bot that allows you to access your home LAN’s OpenClaw AI agents from anywhere via Discord.
What it can do
| Command | What it does |
|---|---|
!ai | Ask the AI questions (Uses OpenClaw models like Codex / GPT-5.3 as-is) |
!memo | Create memos while conversing with the AI, auto-saving to Obsidian |
!sum | Attach and summarize files |
!tr ja Hello | Translate |
!approve | Server management approval flow (reef-bridge integration) |
!status | Check the connection status to OpenClaw |
Why I made this
OpenClaw has official Discord integration, but it assumes the Bot and Gateway run on the same machine.
In reality, you’d want to separate the GPU machine and the Bot machine. But when you do, you immediately hit some walls:
- The Gateway only binds to
127.0.0.1by default - Remote connections require token authentication
- New devices require pairing approval (and if you mess up the timing, you get stuck)
All of these are specifications, not bugs, but they are completely undocumented.
This project provides the working code and documentation to overcome all of those barriers.
Architecture
Smartphone / PC (From anywhere)
| Discord
v
Discord Bot (Host A) -- WebSocket --> OpenClaw Gateway (Host B)
LAN |
v
AI Agent (Codex etc.)
The Bot and OpenClaw run on separate machines. Linux or Windows, any combination works. Even if one goes down, the other stays alive.
Screenshots
Questions and Answers with AI


Execution Result Display after Approval


For more details
- GitHub: discord-openclaw-relay — Setup guide, all commands, and troubleshooting
- Practical Deployment Guide: The undocumented walls you will actually hit and their solutions
Requirements
- Python 3.11+
- Discord Bot Token
- An OpenClaw Gateway reachable on the LAN
git clone https://github.com/superdoccimo/discord-openclaw-relay.git
cd discord-openclaw-relay
cp .env.example .env # Edit and configure
pip install -r requirements.txt
python src/main.py
License
MIT

