{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/19"}],"enrichment":{"capability":"Provides a Python client library for the Opencode REST API with synchronous and asynchronous interfaces, type-safe request/response handling via Pydantic, and built-in error handling and retry logic.","skillfed_tags":["rest-api-client","async-http","type-safe"],"use_cases":["Build applications that interact with Opencode sessions, events, or other resources via a type-safe Python interface","Integrate Opencode API calls into async Python services or event-driven architectures using AsyncOpencode","Stream Server Side Events from Opencode endpoints with built-in iteration support","Handle API errors and retries automatically without writing custom retry logic","Access raw HTTP response headers and metadata via .with_raw_response or .with_streaming_response"],"what_it_does":"Opencode-ai is an official Python SDK for the Opencode REST API, generated with Stainless. It wraps HTTP calls to the Opencode service and provides both synchronous and asynchronous clients powered by httpx, with optional aiohttp backend support for improved async concurrency. All request parameters and response fields are typed using Pydantic models and TypedDicts, enabling IDE autocomplete and type checking.\n\nThe library handles common REST API concerns: automatic retries for transient failures (connection errors, timeouts, 429s, 5xx errors), configurable timeouts and retry counts, and a hierarchy of error types (APIConnectionError, APIStatusError, RateLimitError, etc.) for granular error handling. It supports streaming responses via Server Side Events and provides helpers for serializing responses to JSON or dictionaries. Runtime dependencies are minimal and stable (anyio, httpx, pydantic, distro, sniffio, typing-extensions).","worth_installing":"Yes, if you need to call the Opencode API from Python. The library is well-structured with type safety, async support, and sensible defaults. However, note that it is in pre-release (0.1.0a36) and the project shows aging maintenance (last commit 2026-01-30), so expect slower updates and potential breaking changes in future releases. Verify that the Opencode service and your authentication method are available before committing to this dependency."},"id":"opencode-ai","links":{"html":"https://skillfed.io/packages/opencode-ai","md":"https://skillfed.io/packages/opencode-ai.md","pypi":"https://pypi.org/project/opencode-ai/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-08-27","license_spdx":null,"license_treatment":"permissive","name":"opencode-ai","python_support":"supports_current","summary":"The official Python library for the opencode API"},"popularity":{"monthly_downloads":115983,"position":12224,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.0a36"}
