Skip to main content

One-line observability + intelligent LLM routing for Python agents.

Project description

orbitrage

One-line observability + intelligent LLM routing for Python agents.

import orbitrage
orbitrage.init("orb_xxx_yyy")          # one line. that's it.

# now any OpenAI / Anthropic / LangChain call you make is auto-traced
# AND can be auto-routed via:
from openai import OpenAI
client = OpenAI(base_url="https://orbitrage.xyz/api/v1", api_key="orb_xxx_yyy")

What it does

  • Zero-latency observability: non-blocking batch span export — your hot path stays at LLM-call speed, not LLM-call + telemetry RTT.
  • Auto-instruments OpenAI, Anthropic, LangChain, LlamaIndex, etc. via OpenLLMetry under the hood.
  • One endpoint: https://orbitrage.xyz/api/telemetry — auth via your Orbitrage API key.
  • Decorators for grouping multi-step workflows:
from orbitrage import workflow, task

@workflow("checkout_flow")
def checkout(user_id):
    plan = planner.invoke(...)
    out  = executor.invoke(...)
    return formatter.invoke(...)

Install

pip install orbitrage

Redacting prompts (opt-out)

Prompt + completion text is captured by default so it renders in the Orbitrage dashboard. To redact content (token counts, costs, and routing decisions still flow):

orbitrage.init("orb_xxx", capture_content=False)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orbitrage-0.3.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orbitrage-0.3.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file orbitrage-0.3.0.tar.gz.

File metadata

  • Download URL: orbitrage-0.3.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for orbitrage-0.3.0.tar.gz
Algorithm Hash digest
SHA256 49eb78776d1fa97282fff855700ab2d773425c4c7d99687c9277abc8114ff288
MD5 4fb1f8cdac0f2e0bff7bff63ab8fd9c9
BLAKE2b-256 11b73307474bdad82f4d54e6977dd7133a9c9139e43aeb79da4fd9d2b4d5a18e

See more details on using hashes here.

File details

Details for the file orbitrage-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: orbitrage-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for orbitrage-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4234ec6074e978f8bc35dd1b761f71aeaa7b0f4e3501ebf7f87d806abd33095d
MD5 226ad80c6c40fb90c31b152d77c22300
BLAKE2b-256 2bd51a138accfcf0b1fcbfc1d7e142facc1a05043d014db7b557f992a68990dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page