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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 proxyllm_client-1.0.0.tar.gz.
File metadata
- Download URL: proxyllm_client-1.0.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54b524c8e0a4c2adc07c0f2ca6bcce77ff9b386e3c8fde44d985784ae5743de5
|
|
| MD5 |
c6947a13c14b66defd689f4238022269
|
|
| BLAKE2b-256 |
c8eb3bfb45c6a3e2375331befea21d59b0ae67829970d0369e91e03c87090982
|
File details
Details for the file proxyllm_client-1.0.0-py3-none-any.whl.
File metadata
- Download URL: proxyllm_client-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e60edf8fe2d8c40222d4a8e62b81680cc5137d48a2dbf60a08bf1fd90d0e92f
|
|
| MD5 |
69d92f4988cf6d33b7db00d305f87a42
|
|
| BLAKE2b-256 |
89be26e1b78cb57a03a65f5827cf036ebd4999e193b9014d26a6e313e241b4c4
|