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.2.0.tar.gz
(8.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file orbitrage-0.2.0.tar.gz.
File metadata
- Download URL: orbitrage-0.2.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d521cb22131b5a171f2c25bebf187179af2832cba9607d119161d61522f41821
|
|
| MD5 |
749a1eb8448a5385e2b82d17e78c218b
|
|
| BLAKE2b-256 |
aa2b8cbb685e0c9b10ae73771f7f668f56c3066c4b09438279940427f9af196a
|
File details
Details for the file orbitrage-0.2.0-py3-none-any.whl.
File metadata
- Download URL: orbitrage-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f754debcdb06935dcd9651b981a5d30aee1914d7d8c1efe259f5a0a6836aa7ea
|
|
| MD5 |
8f94dd36ee6c32236df9cc0138a6668d
|
|
| BLAKE2b-256 |
99b4c17f5352c9129c7ac8c07923487930f364b450f2a320ce62287808f80173
|