About Treg
Treg is an MCP server published by superdesigndev in the Gaming category: openRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn. Conduid read 18 tools from its source: balance, call, call_media, call_result, catalog_call_read, catalog_call_write and 12 more. It is published to PyPI as tools-registry and runs with uvx.
The repository has 10K stars and 1.1K forks, and its last commit was on 2 Dec 2026. The latest release is v1.0.0-beta.5. It follows v1.0.0-beta.4, and the 5 most recent releases go back to v1.0.0-beta.1. It passes all 4 static checks Conduid ran on the repository. Its topics include api-keys, cli, credentials, devtools, dsh-plugin and proxy.
Install
uvx tools-registrypip install tools-registrygit clone https://github.com/superdesigndev/tregTools (18)
balanceThe team's prepaid balance in USD, and any spend currently in flight. Check it when a call is refused for funds, or before a job that will make many calls.callCall something through treg. `params` is the request body for a POST (an object, or an ARRAY when the endpoint's body is one: DataForSEO live routes take a one-element array, `[{...task...}]`, and reject any extra element instead of batching it) and the query string for a GET. Either a CATALOG endpoint by its id (from catalog_search), or one of THIS TEAM'S own tools as '<tool-name>/<path>' (from my_tools) — e.g. 'render/v1/services' — or a HUB tool by its id '<team-slug>.<name>' (a maker's tool made of tools; `params` are its inputs, see catalog_get for them). treg injects the credential server-side and relays the provider's response unchanged, so you never hold an API key. Catalog calls on treg's key are metered from the team's prepaid balance; a team's own tool is never metered. Tell the human the price (from catalog_get) before calling anything that costs more than a cent.
`idempotency_key`: pass the SAME key when you are repeating a call whose answer you did not receive — a timeout, a dropped connection, an error on your side after the request went out. treg returns the stored answer, does not call the provider again, and charges nothing the second time; the result carries `replayed: true`. Use a NEW key (or none) for genuinely new work, even when the parameters are identical: repeating a search to see what changed is a new call, not a retry, and reusing the key would hand you the old answer. Reusing one key for a DIFFERENT request is refused rather than answered. If a call timed out on your side and you sent no key, do not call again: `call_result` lists the team's latest calls and returns a finished call's stored answer.
For requests `params` can't express, the explicit slots mirror the CLI's flags: `query` is ALWAYS the query string (a list value expands to repeated keys), `body` is ALWAYS the request body (object/array → JSON; a STRING is sent raw, with `content_type` naming what it is — sniffed as application/json when it parses as JSON), `headers` adds per-call request headers (upstream headers like Google Ads' login-customer-id, or routing controls like X-Treg-Route-*), and `max_cost_usd` sets a USD ceiling on metered calls billed from the team's treg balance. It maps to X-Treg-Route-Max-Cost, which refuses with 402 before charging if the estimate exceeds it. Calls on a team's own key are unmetered. Injected credentials always win over caller headers. Use `query` + `body` together for endpoints that split a POST across both (Bright Data's ?dataset_id=… + array body, or POST pathParams). Giving `body` implies POST. For multipart requests, put ordinary fields in `form` and files in `uploads` as objects with name, filename, content_type and base64 data.
Query values are sent the way HTTP spells them: booleans as `true`/`false`, nested objects as compact JSON. A null query value is OMITTED from the query string — if an upstream distinguishes an absent parameter from an empty one, send the empty string explicitly rather than null.| Parameter | Type | Description |
|---|---|---|
| authorization_method | string | |
| body | any | |
| content_type | string | |
| endpoint_id * | string | |
| form | object | |
| headers | object | |
| idempotency_key | string | |
| max_cost_usd | any | |
| method | string | |
| params | any | |
| prior | any | |
| query | object | |
| uploads | array |
call_mediaCall an audio-producing endpoint through the same treg proxy as `call`, returning the successful binary response as native MCP AudioContent. Use this for Fish Audio TTS; use `call` for JSON endpoints.| Parameter | Type | Description |
|---|---|---|
| body * | any | |
| endpoint_id * | string | |
| headers | object | |
| idempotency_key | string |
call_resultRecover a call you already made, typically one whose answer never reached you (your client timed out or the connection dropped while treg finished it). Without `call_id`: this team's latest calls, newest first, each with its call_id, endpoint, status, charge and whether an answer is stored (`has_result`). With `call_id`: what that call asked and what came back. A long answer comes in pages of `max_chars` characters: `page` says how long it is and which `offset` reads the next page. Reading costs nothing; check here before calling again, so a finished call is not paid twice.| Parameter | Type | Description |
|---|---|---|
| call_id | string | |
| limit | integer | |
| max_chars | integer | |
| offset | integer |
catalog_call_readCalls a catalog endpoint whose documented HTTP method is GET, HEAD or OPTIONS. The endpoint must come from catalog_search; catalog_get supplies its provider API documentation, parameters and price. A successful call may deduct that displayed price from the team's Treg balance.| Parameter | Type | Description |
|---|---|---|
| authorization_method | string | |
| endpoint_id * | string | |
| headers | object | |
| idempotency_key | string | |
| params | object | |
| query | object |
catalog_call_writeCalls a catalog endpoint whose documented HTTP method is POST, PUT, PATCH or DELETE. The endpoint must come from catalog_search; catalog_get supplies its provider API documentation, parameters and price. The provider may create, change or delete external data, and a successful call may deduct the displayed price from the team's Treg balance.| Parameter | Type | Description |
|---|---|---|
| authorization_method | string | |
| body | any | |
| content_type | string | |
| endpoint_id * | string | |
| form | object | |
| headers | object | |
| idempotency_key | string | |
| params | any | |
| query | object | |
| uploads | array |
catalog_getOne endpoint in full: its parameters, the exact price per call, whether treg serves it on its own key, and the other providers that answer the same capability — with the success rate and speed treg has measured across real calls. Read this BEFORE call() so you can tell the human what it will cost.| Parameter | Type | Description |
|---|---|---|
| endpoint_id * | string |
catalog_requestThe catalog doesn't have what you need? File a tool request — one sentence saying what capability or provider is missing. Requests are the demand signal that decides which provider gets added next. Use AFTER catalog_search comes up empty, not instead of it. The reply lists existing tools the request's text matches (`matches`), which may already do the job; the request is recorded either way.| Parameter | Type | Description |
|---|---|---|
| capability * | string | |
| note | string |
catalog_searchSearch {_ENDPOINTS} API endpoints by WHAT YOU WANT TO DO. Use plain task words: 'work email', 'backlinks for a domain', 'tiktok comments', 'keyword search volume'; a provider or platform name lists what it offers. Returns each endpoint's id, provider, price per call, and whether treg can serve it without you owning an API key. Read `verdict`: strong = these do it; closest = nearest, check catalog_get; none = not in the catalog, file catalog_request. Use it when a task needs data or an API you have no key for. Recently added tools: added_within_days=N (1-365; 30 is a good default) keeps tools added in the last N days, sort='newest' lists newest first; with either, query may be empty.| Parameter | Type | Description |
|---|---|---|
| added_within_days | integer | |
| limit | integer | |
| query * | string | |
| sort | string |
compareJudge two anonymous answers to an input your team sent earlier, when a call result invites a comparison. Optional, changes no charges. Without choice: returns the next pair (input, answer_1, answer_2). Then call again with comparison_id and choice='1', '2', 'tie' or 'both_bad' (both fail the input) and a one-line reason. Judge what the input asked for, not length or style. Private to treg.| Parameter | Type | Description |
|---|---|---|
| choice | string | |
| comparison_id | integer | |
| reason | string |
feedback| Parameter | Type | Description |
|---|---|---|
| call_ids | array | |
| category * | any | |
| endpoint_id | string | |
| message * | string |
hub_createPublish a hub tool: a tool made of other tools, in your team's name. Send the four files as fields: `manifest` (recipe.json: name, summary, inputs, uses, pricing, and either steps or "script": "run.js"), `script` (run.js, script recipes only), `check` (check.json: sample inputs + the output fields the check must find), `readme` (markdown). treg validates them, runs check.json ONCE for real on your balance, and the version goes live on pass. On a 422 the answer names the exact field and rule to fix. Before you write the manifest: every tool in `uses` must exist - a catalog id (catalog_search) or one of your team's own tools; a credential the team does not hold yet is NEVER hard-coded into a script - register it first (treg secret add / tool add), then name the tool. `pricing`: a steps recipe declares {"price_usd": N}, a fixed price per successful run; a script declares {"max_price_usd": N} and sets its price in run.js with ctx.charge(usd, note) (a fee, per result, a margin on ctx.call's cost_usd), never above N. Callers run the result with call(tool_id, params).| Parameter | Type | Description |
|---|---|---|
| check * | object | |
| manifest * | object | |
| readme * | string | |
| script | string |
hub_mineYour team's hub tools: every version with its status, price, uses, and the check verdict.hub_updatePublish a NEW VERSION of a hub tool your team owns: the same four files as hub_create. The newest live version serves by default; `<tool_id>@N` pins an older one for 30 days.| Parameter | Type | Description |
|---|---|---|
| check * | object | |
| manifest * | object | |
| readme * | string | |
| script | string | |
| tool_id * | string |
mark| Parameter | Type | Description |
|---|---|---|
| basis * | any | |
| call_id * | string | |
| checked | integer | |
| evidence_call_id | string | |
| items * | array | |
| note | string | |
| replaces | integer |
my_toolsWhat THIS team has registered and you can call without holding the credential: their own API keys, OAuth connections, vendor CLIs and skills. A team's own tool always wins over treg's catalog key, and those calls are never metered.resources_listList durable resources created with treg-provided provider credentials for the current team. Filter Fish voices with provider='fishaudio', kind='voice'.| Parameter | Type | Description |
|---|---|---|
| kind | string | |
| provider | string |
review| Parameter | Type | Description |
|---|---|---|
| call_id * | string | |
| reason | string | |
| rows | array | |
| usefulness * | any |
Security checks
Static checks derived from the repository 7 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 4.8K words.
- ✓License declaredUsable under a stated license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock and 2 more.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 4.8K words, fetched 7 days ago. The original in the repository is authoritative.
Read full README