Skip to main content

Client helper for ProxyLLM, the OpenAI-compatible LLM gateway: one-line OpenAI client wiring plus the autonomous email-OTP account signup flow.

Project description

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.

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

proxyllm_client-1.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

proxyllm_client-1.0.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file proxyllm_client-1.0.1.tar.gz.

File metadata

  • Download URL: proxyllm_client-1.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for proxyllm_client-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f1de58d1692ac8bfc809d0f742fe70fd9cbe6ad58c647579f4e8503997cd23f0
MD5 5ff08a55cf2034bb38132abc4b522e3a
BLAKE2b-256 00c739dc01f9bbccb0aff768b87dbcd454b7f838fbe93ab4ce02f010ede0b67d

See more details on using hashes here.

File details

Details for the file proxyllm_client-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for proxyllm_client-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65a933bc8339b3b64718596f2685d2f8bb577b377565c358cbbd9ca58e38d4bd
MD5 f410f4d69fdc9220bb57b1d697fc3950
BLAKE2b-256 f46650cb624f00e6ccf2d3ac9dc994b34c876b715d30523fad5ed8ea114a0a62

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