opencode-bridge

Bridge OpenWork UI and OpenCode runtime via CLI, SQLite, and MCP.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/shynlee04/idumb-v2 --skill opencode-bridge-shynlee04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode-bridge
Source: https://github.com/shynlee04/idumb-v2/tree/main/.windsurf/skills/opencode-bridge
Command: npx skills add https://github.com/shynlee04/idumb-v2 --skill opencode-bridge-shynlee04

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a robust bridge for seamless communication between the OpenWork UI and the OpenCode AI runtime, enabling efficient interaction through CLI, database access, and real-time MCP communication.

Core Features & Use Cases

  • CLI Invocation: Execute OpenCode commands directly with prompts and receive structured JSON responses.
  • Database Access: Query OpenCode's SQLite database for session history, messages, and cost data.
  • MCP Bridge: Facilitate real-time, bidirectional communication for advanced features like permission prompts and streaming updates.
  • Use Case: A developer can use this Skill to programmatically trigger code generation tasks in OpenCode, retrieve the results, and log them into a project management tool via the OpenWork UI.

Quick Start

Execute the opencode CLI tool with the prompt "Write a Python function to calculate Fibonacci numbers" in quiet JSON output mode.

Frequently Asked Questions about opencode-bridge

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect OpenWork UI to OpenCode runtime for AI tasks?

OpenCode CLI invocation supports non-interactive execution by passing prompts directly and returning structured JSON output. This allows you to programmatically trigger commands and receive machine-readable responses without manual input.

Can I query the OpenCode SQLite database for session history and messages?

Yes, you can query the OpenCode SQLite database directly to retrieve session history, messages, and cost data. This database access method provides a way to extract historical runtime information for logging or analysis.

Does the OpenCode MCP bridge support real-time bidirectional communication?

The MCP bridge facilitates real-time bidirectional communication for advanced features like permission prompts and streaming updates. It integrates with Tauri and SolidJS to enable live data access and command execution between UI and runtime.

What is the best way to retrieve OpenCode AI results into a project management tool?

The best way to retrieve OpenCode results is using non-interactive CLI execution with JSON output mode. You can trigger code generation tasks, receive structured responses, and log them into external tools via the OpenWork UI integration.

Do I need Tauri and SolidJS to use the OpenCode MCP bridge?

The OpenCode MCP bridge integrates with Tauri and SolidJS for data access and command execution within the OpenWork environment. These frameworks are utilized to facilitate the real-time communication and UI data binding required by the bridge.