Skip to main content

RLCD Gateway

A self-hosted gateway for LLMs and decision models. Claude Code, Codex, OpenCode and any OpenAI or Anthropic SDK app route every call to the provider you choose, with the context the model no longer needs pruned to cut token costs. Apps that call Jev or open-rlcd System One decision models change only their base URL and get every decision audited and calibrated. Every request, client and cost shows in a live dashboard. One binary, no system proxy, no certificates.

RLCD Gateway dashboard

Quick start

pipx install rlcd-gateway     # or run it once: uvx rlcd-gateway
rlcd-gateway                  # proxy + dashboard on http://127.0.0.1:4777/ui/

Then point any client at it through its base URL. Its own login is kept:

ANTHROPIC_BASE_URL=http://127.0.0.1:4777 claude             # Claude Code
OPENAI_BASE_URL=http://127.0.0.1:4777/v1 python my_app.py   # any OpenAI SDK app
rlcd-gateway setup claude                                   # make it permanent (codex, opencode too; undo: rlcd-gateway undo claude)

This package ships the prebuilt rlcd-gateway binary for macOS (arm64, x64), Linux (x64, arm64) and Windows (x64), with the dashboard embedded.

Why

  • One base URL for every model. Anthropic, OpenRouter, OpenAI, Groq, Together, DeepSeek, Mistral, Ollama, vLLM, LM Studio… behind model aliases, per-request rules and fallbacks. Switch provider mid-session; the agent never notices.
  • Keep your subscription. Claude Code and Codex logins are forwarded untouched, so a Claude or ChatGPT subscription still serves the turn.
  • Pay for fewer tokens. Stale tool output is pruned in a prompt-cache-aware way, starting in shadow mode, and the model can ask for anything back with rlcd_recall (MCP).
  • See everything. Every call's body, client, route, tokens and estimated cost, with a context X-ray of what the model actually received.
  • Survive provider errors. Errors are classified and recovered (clamping, emergency pruning, backoff, route fallbacks) before the client sees them.
  • Audit your decision models. A drop-in, Jev-compatible proxy for System One decisions (Jev and open-rlcd, POST /v1/systemone): answers byte for byte, every call logged, outcomes recorded for accuracy and calibration (ECE), a mirror for parity between backends, and routing rules driven by a decision's answer.
  • Share it safely. Gateway keys with rate and token limits, so apps never hold a provider key.

Use it from any app

from openai import OpenAI

client = OpenAI(base_url="http://127.0.0.1:4777/v1", api_key="rlcd-…")  # a gateway key
reply = client.chat.completions.create(
    model="smart",  # a model alias, or any model the route's provider knows
    messages=[{"role": "user", "content": "Hello"}],
)

The Anthropic SDKs work the same way with base_url="http://127.0.0.1:4777", and System One clients (Jev, open-rlcd) with the gateway as their base URL for POST /v1/systemone.

Apache License 2.0.

Release files for rlcd-gateway 0.1.1

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

Built distributions (wheels)

Table of built distributions (wheels) for rlcd-gateway 0.1.1
File
rlcd_gateway-0.1.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
rlcd_gateway-0.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64, Linux musl 1.1+ x86-64 Details
rlcd_gateway-0.1.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl Python 3 none Linux musl 1.1+ ARM64, Linux glibc 2.17+ ARM64 Details
rlcd_gateway-0.1.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
rlcd_gateway-0.1.1-py3-none-macosx_10_15_x86_64.whl Python 3 none macOS 10.15+ x86-64 Details

Total release size: 17.8 MB

Release files / rlcd_gateway-0.1.1-py3-none-win_amd64.whl

Download URL rlcd_gateway-0.1.1-py3-none-win_amd64.whl
Size 3.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
09ae68e345586daf7224c403c0528f5b93424a9a566dc4cdeca0283b1e205a6a
BLAKE2b-256 checksum
How to use checksums
650415ef3ba6d65c969637c4838284a9849c259a2516aa50c14f4c0dc1cb0300
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / rlcd_gateway-0.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl

Download URL rlcd_gateway-0.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
Size 3.6 MB
Tags Linux glibc 2.17+ x86-64 Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
e3a86dc9312d209707b353e6fb692ce56be310e7d40c7e12291ffd74ab291800
BLAKE2b-256 checksum
How to use checksums
ea8f1f232af7e1965e80562afcce142a4ae817d5bf09a6ca6c940e0ede99f2e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / rlcd_gateway-0.1.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL rlcd_gateway-0.1.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Size 3.3 MB
Tags Linux glibc 2.17+ ARM64 Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
a30a62e7a4c438d039551c4996f4bd6706b4094f56f7907a746fec21729f71fb
BLAKE2b-256 checksum
How to use checksums
63add33d2f7b226bb75d85c76b44b159e012f75d7d72c67c8b754556264be2cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / rlcd_gateway-0.1.1-py3-none-macosx_11_0_arm64.whl

Download URL rlcd_gateway-0.1.1-py3-none-macosx_11_0_arm64.whl
Size 3.5 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4100db104cdc81bd7bf4df1b7230e8cb1e6c676c2662c986b0160c671746a658
BLAKE2b-256 checksum
How to use checksums
decf060b81dbe4a2975627cada91f218a548e5c51d0eeef75154af584ee97dcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / rlcd_gateway-0.1.1-py3-none-macosx_10_15_x86_64.whl

Download URL rlcd_gateway-0.1.1-py3-none-macosx_10_15_x86_64.whl
Size 3.7 MB
Tags Python 3 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
1c8162ec6ab7914db322307d0b3c26331b3d5432d763801bea5871d743168d2a
BLAKE2b-256 checksum
How to use checksums
32df69a92cfa584a2687e3ba1779bdbfd8333755591c4ea7328875732a5baaef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.2

5 release files

This release

0.1.1 This release

5 release files

0.1.0

5 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