DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to send all app AI calls through one OpenAI-style endpoint with Synapass

Point existing OpenAI SDK code at one gateway that routes to several providers with failover.

Short answer: Run ./scripts/deploy.sh from the cloned repo root, or the one-line installer for your OS from the README; then add a provider key such as OPENAI_API_KEY to .env, then run ./scripts/deploy.sh again; create a tenant key with a POST to /admin/v1/keys using the admin key, as shown in the README example request. All steps.

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

  1. Run ./scripts/deploy.sh from the cloned repo root, or the one-line installer for your OS from the README.
  2. Add a provider key such as OPENAI_API_KEY to .env, then run ./scripts/deploy.sh again.
  3. Create a tenant key with a POST to /admin/v1/keys using the admin key, as shown in the README example request.
  4. Send a chat request to curl -s $GATEWAY/v1/chat/completions with the tenant key as the Bearer token.
  5. Read the synapass block 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer