OpenCode Discord Thread for Openclaw

A bridge skill that delegates OpenClaw coding tasks to OpenCode while mirroring execution progress into live Discord threads.

r0s-org
v1.0.0
Apr 9, 2026
0
594
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install opencode-discord-thread

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install opencode-discord-thread using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is OpenCode Discord Thread?

The OpenCode Discord Thread skill is a powerful extension for Openclaw Skills designed to bridge the gap between local AI agent execution and team communication. It allows users to offload complex coding tasks from OpenClaw to a local OpenCode instance while maintaining full visibility. By mirroring the agent's progress into Discord, developers and teams can observe file modifications, test results, and reasoning steps in real-time.

This skill is specifically optimized for Z.AI Coding Plan workflows, ensuring compatibility with GLM models and authenticated provider sessions. It transforms Discord from a simple chat app into an observer surface for your AI-driven development cycle, making it an essential tool for developers who require transparency in their automated workflows.

OpenCode Discord Thread Use Cases

  • Delegating multi-step coding features from OpenClaw to a dedicated OpenCode execution environment.
  • Providing live visibility of AI agent progress to team members within an existing Discord thread.
  • Creating a persistent, searchable record of AI-driven code changes and reasoning in project communication channels.
  • Managing Z.AI Coding Plan executions via Openclaw Skills while keeping the execution local to the developer's machine.

How OpenCode Discord Thread Works

  1. The skill identifies the target repository, Discord thread or channel ID, and the specific coding prompt.
  2. It verifies the local environment for an authenticated OpenCode installation and Z.AI Coding Plan access.
  3. The bridge script initiates an OpenCode run in JSON format to capture granular execution events.
  4. Real-time data is streamed to Discord, where the skill manages a rolling status message to show current progress.
  5. Upon completion, the skill posts a final summary and transcript chunks to the thread for immediate review.

OpenCode Discord Thread Setup

To use this skill, ensure that opencode is installed and authenticated via the Z.AI Coding Plan provider. You must also have a valid Discord bot token set in your environment.

# Authenticate OpenCode
opencode auth login

# Export Discord Token
export DISCORD_BOT_TOKEN='your_token_here'

# Run the bridge to a specific thread
python3 skills/opencode-discord-thread/scripts/run_opencode_discord_bridge.py \
  --repo /path/to/repo \
  --thread-id 123456789012345678 \
  --prompt "Implement a new API endpoint for user profile updates."

OpenCode Discord Thread Data Schema & Taxonomy

The skill organizes its operation around the following data points:

Parameter Description
repo Path to the local git repository where code changes occur.
thread-id The unique Snowflake ID for an existing Discord thread.
parent-channel-id Used to spawn a new public thread if a specific thread ID is not provided.
model The specific Z.AI or provider model ID used for the coding task.
transcript A collection of event logs mirrored from the OpenCode JSON stream.

OpenCode Discord Thread Advanced Features

  • Support for warm backend attachment using the --attach flag to connect to a running OpenCode server.
  • Dynamic model discovery that prevents failures when Z.AI updates its model catalog.
  • Automatic thread creation with custom naming conventions for better organization within Discord channels.
  • High-fidelity event mirroring that distinguishes between code edits, terminal commands, and agent reasoning.
  • Seamless integration into larger Openclaw Skills automation frameworks for multi-agent coordination.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*