opencode-sdk

Automate OpenCode interactions with a Rust SDK for sessions and streaming.

6|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/alpha-innovation-labs/opencode-rs-sdk --skill opencode-sdk-alpha-innovation-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode-sdk
Source: https://github.com/alpha-innovation-labs/opencode-rs-sdk/tree/main/.nexus/skills/opencode-rs-sdk
Command: npx skills add https://github.com/alpha-innovation-labs/opencode-rs-sdk --skill opencode-sdk-alpha-innovation-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires reqwest, serde_json, tokio, futures, url, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a full-featured Rust SDK for developers to communicate efficiently with the OpenCode HTTP API, enabling automation and integration in software projects.

Core Features & Use Cases

  • API Client Access: Facilitates programmatic management of sessions, messages, files, and more within Rust applications.
  • Streaming Support: Handles real-time event subscriptions via SSE to monitor session and message events.
  • Server Management: Supports starting, stopping, and managing local OpenCode server instances for testing and automation.

Quick Start

Use the SDK to create a client and initiate a session with an AI prompt with minimal setup.

Frequently Asked Questions about opencode-sdk

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

FAQPage Schema
How do I automate OpenCode API interactions in Rust?

You can automate OpenCode API interactions in Rust using this comprehensive SDK, which facilitates secure, asynchronous API calls for programmatic session management, message handling, and server control within Rust applications.

Does the Rust SDK support real-time event streaming from the OpenCode API?

Yes, the Rust SDK supports real-time event streaming by handling Server-Sent Events (SSE) subscriptions, allowing developers to monitor live session and message events directly within their Rust environments.

Can I manage local OpenCode server instances using Rust?

Yes, you can manage local OpenCode server instances using Rust, as the SDK provides built-in server management features to start, stop, and control server instances for testing and automation workflows.

What Rust dependencies are required for OpenCode API integration?

Required Rust dependencies for OpenCode API integration include reqwest, serde_json, tokio, futures, and url, which collectively enable asynchronous HTTP requests, JSON serialization, and URL parsing.

What is the best way to handle AI workflow automation in a Rust environment?

The best way to handle AI workflow automation in a Rust environment is using this SDK to interface with the OpenCode HTTP API, enabling seamless automation of AI workflows through asynchronous event handling and session management.