Skip to main content

octoryn-llm

Official Python client for the independent Octoryn Router.

Install

pip install octoryn-llm

Quickstart

import os
from octoryn import Octoryn

client = Octoryn(api_key=os.environ["OCTORYN_API_KEY"])
result = client.chat.completions.create(
    model="openai/gpt-4.1-mini",
    messages=[{"role": "user", "content": "Hello"}],
)
print(result.choices[0].message.content)

The default base URL is https://api.octoryn.dev/v1. Service credentials need the Router route scope.

Supported wire resources

  • Inference: chat.completions, completions, responses, embeddings, moderations, and rerank.
  • Catalogue: models and providers.
  • Management: keys, governance, route.simulate, and operations.

Management resources require their documented Router scopes and are kept separate from inference resources. Key creation and revocation require an explicit idempotency key; revocation also requires a reason code.

The production Router does not expose the former Gateway audio, image, video, realtime, BYOK, usage-run, audit-run, agent, document, memory, knowledge, or skills endpoints. Those methods were removed in v3 instead of remaining as methods that always return 404. The octoryn.openai_compat alias raises NotImplementedError for absent OpenAI surfaces.

Framework integrations are optional and use Chat Completions only:

pip install "octoryn-llm[langchain]"
pip install "octoryn-llm[llamaindex]"

The checked-in production method/path manifest is ../../contracts/router-api-v1.json. Run python3 ../../scripts/sdk/check_router_contract.py --live before release.

Metadata

Release files for octoryn-llm 3.0.1

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

Source distribution (sdist)

Source distribution for octoryn-llm 3.0.1
File Size Uploaded Provenance
octoryn_llm-3.0.1.tar.gz 264.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for octoryn-llm 3.0.1
File Interpreter ABI Platform
octoryn_llm-3.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 285.2 kB

Release files / octoryn_llm-3.0.1.tar.gz

Download URL octoryn_llm-3.0.1.tar.gz
Size 264.9 kB
Tags Source
SHA-256 checksum
How to use checksums
68c056c3d544167828238e826a263a08530acc0d95f80031c5aff279d429e72f
BLAKE2b-256 checksum
How to use checksums
bbfe0343f99385ab6f5bb959e503b1ac642a75772592bf27775e2c52b1e82abb
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 Aug 1, 2026.

Transparency log

Release files / octoryn_llm-3.0.1-py3-none-any.whl

Download URL octoryn_llm-3.0.1-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
996b2be9267b191b5a29bc3fcc928b0d96812fff69cd8cb24073f3f7189df80e
BLAKE2b-256 checksum
How to use checksums
1e644db17ab22ec9b26565ae2d5165f37e13cc14722ba741e1cc1e8c1bfedf1a
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 Aug 1, 2026.

Transparency log

Security for octoryn-llm 3.0.1

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 octoryn_llm-3.0.1.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 Aug 1, 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