A cookie goes in, Claude Code endpoints come out, and the image binds 0.0.0.0
High Performance LLM Reverse Proxy
At a glance
- What is it?
- ClewdR is a Rust proxy that turns a consumer Claude.ai account into an API, serving native and OpenAI-compatible endpoints from one small binary so tools like Claude Code can talk to it without an API key. Its engineering is careful in places a dependency is held back a minor version to avoid shipping two copies of a crate, and its deployment defaults leave an authenticated admin panel published on every interface.
- Who is it for?
- Read the terms of service of the account you are republishing before anything else, because this tool exists to convert a consumer web subscription into an API surface and that is exactly what those terms govern. With that settled, it fits someone who already pays for Claude.ai and wants one interface for several local tools, and who is willing to treat a cookie as a credential and rotate it.
- Can I use it commercially?
- Yes, with strict conditions. AGPL-3.0 is a network copyleft licence: if people use a modified version over a network, for example as a hosted service, you must offer them its source code under the same licence.
- Is it still maintained?
- Yes. The repository last received commits 25 days ago.
- What is it written in?
- Mainly Rust, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- Xerxes-2/clewdr1,310 ★ · +48
| Repository | 2026-09-11 | 2026-11-25 |
|---|---|---|
| Xerxes-2/clewdr | 1.3k | 1.3k |
48 Stars in the last 75 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The input is a cookie, and the configuration manages a pool of them
ClewdR needs at least one Claude.ai cookie before it will serve a request, and the documented way to get one is to export it from the browser through developer tools, then paste it into the Submit Cookie screen one cookie per line. From there the configuration is largely about managing that resource. Cookie Status shows each cookie's state and remaining quota. The Config tab covers an outbound proxy, retry limits, and rules for skipping cookies. The model list endpoint returns only the identifiers the proxy currently accepts, including a thinking variant of each, so the client does not choose from everything Claude offers. What that amounts to is a pool of consumer accounts with their individual quotas, a scheduler that skips and retries across them, and a single front door. Whether the account holder's agreement permits that is a question the tool leaves to its user, and it should be the first question, because every feature below makes the republishing more effective.
The image forces a bind on all interfaces and the run command publishes it
The Docker path is four lines:
docker run -d --name clewdr \
-p 8484:8484 \
-v clewdr-data:/etc/clewdr \
ghcr.io/xerxes-2/clewdr:latestTwo details deserve attention. The port mapping has no loopback prefix, and the README states that the image already sets `CLEWDR_IP=0.0.0.0` so the port is reachable, so the bind address is not left to chance in the container path either. The volume is not optional: without something mounted at `/etc/clewdr` the generated passwords are lost on every recreate, and the way to recover them is `docker logs clewdr | grep Password`, which means anything able to read the container log can read them. The alternative is to set them, and the mechanism is documented in detail: any config key becomes an environment variable by upper-casing it and prefixing `CLEWDR_`, and the value is parsed as the type that key holds, so `CLEWDR_PASSWORD=12345` is the string. That type-driven parsing is worth knowing, because a key typed as a boolean reads 1 as true and the password you meant as 12345 is only a password if that key is typed as a string.
base64 is held one minor version back so the binary carries one copy
One dependency pin carries a full explanation in the manifest:
# Held one minor behind to share the copy axum-auth and tiktoken-rs pull in;
# 0.23 is semver-incompatible with those, so asking for it means building two
# base64s. Bump once both have moved.
base64 = "0.22"So the newest base64 cannot be used because two of the project's other dependencies already pull in an older copy, and the newer release is semver-incompatible with them, meaning the crate would be compiled twice and both copies linked. For a project whose headline is a 15 MB static binary running under 10 MB of RAM, duplicate crate weight is not cosmetic. The rest of the dependency list is conventional and readable: axum at 0.8 with macros, axum-auth, arc-swap for lock-free config swapping, async-stream, async-trait, bytes, chrono, clap with derive, colored, and eventsource-stream for server-sent events, plus two optional crates, console-subscriber and etcetera, that are off unless the corresponding feature is asked for.
Pedantic clippy with no allow entries anywhere in the workspace
The workspace enables clippy's pedantic group as a warning and says something more interesting than that:
[workspace.lints.clippy]
pedantic = { level = "warn", priority = -1 }The comment explains that the table deliberately contains no allow entries, and that where a pedantic lint genuinely does not apply, the exception goes at the site with a comment explaining why, so it stays visible in review. That is a stricter policy than the usual global allow list, because a workspace-level allow is invisible at the point of the code and survives long after the reason for it does. The member split follows the same logic. All five members build by default except `xtask`, which is excluded because it is a build tool rather than part of the product, so a bare cargo build produces only what ships while `--workspace` still picks it up for linting and formatting. Publishing is handled separately: the root package sets `publish = false` with a comment that an accidental publish from the workspace root would be hard to undo, and the wire-format crate is the only member left publishable.
Stable rustfmt formats nothing, and --all-features cannot build
Two build traps are documented, and both fail quietly rather than loudly. The first is formatting: `.rustfmt.toml` uses nightly-only options, and stable rustfmt silently ignores them, so running the formatter on the stable toolchain reports success while changing nothing. The project routes every format through nightly instead. The second is feature combinations: `--all-features` cannot build, because `embed-resource` and `external-resource` are a mutually exclusive pair and so are `portable` and `xdg`, enforced in build.rs. That constraint explains the lint subcommand too, which runs clippy across every valid feature combination rather than all of them. Six xtask subcommands cover the rest: check reports on the required toolchain pieces, build does a release build of the frontend and the server, dev runs both with frontend hot reload, lint and fmt handle quality, and ci runs everything the pipeline runs. The escape hatch from toolchain setup is `nix develop`, which provides the pinned stable toolchain with wasm32, nightly rustfmt, trunk and the matching wasm-bindgen, and the same flake builds the release binaries and the container images.
The frontend is a gitignored directory, so a bare cargo run has no interface
The web interface compiles to WebAssembly into `static/`, and that directory is gitignored, which means it is not in a fresh clone. `cargo run` will therefore start a server with no user interface at all until the frontend is built, and `cargo xtask` exists specifically to sequence that. Building it needs the wasm32 target added and trunk installed; running xtask itself needs nothing. Two different ports for two different modes is worth noting: the dev command serves on port 3000 with hot reload, while the release binary listens on 8484, which is the port in every configuration example in the README. Distribution is a matrix rather than a single artifact, with release archives named for five operating systems, linux, musllinux, macos, windows and android, across two architectures, x86_64 and aarch64. Container images cover only linux on amd64 and arm64. The pinning example in the README is one version behind what is shipping, offering v0.13.1 while the newest tag is v0.13.5.
Two endpoint families on one port, with token counting on only one of them
The API surface is small and split by consumer. The Claude.ai paths are `/v1/messages`, `/v1/chat/completions` and `/v1/models`, and the Claude Code paths repeat all three under `/code/`, adding `/code/v1/messages/count_tokens`, which exists on that side only. Streaming is supported everywhere. Two passwords are printed to the console at startup, an API password and an admin password, and the README keeps them separate: the API password is what a client uses as its key, and the admin password is only for the web interface. A client configuration is three fields, an API URL, a key and a model id, which is why the tool is said to work with anything OpenAI-compatible without modification. Two operational details round it out. Server settings such as the bind address and port need a restart, while everything else applies on save, so a changed listen address does nothing until you restart. And a forgotten password is recovered by deleting the config file, since the generated credentials live in it.
Editorial conclusion
Read the terms of service of the account you are republishing before anything else, because this tool exists to convert a consumer web subscription into an API surface and that is exactly what those terms govern. With that settled, it fits someone who already pays for Claude.ai and wants one interface for several local tools, and who is willing to treat a cookie as a credential and rotate it. It does not fit an unattended or shared deployment, because the documented Docker path publishes an authenticated panel on every interface with a generated password that is readable from the container log. Before running it anywhere but your own machine, bind the port to loopback, set both passwords yourself rather than accepting generated ones, mount the config directory so a recreate does not invalidate them, and decide in advance what you will do when a cookie's quota runs out.
Frequently asked questions
What does clewdr need before it will serve requests?
At least one Claude.ai cookie, exported from the browser through developer tools and pasted into the Submit Cookie screen one per line. Cookie Status then shows each cookie's state and remaining quota.
Is the clewdr admin panel exposed by default in Docker?
The documented run command publishes 8484:8484 with no loopback prefix, and the README states the image already sets CLEWDR_IP to 0.0.0.0 so the port is reachable. Generated passwords are readable with docker logs clewdr.
How do you change the clewdr Docker passwords?
Any config key can be set as an environment variable by upper-casing it and prefixing CLEWDR_, and the value is parsed as the type that key holds. Without that, generated passwords are lost on every recreate unless something is mounted at /etc/clewdr.
Why does clewdr pin base64 to an older version?
Because 0.23 is semver-incompatible with the copies that axum-auth and tiktoken-rs pull in, so requesting it would compile two base64 copies into a binary whose size is one of the project's stated properties. The manifest says to bump once both have moved.
What endpoints does clewdr serve?
Native Claude at /v1/messages and OpenAI-compatible at /v1/chat/completions, plus /v1/models, all repeated under /code/ for Claude Code, which adds /code/v1/messages/count_tokens. Streaming works on every endpoint and everything is relative to http://127.0.0.1:8484.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/xerxes-2-clewdr)Star history chart for your README
[](https://hysenlabs.com/projects/xerxes-2-clewdr)Was this useful?