relayswitch
Python client for RelaySwitch: one API key for Claude, GPT, Gemini, DeepSeek, Qwen, Kimi, GLM and more, built for coding agents and paid by card or crypto. The API speaks the OpenAI and Anthropic formats, so you keep the official SDKs.
pip install "relayswitch[openai]" # or [anthropic], or [all]
export RELAYSWITCH_API_KEY="..."
Get a key at app.relayswitch.io/console. Credit is prepaid from $10, with no subscription.
OpenAI SDK
import relayswitch
client = relayswitch.openai_client()
reply = client.chat.completions.create(
model="claude-opus-5-5",
messages=[{"role": "user", "content": "Say hi in five words."}],
)
print(reply.choices[0].message.content)
Anthropic SDK
import relayswitch
client = relayswitch.anthropic_client()
msg = client.messages.create(
model="claude-sonnet-5-5",
max_tokens=200,
messages=[{"role": "user", "content": "Say hi in five words."}],
)
print(msg.content[0].text)
Prices, no key needed
import relayswitch
for m in relayswitch.models():
p = m["pricing"]
print(f'{m["id"]:<40} ${p["input"]}/${p["output"]} per 1M tokens')
Without this package
Set OPENAI_BASE_URL or ANTHROPIC_BASE_URL to https://api.relayswitch.io/v1 and use your key.
- Models and prices: relayswitch.io/models
- Daily real-model check: relayswitch.io/proof
- Setup guides: relayswitch.io/guides
Run by Uplink Switch LLC.
Metadata
Release files for relayswitch 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| relayswitch-0.1.0.tar.gz | 3.0 kB | Without provenance | Details for relayswitch-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| relayswitch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for relayswitch-0.1.0-py3-none-any.whl |
Total release size: 6.7 kB
Release files / relayswitch-0.1.0.tar.gz
| Download URL | relayswitch-0.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
448205d03e9dd83a96a8c64a6365d3c66d7312a73bbe548b28d4df02d9f614ed
|
|
BLAKE2b-256 checksum How to use checksums |
9c96be0f5b289ef6643ec543ef889afa4668117063617efe441222f0b97f7e7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / relayswitch-0.1.0-py3-none-any.whl
| Download URL | relayswitch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32ab542169bdcda50d54c8f9468e7f5b226bd5a3e34d3c7b82602fc553787d5c
|
|
BLAKE2b-256 checksum How to use checksums |
8449d6cbb0fc98edf656a25c8fe20499b95efae9f92d0a0412c39e64f6bb3ff2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for relayswitch 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.