Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

OriginLM Python SDK (originlm)

Alpha. Not yet published to PyPI; prepare a local platform wheel from source (see quickstarts).

from originlm import Client
with Client.auto() as ai:
    print(ai.mode, ai.fallback_reason, ai.snapshot.get()['revision'])

Automatic startup uses a granted shared broker or the packaged private helper. A protocol mismatch can select the private helper; authorization failure is fatal.

An async-first native-helper client with a synchronous facade. Python 3.11+, no runtime third-party dependencies. Imports do not inspect the filesystem, read accounts, start a process, or make network requests.

from originlm import AsyncClient, AsyncStdioTransport

transport = await AsyncStdioTransport.open(
    executable="/absolute/path/to/originlm",
    args=["serve", "--stdio"],
)
async with await AsyncClient.connect(transport) as ai:
    snapshot = await ai.snapshot.get()

Synchronous callers can use with Client.from_stdio(executable=..., args=...) as ai: ai.snapshot.get(). Inside an existing event loop use AsyncClient, not the synchronous facade. The sync facade pumps its private event loop during calls; continuous high-volume event consumers should use the async client.

This client speaks OriginLM's public JSON-RPC protocol, not Codex/ACP directly. It needs the native originlm helper (see native helper). Unit tests use synthetic native peers; the package smoke test runs the built wheel against the real helper with no provider inference.

Requests have bounded frames, correlation, deadlines, native error redaction, no automatic retries, and explicit owned-helper cleanup. asyncio cancellation cancels the local RPC wait, not necessarily a turn already accepted by the service. Use turns.cancel with its turn ID for native turn cancellation. Subscription queues are bounded and report EVENT_GAP rather than silently dropping output.

Only safe environment names are inherited by default. The caller explicitly supplies any additional environment entries. This is not a sandbox; the native helper must enforce grants, workspace/tool restrictions, billing, approvals, and cleanup of agent descendants. The SDK terminates only its own helper.

Domain types are generated from the Rust contracts (originlm.generated, plain TypedDicts). Responses stay dictionaries preserving the server's evidence and native values. There is no independent Python HTTP transport; use automatic startup, local IPC or stdio. No discovery/provider logic is duplicated in Python.

Tests: python -m unittest discover -s packages/sdk-python/tests -v from the repository root. All account values in fixtures are synthetic. The package is marked private and is not published to a registry.

Metadata

Release files for originlm 0.1.0a25

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

Built distributions (wheels)

Table of built distributions (wheels) for originlm 0.1.0a25
File Actions
originlm-0.1.0a25-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for originlm-0.1.0a25-py3-none-win_amd64.whl
originlm-0.1.0a25-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for originlm-0.1.0a25-py3-none-manylinux_2_28_x86_64.whl
originlm-0.1.0a25-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for originlm-0.1.0a25-py3-none-manylinux_2_28_aarch64.whl
originlm-0.1.0a25-py3-none-macosx_15_0_x86_64.whl Python 3 none macOS 15.0+ x86-64 Details for originlm-0.1.0a25-py3-none-macosx_15_0_x86_64.whl
originlm-0.1.0a25-py3-none-macosx_15_0_arm64.whl Python 3 none macOS 15.0+ ARM64 Details for originlm-0.1.0a25-py3-none-macosx_15_0_arm64.whl

Total release size: 45.9 MB

Release files / originlm-0.1.0a25-py3-none-win_amd64.whl

Download URL originlm-0.1.0a25-py3-none-win_amd64.whl
Size 8.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
a001edd9827f21b2530f82078b96fca3a82e24b423fd0fcd8f7f6d37658cbe49
BLAKE2b-256 checksum
How to use checksums
1074949347c4ff9d7ecb7497591ab9e3f199c091e403c5f900cf2bdf867ef782
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / originlm-0.1.0a25-py3-none-manylinux_2_28_x86_64.whl

Download URL originlm-0.1.0a25-py3-none-manylinux_2_28_x86_64.whl
Size 9.8 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
ee05e28e4c631d7a13cc90b55dc5d5075b00ba32f7ec07209228b7e3e459b856
BLAKE2b-256 checksum
How to use checksums
6a400b75b00e50093477989a5489e5068a4ac64deed24c287f8ee024ca14fcaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / originlm-0.1.0a25-py3-none-manylinux_2_28_aarch64.whl

Download URL originlm-0.1.0a25-py3-none-manylinux_2_28_aarch64.whl
Size 9.5 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
ea480137c65b02229dc25f79a631b915cf5e3c939a9eaddf77662cef76f9ce1f
BLAKE2b-256 checksum
How to use checksums
79f26ece10bd1502c570357c57f73a25092b9699f62d60d8d5ca9b591b600c29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / originlm-0.1.0a25-py3-none-macosx_15_0_x86_64.whl

Download URL originlm-0.1.0a25-py3-none-macosx_15_0_x86_64.whl
Size 9.3 MB
Tags Python 3 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
8bbb2ca465e41db8deec4dbd91b19bcb161beb12c744a598e764dca86df1aa2b
BLAKE2b-256 checksum
How to use checksums
35b8f01fbbc7b894dd3008bf87abffd4804bc76a531882604bdceef30168fe3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / originlm-0.1.0a25-py3-none-macosx_15_0_arm64.whl

Download URL originlm-0.1.0a25-py3-none-macosx_15_0_arm64.whl
Size 8.8 MB
Tags Python 3 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
839c3db93c8cfb8e38b5ec6b8f70b380db7cc1393dd12fb3a9c65cfa822cec45
BLAKE2b-256 checksum
How to use checksums
ff0be2e5b7a83e7f23d717c9416d6c016cf575a67f52359d2cf64b54ff3c09f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Security for originlm 0.1.0a25

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 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for originlm-0.1.0a25-py3-none-win_amd64.whl

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 Nov 2, 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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