Owpenbot
A dead simple WhatsApp + Telegram bridge to opencode serve
Install / Use
/learn @different-ai/OwpenbotREADME
Owpenbot
Dead simple WhatsApp and Telegram bridge on top of opencode.
Install + Run (WhatsApp)
One-command install (recommended):
curl -fsSL https://raw.githubusercontent.com/different-ai/owpenbot/dev/install.sh | bash
Or install from npm:
npm install -g owpenwork
Quick run without install:
npx owpenwork
Then follow the guided setup (choose what to configure, link WhatsApp, start).
- One-command setup (installs deps, builds, creates
.envif missing):
pnpm setup
- (Optional) Fill in
.env(see.env.example).
Required:
OPENCODE_URLOPENCODE_DIRECTORYWHATSAPP_AUTH_DIR
Recommended:
OPENCODE_SERVER_USERNAMEOPENCODE_SERVER_PASSWORD
- Run owpenwork and follow the guided setup:
owpenwork
Owpenwork keeps the WhatsApp session alive once connected.
- Pair a user with the bot (only if DM policy is pairing):
- Run
owpenwork pairing listto view pending codes. - Approve a code:
owpenwork pairing approve <code>. - The user can then message again to receive OpenCode replies.
Usage Flows
One-person flow (personal testing)
Use your own WhatsApp account as the bot and test from a second number you control.
- Run
owpenworkand choose “personal number.” - Scan the QR when prompted.
- Message yourself or from a second number; your number is already allowlisted.
Note: WhatsApp’s “message yourself” thread is not reliable for bot testing.
Two-person flow (dedicated bot)
Use a separate WhatsApp number as the bot account so it stays independent from your personal chat history.
- Create a new WhatsApp account for the dedicated number.
- Run
owpenworkand choose “dedicated number.” - Scan the QR when prompted.
- If DM policy is pairing, approve codes with
owpenwork pairing approve <code>.
Telegram (Untested)
Telegram support is wired but not E2E tested yet. To try it:
- Run
owpenwork login telegram --token <token>. - Or set
TELEGRAM_BOT_TOKENandTELEGRAM_ENABLED=true.
Commands
owpenwork
owpenwork --non-interactive
owpenwork login whatsapp
owpenwork login telegram --token <token>
owpenwork pairing list
owpenwork pairing approve <code>
owpenwork status
owpenwork doctor --reset
Defaults
- SQLite at
~/.owpenbot/owpenbot.dbunless overridden. - Config stored at
~/.owpenbot/owpenbot.json(created byowpenworkorowpenwork setup). - DM policy defaults to
pairingunless changed in setup. - Group chats are disabled unless
GROUPS_ENABLED=true.
Tests
pnpm test:unit
pnpm test:smoke
pnpm test:cli
pnpm test:npx
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
