Skip to content
Orqen Docs

Python SDK

Installation

Agent traffic uses the SDK you already have — Anthropic, OpenAI, or AWS Bedrock — pointed at Orqen. No Orqen-specific package is required for LLM calls. A native management SDK is coming soon; use REST until then.

Agent requests

Orqen supports three native SDK formats — use whichever you already have:

Anthropic SDKbase_url=https://api.orqen.app
OpenAI SDKbase_url=https://api.orqen.app/v1
AWS Bedrock boto3endpoint_url=https://api.orqen.app
pip install openai
OpenAI SDK
from openai import OpenAI

client = OpenAI(
    api_key="sk-orq-YOUR_KEY",
    base_url="https://api.orqen.app/v1",
)

Account management

Until the native management SDK ships, use httpx or requests against the account REST API. See SDK reference and the API reference.

Do not install pip install orqen for clients

The orqen PyPI package runs the Orqen API server (FastAPI), not a Python client.

Environment variables

ORQEN_API_KEY=sk-orq-YOUR_KEY
# OpenAI SDK only — Anthropic/Bedrock use their own base URLs (see above)

Versioning

Orqen accepts the Anthropic, OpenAI, and Bedrock native request formats without shape changes. Your existing SDK version works as-is — no Orqen-specific client code required for LLM calls.