OpenCode for Openclaw

OpenCode is a specialized open-source AI coding subagent designed to handle complex multi-file projects and game development via the Agent Client Protocol.

jadegaul
v1.0.0
Apr 8, 2026
0
710
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install opencode-games

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-games 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?

OpenCode is a robust, provider-agnostic AI coding agent that integrates seamlessly into the Openclaw Skills ecosystem using the Agent Client Protocol (ACP). It is designed to act as a dedicated subagent for heavy-duty development tasks, such as building entire web applications, complex refactoring, and structured game development. Unlike general-purpose assistants, OpenCode focuses on production-ready code generation with full file system access and shell execution capabilities.

As a core component of Openclaw Skills, OpenCode allows developers to switch between various AI providers, including OpenAI, Claude, and local models. Its architecture supports both interactive TUI modes and headless server operations, making it a versatile tool for any automated coding workflow.

OpenCode Use Cases

  • Building production-ready HTML5 games from scratch using single-prompt instructions.
  • Generating and managing multi-file project structures with consistent architecture.
  • Executing large-scale code refactoring across multiple directories simultaneously.
  • Automating bug fixes by spawning specialized subagents to analyze and repair existing code.
  • Running parallel development builds to create multiple components or games at once.

How OpenCode Works

  1. The user initiates a coding task by invoking the opencode skill through Openclaw Skills.
  2. OpenCode spawns as an ACP subagent, establishing a JSON-RPC connection over stdio for secure communication.
  3. The subagent analyzes the project context and workspace requirements based on the provided task description.
  4. OpenCode performs necessary file operations, including reading, writing, and executing shell commands to build the project.
  5. Developers can steer the agent in real-time or run it in one-shot mode for autonomous completion.
  6. Upon completion, the subagent provides a summary of changes and allows for immediate testing or further iteration.

OpenCode Setup

To get started with OpenCode within your Openclaw Skills environment, you need to configure the ACP server and your preferred AI providers.

# Initialize the ACP server for subagent communication
opencode acp

# Configure your AI models and API keys
opencode providers

# Verify your installation and available models
opencode models

OpenCode Data Schema & Taxonomy

OpenCode manages data through structured sessions and workspace interactions. The following table describes the primary data elements used during a build session:

Attribute Description
runtime The protocol used for the agent (standardly set to acp)
agentId The identifier for the subagent, typically opencode
task The natural language string defining the development goal
mode Execution type, such as run for one-shot or session for interactive
cwd The current working directory where the code resides

OpenCode Advanced Features

  • Support for parallel execution, enabling the simultaneous build of multiple complex projects.
  • Specialized built-in agents including build for development, plan for analysis, and @general for research.
  • Language Server Protocol (LSP) integration for high-quality code intelligence and navigation.
  • Provider-agnostic design allowing seamless switching between top-tier LLMs and local models.
  • Session management tools including undo/redo functionality and shareable session links.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*