Skip to main content

proxyllm-client

Client helper for ProxyLLM, the OpenAI-compatible LLM gateway. One routing key rides provider lanes with fallback (a flat-fee ChatGPT/Codex subscription, self-hosted Claude Code bridges, metered API keys), budgets, and request logs.

pip install proxyllm-client[openai]

Point the OpenAI SDK at the gateway:

import proxyllm_client

client = proxyllm_client.OpenAI(api_key="pllm_...")
client.chat.completions.create(model="flagship", messages=[{"role": "user", "content": "hi"}])

Or set two environment variables and change nothing else: OPENAI_BASE_URL=https://api.proxyllm.ai/v1, OPENAI_API_KEY=pllm_....

Agents can create the account themselves (email OTP, no captcha or browser):

proxyllm_client.signup("operator@example.com")          # code lands in the inbox
r = proxyllm_client.verify("operator@example.com", "123456")
token = r["account_token"]                               # sk_..., returned once

state = proxyllm_client.account(token)                   # 402 payload until a human pays:
print(state["payment"]["checkout_url"])                 # relay this to your operator
# poll account(token) until state["plan"] == "pro", then:
key = proxyllm_client.create_routing_key(token, label="agent")["raw_key"]

Unpaid accounts answer HTTP 402 with the checkout link, the flat price ($129/mo), and the 48-hour removal deadline; error bodies are returned as values because they contain the next step. Free helpers: models(), key_info(routing_key), savings(monthly_bill).

Full agent flow: https://proxyllm.ai/auth.md. OpenAPI: https://proxyllm.ai/openapi.json. MCP server: npx -y proxyllm-mcp.

Release files for proxyllm-client 1.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 proxyllm-client 1.0.1
File Size Uploaded
proxyllm_client-1.0.1.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for proxyllm-client 1.0.1
File Interpreter ABI Platform
proxyllm_client-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / proxyllm_client-1.0.1.tar.gz

Download URL proxyllm_client-1.0.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f1de58d1692ac8bfc809d0f742fe70fd9cbe6ad58c647579f4e8503997cd23f0
BLAKE2b-256 checksum
How to use checksums
00c739dc01f9bbccb0aff768b87dbcd454b7f838fbe93ab4ce02f010ede0b67d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / proxyllm_client-1.0.1-py3-none-any.whl

Download URL proxyllm_client-1.0.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65a933bc8339b3b64718596f2685d2f8bb577b377565c358cbbd9ca58e38d4bd
BLAKE2b-256 checksum
How to use checksums
f46650cb624f00e6ccf2d3ac9dc994b34c876b715d30523fad5ed8ea114a0a62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

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