Skip to main content

orcha-sdk

The developer SDK + emerge CLI for Metaorcha — an orchestration runtime that plans, routes, and executes one goal across agents speaking MCP, A2A, and COMPUTER_USE (ACP is accepted as an A2A-routed alias).

Register an agent in three lines:

import emerge

@emerge.agent(name="My Agent", description="What I do")
def handle(task: str) -> str:
    return f"handled: {task}"

Then serve it:

orcha-sdk run          # serve locally + register against the local registry

Install

No clone, no venv setup — just run it:

uvx orcha-sdk init my-agent

Or install it into a project:

pip install orcha-sdk

(Import name is emerge; distribution name is orcha-sdk.)

CLI

Command What it does
orcha-sdk init "My Agent" scaffold a new agent from a template
orcha … the same CLI under its short name once installed (uvx --from orcha-sdk orcha init …)
orcha-sdk run [module] serve decorated agents locally + register them against http://localhost:8000
orcha-sdk publish [module] --registry <url> register against a remote registry
orcha-sdk verify <envelope.json> verify a signed run attestation envelope offline (RFC 0003)

orcha-sdk run --no-register serves without registering. Set ORCHA_REGISTRY_URL and ORCHA_PAT to point at and authenticate against a non-local registry.

Verifying run attestations

When the runtime runs with RUN_ATTESTATION_ENABLED, every completed run is sealed into a signed orcha.run-attestation/v1 envelope (RFC 0003). Anyone holding the envelope JSON can verify it for free, fully offline:

uvx --from orcha-sdk orcha verify envelope.json          # no clone
uvx --from orcha-sdk orcha verify envelope.json --json
orcha-sdk verify envelope.json                           # after pip/uv install
cat envelope.json | orcha-sdk verify -

Verification recomputes the schema check, the step hash chain (steps_root), and the Ed25519 signature against the envelope's embedded signer.public_key_b64 — no network calls, no registry, no DID resolution.

Exit codes: 0 envelope is valid · 1 envelope is invalid (schema, chain, or signature check failed) · 2 usage/input error (unreadable file, malformed JSON, unsupported option).

valid=True means the signature and commitments are sound. It does not mean the run was accepted. A signed verdicts[] entry with result: fail still verifies: the envelope is honest about the failure. Settlement refusal is gate policy (verdict_fail on the settle audit row), never this exit code.

How it works

The decorator records your handler and declared skills. orcha-sdk run serves an A2A-compatible HTTP endpoint (/health, /.well-known/agent.json, JSON-RPC message/send / tasks/get) using only the standard library, and uploads a generated emerge.yaml to the registry. The runtime's planner can then discover and orchestrate your agent alongside agents that speak other protocols.

Licensed under Apache-2.0, as is the whole repo. See the main repo.

Metadata

Release files for orcha-sdk 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orcha-sdk 0.2.2
File Size Uploaded Provenance
orcha_sdk-0.2.2.tar.gz 70.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for orcha-sdk 0.2.2
File Interpreter ABI Platform
orcha_sdk-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 119.5 kB

Release files / orcha_sdk-0.2.2.tar.gz

Download URL orcha_sdk-0.2.2.tar.gz
Size 70.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0767fce3cf96c393cbc1d286715c578e0a37b65787a96c71c69e9a97f16fb8de
BLAKE2b-256 checksum
How to use checksums
89d657f4b4f094191a098d3885b7b3bb5ce385f7264f8a31405a18cf5bb7b5a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / orcha_sdk-0.2.2-py3-none-any.whl

Download URL orcha_sdk-0.2.2-py3-none-any.whl
Size 49.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05647ba2ce109d625c13c837b8eda1459ea95183d21b93029fb519e2c6316b24
BLAKE2b-256 checksum
How to use checksums
48ae7867bc47b934def6410be5c493c0baa91bb6f7c3ee21e70eabbce1b023d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for orcha-sdk 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for orcha_sdk-0.2.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page