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

How to run the built-in selftest in CI before publishing a release with Setup Gateway

Check the Setup Gateway pure functions in CI without touching real config files.

Short answer: Clone the repo and make sure Node 18 or newer is available; then run node setup-gateway.mjs --selftest (or npm run selftest); check that the process exits with code 0. All steps.

Who it is forA maintainer or contributor of Setup Gateway who wants a fast pass or fail signal on every change before a release.

The problemChanges to config writing or flag parsing can break setup for all three tools, and manual testing on real config is risky.

The outcomeCI gets an exit code of 0 or 1 from the selftest, and no real config file is modified during the check.

What you need first

  • Node.js 18 or newer installed
  • A gateway base URL that exposes /v1 and an API key for it
  • A model id the gateway serves, or access to GET /v1/models so the picker can list them
  • For Codex: a gateway that serves the Responses API (/v1/responses)

Steps

  1. Clone the repo and make sure Node 18 or newer is available.
  2. Run node setup-gateway.mjs --selftest (or npm run selftest).
  3. Check that the process exits with code 0.
  4. Add the same command as a step in your CI workflow so it runs on every pull request. (inferred, check the README)

Prompt for your agent

In the repo Sinholms/setup-gateway, run `node setup-gateway.mjs --selftest` and report the number of assertions and the exit code. Expect exit code 0 with no real config files changed. Verify that the exit code is 0 before approving any release step.

Caveat. The README describes the selftest as running dozens of assertions, so treat the exit code as the pass signal, not a specific count.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for Sinholms/setup-gateway and "Run the built-in selftest in CI before publishing a release"

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