Open Source
Relay
by Imamuzzaki Abu Salam
A small local proxy that lets coding agents such as Claude Code and Codex CLI switch between your GitHub Copilot, OpenAI, Anthropic, Z.AI, DeepSeek, Groq, Ollama and other accounts without a restart.
Our verdict
A small local proxy that lets coding agents such as Claude Code and Codex CLI switch between your GitHub Copilot, OpenAI, Anthropic, Z.AI, DeepSeek, Groq, Ollama and other accounts without a restart.
Best for: Developers with several provider accounts who want one local switch for their coding agent, on a machine only they use.
Choose something else if: you share a network or a machine, or you need a maintained tool. It is a one-person project with no tagged releases, and its Copilot route may conflict with GitHub's terms.
Source review
Using Relay in practice
Where it runs
Runs on your own computer. Requests go from the local proxy to whichever provider account is active.
How to install
Install Bun 1.2 or later, git and pnpm, then install Relay from GitHub. Add an account with relay account add, start the proxy with relay proxy start and point the agent at http://127.0.0.1:8787/api/anthropic or /api/openai/v1.
Install commands
pnpm install -g github:ImBIOS/relayAs published in the linked sources. Not run by us.
What it costs
Free under the MIT licence, with no paid tier. You pay for the provider accounts and subscriptions you connect.
Prices and plans change. Check the linked sources before committing.
Why consider it
- Translates between Anthropic and OpenAI request formats, so one agent can use either kind of provider.
- Switching or rotating accounts does not need an agent restart.
What to watch for
- In the source we read, the proxy listens on all network interfaces unless RELAY_HOST is set, and its README says any string works as the key. Anyone who can reach port 8787 can use your accounts.
- Provider keys are stored as plain JSON in your home folder.
- Its GitHub Copilot route calls Copilot's internal endpoints with editor headers. Check GitHub's terms before using it.
A first task to try
Set RELAY_HOST=127.0.0.1, add one account, start the proxy, then send one short prompt from your agent and check which account answered.
Suggested exercise, not an installation test. We reviewed the linked documentation; no host compatibility is implied.
Other options to understand
Related tools can solve different parts of the same job. Compare fit before treating them as replacements.
Key facts
What we have checked
- Days since the last commit
- 130
- GitHub forks
- 0
- GitHub stars
- 10
- Open issues
- 1
- Releases in the last 90 days
- 0
Each value shows when we last confirmed it and where it came from. Values we have not confirmed are left out, never guessed.
Stars and usage
How Relay is growing
10 to 10
Health and security
Is Relay looked after, and what do its setup files show
Health score
35 out of 100
| Part | Points | What we saw |
|---|---|---|
| Recent activity | 21 of 30 | Last push 130 days ago |
| Releases | 0 of 15 | 0 releases in 90 days |
| Issue replies | Not counted | The latest check has no issue response reading (fewer than 3 measured issues, or issues switched off) |
| Maintainer | 0 of 15 | Owned by a single user |
| Official source | Not counted | MCP servers only |
Alternatives
Alternatives to Relay
| Record | Type | How we know | Checked |
|---|---|---|---|
| LiteLLMThis is an alternative to it | Open source | Named in the listing | Not dated |
Compare
Compare Relay side by side
Sources
Where this comes from
- GitHubRegistry
- READMEOur review
- GitHub Terms of ServiceOur review
A source shows what was published when we checked it. It does not certify security, performance or a working installation. Read our method.
Changelog
What changed
No changes recorded yet. Releases, price changes and deprecations appear here, with their dates, once we track them for this record.
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.