Quickstart · ~5 minutes
Prerequisites: Python 3.12, the opencode CLI on your PATH, and Claude Desktop or any MCP client.
git clone https://github.com/Parithosh-Varma/claude-opencode-bridge.git cd claude-opencode-bridge python3.12 -m venv .venv ./.venv/bin/pip install -r requirements.txt
Merge this into ~/Library/Application Support/Claude/claude_desktop_config.json under mcpServers, replacing <REPO_PATH>. Restart Claude Desktop.
{
"mcpServers": {
"opencode-bridge": {
"command": "<REPO_PATH>/.venv/bin/python",
"args": ["<REPO_PATH>/opencode_bridge_mcp.py"],
"env": { "TASK_DB_PATH": "<REPO_PATH>/tasks.db" }
}
}
}./.venv/bin/python worker.py
./.venv/bin/python tasks_cli.py pending # what Claude is waiting onFor hands-free mode, schedule worker.py every 60s with launchd (macOS) — see the repo README for the plist.
submit_task(title="Add retry tests", working_dir="/path/to/repo", instructions="Steps, paths, acceptance criteria. Be explicit.") wait_for(task_ids=["t-…"], timeout_sec=120) get_task_result(task_id="t-…")
Need Claude on the web to reach your machine? One command pairs a tunnel with the MCP allowlist.
./start_public.sh # ngrok fixed domain if .ngrok-domain exists, else cloudflared