opencode-cli

Control OpenCode workflows via CLI for servers, models, agents, and sessions.

1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/dzackgarza/ai --skill opencode-cli-dzackgarza
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode-cli
Source: https://github.com/dzackgarza/ai/tree/main/opencode/skills/opencode-cli
Command: npx skills add https://github.com/dzackgarza/ai --skill opencode-cli-dzackgarza

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OpenCode CLI integration enables developers to manage OpenCode workflows directly from the terminal, reducing context switching and accelerating experiments.

Core Features & Use Cases

  • Run OpenCode CLI commands to interact with models, agents, servers, and sessions from the command line.
  • Start and manage repo-local OpenCode servers for development and testing.
  • Inspect models and agents and drive sessions through the OpenCode workflow orchestration system.

Quick Start

Open a terminal and run opencode run your-prompt to start a session.

Frequently Asked Questions about opencode-cli

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

FAQPage Schema
How do I run OpenCode workflows from the command line?

Run OpenCode workflows from the command line by executing `opencode run your-prompt` in the terminal to start a session, inspect models, and drive agents without context switching.

What is a repo-local OpenCode server used for?

A repo-local OpenCode server is used for development and testing within a specific repository, allowing you to manage sessions and orchestrate workflows directly from your local environment.

Can I inspect models and agents using the OpenCode CLI?

Yes, you can inspect models and agents using the OpenCode CLI, which provides commands to interact with these components and drive sessions through the workflow orchestration system.

Does OpenCode CLI require any dependencies to manage sessions?

OpenCode CLI has no external dependencies, integrating directly with repo and global configurations to read SKILL.md frontmatter and support deterministic task execution.

How do I configure OpenCode CLI for deterministic tasks?

Configure OpenCode CLI by integrating repo and global configs, reading SKILL.md frontmatter for name and description, and supporting optional scripts, references, and assets to execute deterministic tasks.

What are the limitations of managing OpenCode sessions via the CLI?

Limitations of managing OpenCode sessions via the CLI include relying on repo-local server setups and SKILL.md frontmatter, which may restrict complex orchestration outside the defined ocm workflows.