OpenSIN SDK
The @opensin/sdk (TypeScript) and opensin-ouroboros (Python) packages provide the core building blocks for the OpenSIN-AI ecosystem.
Vision
The SDK is designed to be Engine-Agnostic. It provides a high-level orchestration layer that can swap between the TypeScript Runtime (Standard) and the Rust Engine (High-Performance) seamlessly.
Key Packages
| Package | Language | Role |
|---|---|---|
@opensin/sdk | TypeScript | Primary orchestration and plugin layer |
@opensin/agent-sdk | TypeScript | Specialized tools for building A2A agents |
opensin-ouroboros | Python | Data processing and Python-based worker logic |
Installation
bash
# Node.js / Bun
bun add @opensin/sdk
# Python
pip install opensin-ouroborosCore Modules
⚡ Agent Loop
The heart of every agent. Handles the ReAct cycle, token counting, and tool execution.
🛠️ Tool System
A unified interface for local (MCP) and remote (A2A) tools.
🧠 Memory & Context
Advanced context pruning and persistent memory storage.
The 2026 Sovereign Standard
Every SDK interaction follows the A2A-First Mandate:
- Never hardcode API keys; use the Passwordmanager hooks.
- Never use direct LLM calls; use the
opencode runabstraction. - Always provide Evidence-First logs for debugging.