OD

opencode-dotnet/opencode-sdk-dotnet

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

32 stars 0 forks 품질 75 트렌드 31MIT

Opencode HTTP API (pre-release; MCP 서버 계획)에 대한 Unofficial typed .NET SDK.

개요

이 프로젝트는 opencode 팀에 의해 제휴 또는 승인되지 않습니다. 패키지는 이제 OpenCodeDotNet입니다. Sdk 및 OpenCodeDotNet. 사이트맵 확장; OpenCodeAI.Sdk 및 OpenCodeAI.Sdk. 확장은 deprecated입니다. Namespaces는 변경되지 않습니다. PackageReference가 변경됩니다. 저장소는 opencode-dotnet 조직으로 이동, 이전 링크 리디렉션. opencode 서버의 .NET 클라이언트를 강력하게 입력했습니다 - 각 opencode front-end (TUI, 데스크탑, 웹 UI, 플러그인)가 사용하는 HTTP API. SDK는 OpenCode 2.x API를 사용합니다. 1.x 서버 API는 지원되지 않습니다. pinned OpenAPI 스냅샷에서 호출할 수 있습니다 — 140 생성된 HTTP 호출, 그리고 손 쓰기 전송을 통해 두 터미널 WebSocket 연결. 모든 3개의 연결 모드 작업: 개인 서버는 SDK 시작, 서버는 이미 실행되고, opencode CLI 레지스터가 있는 배경 서비스입니다. - are 릴리즈 0.9.0-preview.N. 검토된 기본 자물쇠는 공중 표면을 잠급니다, 그러나 1.0.0의 앞에 아직도 변화할 수 있습니다.

개요(AI 번역)

**► 빠른 시작 **: 설치 | 빠른 시작 | 가이드 | API 적용

공식. 이 프로젝트는 제휴 또는 승인되지 않습니다. opencode 팀.

** 새 패키지 ids 및 새로운 홈 (0.9.0-preview.5]).** 패키지는 이제 OpenCodeDotNet.Sdk 및 OpenCodeDotNet.Sdk.Extensions; OpenCodeAI.Sdk 및 OpenCodeAI.Sdk.Extensions]는 파쇄됩니다. Namespace는 변경되지 않습니다. PackageReference 변경. 저장소는 opencode-dotnet 조직으로 이동, 오래된 링크 리디렉션.

opencode 서버의 .NET 클라이언트를 강하게 입력했습니다 — 각 opencode front-end (TUI, 데스크탑, 웹 UI, 플러그인)가 사용하는 HTTP API. SDK는 OpenCode 2.x API; 1.x 서버 API는 지원되지 않습니다.


🎉 프로젝트 상태

**Pre-1.0 및 프로토콜 표면이 완료됩니다. ** **모든 142 작업 ** 핀 OpenAPI에 스냅 샷은 호출 가능 - 생성 된 HTTP 통화로 140, 두 터미널 WebSocket 연결 손 낭비 수송을 통해. 모든 3개의 연결 모드 작업: 프라이빗 서버 SDK 시작, 서버는 이미 실행되고, Opencode CLI가 등록한 배경 서비스.

  • T 릴리즈는 [T7]]입니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

opencode SDK for .NET

🚀 Quick Start: Install | Quick start | Guide | API coverage

Unofficial. This project is not affiliated with or endorsed by the opencode team.

📦 New package ids and a new home (0.9.0-preview.5). The packages are now OpenCodeDotNet.Sdk and OpenCodeDotNet.Sdk.Extensions; OpenCodeAI.Sdk and OpenCodeAI.Sdk.Extensions are deprecated. Namespaces are unchanged, so only the PackageReference changes. The repository moved to the opencode-dotnet organization, and old links redirect.

A strongly typed .NET client for the opencode server — the HTTP API that every opencode front-end (TUI, desktop, web UI, plugins) uses. The SDK speaks the OpenCode 2.x API; the 1.x server API is not supported.

await using var server = await OpenCodeServer.StartAsync();
using var client = server.CreateClient();

var created = await client.Sessions.CreateSessionAsync(new SessionCreateRequest { Title = "hello from .NET" });
Console.WriteLine($"session {created.Session.Id}");

🎉 Project Status

Pre-1.0, and the protocol surface is complete. 166 of 169 operations in the pinned OpenAPI snapshot are callable — 164 as generated HTTP calls, and the two terminal WebSocket connections through hand-written transports. All three connection modes work: a private server the SDK starts, a server you already run, and the background service that the opencode CLI registers.

  • 🚧 Releases are 0.9.0-preview.N. A reviewed baseline locks the public surface, but it can still change before 1.0.0. See CHANGELOG.md.
  • 📌 The SDK builds against a snapshot of an upstream release tag, never a live branch. spec/SNAPSHOT.md owns the exact pin and the refresh procedure.
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →