Skip to main content

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.

Run by Uplink Switch LLC.

Sister sites

The same gateway, sold each on its own key and console:

  • UncensoredLLM: the uncensored and abliterated builds as an API, priced per token.
  • Unrestrictable: uncensored AI chat, images and video in the browser, no key needed.
  • PentestLLM: uncensored AI for hacking and pentesting.
  • UplinkSwitch: the gateway itself: one key and one base URL for every model.

All of them: UplinkSwitch for every model, UncensoredLLM for abliterated builds, Unrestrictable for chat in the browser, PentestLLM for security work, RelaySwitch for coding agents.

Metadata

Release files for relayswitch 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for relayswitch 0.1.1
File Interpreter ABI Platform Actions
relayswitch-0.1.1-py3-none-any.whl Python 3 none any Details for relayswitch-0.1.1-py3-none-any.whl

Release files / relayswitch-0.1.1-py3-none-any.whl

Download URL relayswitch-0.1.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88e4bff3f6df87786f70d13f58cfb8e529244d255d6d2474f7b59dbd7ad36b27
BLAKE2b-256 checksum
How to use checksums
c3e0470e6ead7cf4a209bf6d963339fa92b773a90cba5c5e375e748cd6fc1bef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for relayswitch 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

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