OpenClaw + Discord: How to Access Your Home AI from Anywhere

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

CommandWhat it does
!aiAsk the AI questions (Uses OpenClaw models like Codex / GPT-5.3 as-is)
!memoCreate memos while conversing with the AI, auto-saving to Obsidian
!sumAttach and summarize files
!tr ja HelloTranslate
!approveServer management approval flow (reef-bridge integration)
!statusCheck 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.1 by 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

AI Response

Execution Result Display after Approval

Execution Complete

For more details

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

If you like this article, please
Follow !

Please share if you like it!
table of contents