Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
wentorai avatar

Opencode Cli

  • 11 installs
  • 849 repo stars
  • Updated August 1, 2026
  • wentorai/research-claw

Helps with ai & agent building tasks during AI-assisted development.

About

opencode-cli is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • opencode-cli
  • AI & Agent Building
  • AI-coding skill

Opencode Cli by the numbers

  • 11 all-time installs (skills.sh)
  • Ranked #11,740 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/wentorai/research-claw --skill opencode-cli

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs11
repo stars849
Last updatedAugust 1, 2026
Repositorywentorai/research-claw

What it does

Helps with ai & agent building tasks during AI-assisted development.

Files

SKILL.mdMarkdownGitHub ↗

OpenCode CLI

Terminal-based AI coding agent supporting multiple LLM providers (OpenAI, Anthropic, Google, local models). Features a TUI for interactive use and run command for automation.

Detect Installation

which opencode  # should return a path
opencode --version

Install

# Recommended (automated)
curl -fsSL https://opencode.ai/install | bash

# npm
npm install -g opencode-ai

# Homebrew (macOS/Linux)
brew install anomalyco/tap/opencode

# pnpm
pnpm install -g opencode-ai

Requires API keys for your chosen LLM provider (configured via /init on first run).

Non-Interactive Usage (run)

For programmatic invocation from Research-Claw, use opencode run:

# Basic non-interactive execution
opencode run "Refactor the auth module to use dependency injection"

# With model selection (provider/model format)
opencode run -m anthropic/claude-sonnet-4-20250514 "Fix all type errors"

# Attach files for context
opencode run -f src/config.ts -f README.md "Update the config schema"

# JSON output for parsing
opencode run --format json "List all exported functions"

# Continue a previous session
opencode run -c "Now add tests for what you just implemented"

# Continue a specific session
opencode run -s <session-id> "Fix the remaining issues"

Key Flags

FlagDescription
-m, --model <provider/model>Model in provider/model format
-f, --file <path>Attach file(s) to the message (repeatable)
--format <fmt>Output format: default or json
-c, --continueContinue last session
-s, --session <id>Continue a specific session by ID
--forkFork session when continuing (new branch)
--shareShare the session
--agent <name>Specify which agent to use
--attach <url>Connect to running server (e.g. http://localhost:4096)
--log-level <level>DEBUG / INFO / WARN / ERROR

Research-Claw exec Patterns

# Delegate a complex coding task
exec("opencode run -m anthropic/claude-sonnet-4-20250514 'Implement the feature described in TODO.md'")

# With file attachments for context
exec("opencode run -f README.md -f src/schema.ts 'Add validation based on the schema'")

# JSON output for structured results
exec("opencode run --format json 'List all API endpoints in this project'")

# Using persistent server for multiple tasks
exec("opencode run --attach http://localhost:4096 'Run the test suite and fix failures'")

Docs

  • CLI docs: https://opencode.ai/docs/cli/
  • Getting started: https://opencode.ai/docs

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.