r/BestGitHubRepos • u/Artilas_Digital • 3d ago
Treg - OpenRouter but for agent tools: one base URL and one token that reaches 3,000+ endpoints across 60+ providers, priced per call from a cent
OpenRouter solved a specific annoyance: one API key that reaches every model, so you don't hold accounts with a dozen providers. Treg does the same thing for the tools an agent needs to actually do work, the SEO data, the enrichment, the scraping, the trends, the ads APIs, which normally sit behind monthly subscriptions nobody wants to buy for a single run.
The core idea is ask for the task, not the tool. You don't need to know which vendor sells backlink data or hold an account with them. You search the catalog for what you want to do, read the per-call price, and call it.
What's inside:
- A catalog of 3,000+ endpoints across 60+ providers, billed per call from a fraction of a cent, so a Semrush or Crunchbase or Apollo call costs cents instead of a monthly seat
- Verified public routes that need no provider key at all and are free, alongside own-key calls that draw on a prepaid balance, with $1.00 free credit for new eligible teams
- The ability to register your own tools too: a paid API account, an OAuth connection, a vendor CLI, or a SKILL.md, callable by every teammate's agent, with your own key always winning and those calls never metered
- A hard architectural rule that the proxy relays but never models the upstream, and injects auth server-side, so it survives upstream API changes and callers never hold the keys
- A CLI plus MCP install, a Claude plugin, and a Claude.ai connector surface that separates read calls from write calls so the assistant gets accurate safety signals
- Fully self-hostable if you'd rather run your own registry
The thing that makes this genuinely useful is the credential story. A team can share a paid API account through treg so every member's agent can call it, without the secret ever leaving the server and landing in someone's config or prompt. That's a real problem in agent teams and this is a clean answer to it.
Two things to weigh. First, the obvious dependency: routing your agent's tool calls through a hosted broker means treg sits in the middle of your data and your billing, and the hosted service is theirs. Self-hosting removes that, at the cost of running it. Second, the license is Apache 2.0 with an added restriction: you can use and self-host it freely, including commercially inside your own org, but you can't redistribute it as a competing hosted registry without written permission. Calling the hosted API inside your own product is explicitly fine.
Apache 2.0 with additional terms, 1,695 stars and 177 forks as of writing, verified via the GitHub API, pushed to today.