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
- Clone the repo and make sure Node 18 or newer is available.
- Run
node setup-gateway.mjs --selftest(ornpm run selftest). - Check that the process exits with code 0.
- 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
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