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.0a24

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.0a24
File Actions
originlm-0.1.0a24-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for originlm-0.1.0a24-py3-none-win_amd64.whl
originlm-0.1.0a24-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for originlm-0.1.0a24-py3-none-manylinux_2_28_x86_64.whl
originlm-0.1.0a24-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for originlm-0.1.0a24-py3-none-manylinux_2_28_aarch64.whl
originlm-0.1.0a24-py3-none-macosx_15_0_x86_64.whl Python 3 none macOS 15.0+ x86-64 Details for originlm-0.1.0a24-py3-none-macosx_15_0_x86_64.whl
originlm-0.1.0a24-py3-none-macosx_15_0_arm64.whl Python 3 none macOS 15.0+ ARM64 Details for originlm-0.1.0a24-py3-none-macosx_15_0_arm64.whl

Total release size: 45.9 MB

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

Download URL originlm-0.1.0a24-py3-none-win_amd64.whl
Size 8.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
051a11942f0fbd4935c922bfa264f6df323cf24d5380221c7a3d74722a034ba9
BLAKE2b-256 checksum
How to use checksums
49e740ffea8131b3452f1e19ca104aee7c8ce89a793a4e02a1ab80873c7c8a1d
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.0a24-py3-none-manylinux_2_28_x86_64.whl

Download URL originlm-0.1.0a24-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
16b057bf4b1216d02d406b1d4d7775e328aae0166689b152b55b8c4412304881
BLAKE2b-256 checksum
How to use checksums
ebd853fe73eab20c9dbec17e56f2397c164123eb37399bc99132955a35a98703
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.0a24-py3-none-manylinux_2_28_aarch64.whl

Download URL originlm-0.1.0a24-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
196498ebbdfe1df6c5ef8e3eda132e16f41662b29d8bd0b2775da5952515e0c6
BLAKE2b-256 checksum
How to use checksums
0219b8c13f596f7f7c6b7a85fe240b1bf861dd6fe862f9207a57b5c5d3b3b16e
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.0a24-py3-none-macosx_15_0_x86_64.whl

Download URL originlm-0.1.0a24-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
8579b3dd4b9358497ab8846c121e97cc87ba0f7af03f731b3d64666486af4fa4
BLAKE2b-256 checksum
How to use checksums
ee3428ae06b6c3826521440f21b8cfe03af6127f2d3b1e793b25e121736dcfd4
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.0a24-py3-none-macosx_15_0_arm64.whl

Download URL originlm-0.1.0a24-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
f084e0c2572740882ad24b0026a06dde5736b593140eb0980f3115d6925c2373
BLAKE2b-256 checksum
How to use checksums
84ea15721eb07c82a373eefd2ec5a564f31f27a0989ba4736ea374d1d9afd240
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.0a24

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.0a24-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