Credentials. The admin key and tenant keys grant access to every provider you configure, so store them in `.env` or a secret manager and never commit them.
Who it is forA developer whose services each call a different AI provider with separate error handling and routing code.
The problemEach service carries its own provider integration, so failures and model choices are handled inconsistently and one upstream outage can stop the app.
The outcomeApplications call one OpenAI-compatible URL, and the gateway picks the provider, fails over when needed, and reports which provider answered.
What you need first
- Docker with Docker Compose, curl, and jq, or Go and Make for the native build
- At least one provider API key such as OPENAI_API_KEY or ANTHROPIC_API_KEY in .env
- A host with ports 8080 and 3000 free, or a changed GATEWAY_PORT
Steps
- Run
./scripts/deploy.shfrom the cloned repo root, or the one-line installer for your OS from the README. - Add a provider key such as OPENAI_API_KEY to
.env, then run./scripts/deploy.shagain. - Create a tenant key with a POST to /admin/v1/keys using the admin key, as shown in the README example request.
- Send a chat request to
curl -s $GATEWAY/v1/chat/completionswith the tenant key as the Bearer token. - Read the
synapassblock in the response to confirm the answering provider and whether fallback_used is true.
Prompt for your agent
Using the ShadowSafin/Synapass repo, deploy the stack with ./scripts/deploy.sh, mint a tenant key, and send one chat completion to /v1/chat/completions for the model <model_name>. Report the synapass.provider and synapass.fallback_used values. Verify that the HTTP status is 200 and the response contains a choices array.
Caveat. The README says the stack boots without a provider key and reports providers as unconfigured until one is added, so inference calls will fail until you add a key.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for ShadowSafin/Synapass and "Send all app AI calls through one OpenAI-style endpoint"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer