What do you want to do?
4 use cases
-
Check high-entropy secret detection offline in minutes
Run a local demo that shows how the gateway handles an unlabeled random string with and without detection.
- Cosy Redact Gateway
- Security and science
- Intermediate
View prompt
Clone https://github.com/CassiopeiaCode/CosyRedactGateway, run `node scripts/demo-high-entropy.mjs` from the repo root, and report the output for the PSIBEG, H, and all-enabled settings. Verify that the restore check passes and state that the results describe only the synthetic samples, not production leak rates.
-
Redact secrets from Anthropic SDK calls locally
Send Anthropic Messages API calls through the local gateway with detection on, using the JavaScript SDK.
- Cosy Redact Gateway
- Security and science
- Intermediate
View prompt
Start the CosyRedactGateway with `npm start` and create a Node script in <your-app-path> that uses `@anthropic-ai/sdk` with baseURL `http://127.0.0.1:8787/$https://api.anthropic.com`. Run it with a synthetic value and confirm the output, noting that the SDK appends `/v1/messages` and that no extra `/v1` should be added to the base URL.
-
Deploy the gateway to Cloudflare Workers with host limits
Publish worker.js as a Cloudflare Worker and restrict which upstream hosts it will call.
- Cosy Redact Gateway
- Security and science
- Advanced
View prompt
In the CosyRedactGateway repo, run `npm test` and then `npx wrangler deploy` for the account in <your-cloudflare-account>. Confirm the deployed Worker rejects a request to a host not in REDACT_ALLOWED_HOSTS and state that host allowlisting does not authenticate callers.
-
Route an IDE assistant's API traffic through the gateway
Set a custom API base URL in a coding assistant so its requests pass through the redaction layer.
View prompt
Start the CosyRedactGateway with `npm start`, then configure <assistant-name> to use base URL `http://127.0.0.1:8787/$https://api.openai.com/v1` or the Anthropic-style form as its protocol requires. Send a synthetic test value and report whether the assistant's request reaches the gateway, noting that the README makes no specific compatibility guarantee for this tool.
How to use Cosy Redact Gateway
- Check you have what it needs: Node.js 20+, Git, and a terminal; An OpenAI or Anthropic API key and an available model name, only if you make live upstream calls; A trusted environment for running the gateway, since it handles raw requests and provider credentials.
- Open CassiopeiaCode/CosyRedactGateway on GitHub and read the README and license.
- Clone the repository with
git clone https://github.com/CassiopeiaCode/CosyRedactGateway.git - Enter the project folder with
cd CosyRedactGateway - Run the offline demo with
node scripts/demo-high-entropy.mjs - Run the regression and entropy tests with
npm testandnpm run entropy-report
These steps come from our top use case, Check high-entropy secret detection offline in minutes, which also has a copy-paste agent prompt.
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeCosy Redact Gateway alternatives · Best AI repos for Security and science
About this repo
- Who it is forDevelopers and teams who send prompts, code, logs, or tool results to LLM APIs and want to strip secrets and personal data before the upstream provider sees them.
- Why it is hot
- LanguageJavaScript
- Sourcegithub.com/CassiopeiaCode/CosyRedactGateway · Back to Hot repos
Requirements
- Node.js 20+, Git, and a terminal
- An OpenAI or Anthropic API key and an available model name, only if you make live upstream calls
- A trusted environment for running the gateway, since it handles raw requests and provider credentials
Add this badge to your README
Maintain Cosy Redact Gateway? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/cassiopeiacode-cosyredactgateway/?utm_source=github&utm_medium=badge&utm_campaign=CassiopeiaCode-CosyRedactGateway)
HTML
<a href="https://dedupedai.com/use-cases/cassiopeiacode-cosyredactgateway/?utm_source=github&utm_medium=badge&utm_campaign=CassiopeiaCode-CosyRedactGateway"><img src="https://dedupedai.com/badge/CassiopeiaCode/CosyRedactGateway.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Cosy Redact Gateway
What is Cosy Redact Gateway?
A lightweight, stateless privacy gateway that sits between your app and LLM APIs, redacting detected secrets and sensitive values before they reach OpenAI or Anthropic upstreams and restoring placeholders in responses. It is an open-source project on GitHub: https://github.com/CassiopeiaCode/CosyRedactGateway.
Who is Cosy Redact Gateway for?
Developers and teams who send prompts, code, logs, or tool results to LLM APIs and want to strip secrets and personal data before the upstream provider sees them.
What can I do with Cosy Redact Gateway?
4 use cases so far, for example: Check high-entropy secret detection offline in minutes; Redact secrets from Anthropic SDK calls locally; Deploy the gateway to Cloudflare Workers with host limits. Each has steps and a copy-paste agent prompt.
What do I need to run Cosy Redact Gateway?
Node.js 20+, Git, and a terminal; An OpenAI or Anthropic API key and an available model name, only if you make live upstream calls; A trusted environment for running the gateway, since it handles raw requests and provider credentials.
What are alternatives to Cosy Redact Gateway?
Other hot AI repos in Security and science: Security Audit Skill, Reburp, Jev Guard, Rea, Reverify.
Is Cosy Redact Gateway safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.