Repolode
superdesigndev

superdesigndev/treg

A proxy and CLI that gives AI agents one base URL and token to call a curated catalog of paid third-party APIs, plus your team's own keys and tools.

Open-source alternative to:OpenRouter

Stars
5,778
Forks
485
Open issues
175
Last commit
8 hours ago

What is it?

Treg is a tool registry for AI agents, modeled on OpenRouter but for tools instead of models. An agent sends requests through one base URL with one token, and treg relays them to upstream APIs in a catalog covering SEO, social data, people and company enrichment, ads, scraping, and image or video generation. Catalog calls are billed per call from a prepaid team balance, and some endpoints are served through public routes that need no provider key.

Teams can also register their own endpoints, CLIs, OAuth connections and SKILL.md recipes. Credentials are encrypted at rest and injected server-side, so teammates' agents can use them without ever seeing the key. Calls made with a team's own provider key are relayed without metering. The proxy forwards requests faithfully and only adds the injected credential, so it keeps working when upstream APIs change.

The project ships a Python CLI (`treg`), a dashboard, an MCP surface, and a Claude Code plugin. It is self-hostable with SQLite for development or Postgres in production, and includes team and role management, health checks for credentials, and an audit log of calls.

Key features

  • 01One base URL and token gives access to a catalog of third-party API endpoints.
  • 02Catalog calls are billed per call from a prepaid team balance.
  • 03Team-owned API keys, OAuth connections, CLIs and skills are shared without exposing credentials.
  • 04Credentials are encrypted at rest and injected on the server side.
  • 05Includes a CLI, an MCP surface, a Claude Code plugin and a dashboard.
  • 06Can be self-hosted with SQLite for development or Postgres for production.

Use cases

  • Giving an AI agent access to SEO, social or enrichment APIs without signing up for each vendor.
  • Letting a team's agents use shared API keys and CLIs without distributing the secrets.
  • Running agent workflows that need per-call billing and an audit log of calls.
  • Self-hosting an internal tool registry for a development team.

Quick start

  1. 1

    Install the CLI

    curl -fsSL https://treg.to/install.sh | sh
  2. 2

    Sign in to the registry

    treg login
  3. 3

    Search the catalog for a task

    treg catalog search "backlinks for a domain"
  4. 4

    Call a tool from the catalog

    treg call tikhub.tiktok.user.profile --query uniqueId=tiktok

Things to know

  • Catalog calls that use treg's own key are billed from a prepaid balance, so usage costs money beyond the initial free credit.
  • Many catalogued tools depend on third-party providers, so availability and pricing are outside the project's control.
  • The license is listed as NOASSERTION, so check the repository's license terms before reuse.

Topics

FAQ

What is treg?
A proxy and CLI that gives AI agents one base URL and token to call a curated catalog of paid third-party APIs, plus your team's own keys and tools. Treg is a tool registry for AI agents, modeled on OpenRouter but for tools instead of models. An agent sends requests through one base URL with one token, and treg relays them to upstream APIs in a catalog covering SEO, social data, people and company enrichment, ads, scraping, and image or video generation. Catalog calls are billed per call from a prepaid team balance, and some endpoints are served through public routes that need no provider key.
Is treg free to use? What license does it have?
treg is open source under the Other license. Check the license terms before using it in commercial products.
Is treg still maintained?
Actively maintained. The last commit to treg was on Oct 19, 2026.
What can I use treg for?
Giving an AI agent access to SEO, social or enrichment APIs without signing up for each vendor. Letting a team's agents use shared API keys and CLIs without distributing the secrets. Running agent workflows that need per-call billing and an audit log of calls. Self-hosting an internal tool registry for a development team.
How do I install treg?
Install the CLI: curl -fsSL https://treg.to/install.sh | sh Sign in to the registry: treg login Search the catalog for a task: treg catalog search "backlinks for a domain" Call a tool from the catalog: treg call tikhub.tiktok.user.profile --query uniqueId=tiktok
Where can I get treg?
The source code and installation instructions are on GitHub: https://github.com/superdesigndev/treg

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects