返回目錄

treg

編輯精選維護狀態: 活躍

superdesigndev/treg

面向智慧體工具的 OpenRouter:統一管理 API 金鑰與憑據的中轉註冊中心。

前往 GitHub專案首頁
$ curl -fsSL https://treg.to/install.sh | sh

1,271

星數

123

Fork

Python

語言

NOASSERTION

授權條款

2026-07-15

建立於

2026-09-08

最近推送

Apache-2.0(附加條款)的 agent 工具登錄中心與憑證代理:一個令牌解鎖約 2,800 個按次計費端點,以及團隊自有金鑰、CLI 與技能。README 未提供 DeepSeek Harness 專屬整合,透過通用 CLI/技能路徑接入。

DSH 整合

相容

自動推斷

安全稽核

未稽核

最後核實

2026-08-21

授權條款

Apache-2.0 with additional terms

01它能幫你完成什麼?

  • Give a DeepSeek Harness agent pay-per-call access to ~2,800 third-party API endpoints (SEO, backlinks, social trends, people/company enrichment, ads, scraping) without provider signups

    Live tool results served through one base URL and one token, metered per call from the team's prepaid balance ($1.00 free on every new team)

    SEO, growth and research teams running agents in DeepSeek Harness who need premium data tools without buying per-vendor subscriptions

  • Share the team's own API keys, vendor CLIs and SKILL.md skills so every teammate's agent can call them

    Team-registered endpoints, CLIs and skills callable through the proxy with the org's credential injected server-side — the credential never leaves the server

    Engineering teams that want their agents to use paid accounts and internal tools without distributing secrets

  • Self-host a private tool registry for your org

    A private treg registry server (FastAPI + SQLite/Postgres, org scoping with owner/admin/member/viewer roles) run locally or deployed

    Teams that want an in-house credential gateway instead of the hosted treg.to instance

02如何將外掛接入 DeepSeek Harness?

先決條件

  • A terminal with curl (for the one-line CLI installer), or an agent that supports plugins/skills (Claude Code plugin path, or `npx skills add` for other agents)
  • Self-hosting only: `tmux` and `uv`

安裝步驟

  1. 01

    Install the CLI — also points it at the registry: `curl -fsSL https://treg.to/install.sh | sh`

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

  2. 02

    Sign in: `treg login` (GitHub default · `--email` for a one-time code · `--token` for agents/CI)

  3. 03

    Call a tool right away: `treg catalog search "backlinks for a domain"`, then `treg call ...`, and `treg balance` to see exactly what it cost

  4. 04

    Agent path: Claude Code — `/plugin marketplace add superdesigndev/treg` then `/plugin install treg@treg`; other agents — `npx skills add superdesigndev/treg -s treg`

    $ npx skills add superdesigndev/treg -s treg

驗證整合成功

作者未說明

03DSH 整合程度與能力邊界

DSH 整合相容

Generic agent tool registry & credential proxy — the README documents no DeepSeek Harness-specific path; DSH users connect through the `treg` CLI or `npx skills add superdesigndev/treg -s treg` (the skill finishes with `treg mcp install`); broader MCP support is listed on the roadmap.

  • Tool catalog & metered calls

    a task description (`treg catalog search`) or a tool id (`treg catalog get`)tool discovery with per-call prices, and live call results via `treg call` across keyword/rank tracking, backlinks, AI visibility, trends, social publishing, enrichment, ads and measurement

    catalog calls are billed per call against the team's prepaid balancerequests are relayed over the network to third-party upstream providers
  • Server-side credential injection & faithful relay

    a registered endpoint plus a stored secret / OAuth tokenthe upstream request with the credential injected; treg control headers (X-Treg-Token and friends) stripped before the upstream sees them; an audit record

    stores secrets encrypted (Fernet) on the registry serverrelays requests to upstream APIswrites audit records
  • Team sharing via scan & upload

    a project `.env` (matched against ~80 known providers), skill directories, and installed catalog CLIskeys, skills and CLIs registered to the org (idempotent, `--replace` to update)

    `treg upload` uploads secrets (encrypted server-side) to the registry
  • Run vendor CLIs with injected credentials

    registered vendor CLIs (`stripe`, `gh`, `vercel`, …)`treg run` / `treg shell` executes the CLI with the org's credential injected — locally (`--local`, default) or on the registry server (`--server`)

    `--server` executes on the registry server and streams output back, so the key never reaches your machine

04適合誰?何時不該用?

適合

  • SEO, growth and research teams running agents in DeepSeek Harness who need premium data tools without buying per-vendor subscriptions
  • Engineering teams that want their agents to use paid accounts and internal tools without distributing secrets
  • Teams that want an in-house credential gateway instead of the hosted treg.to instance

不適合

  • Catalog calls need network access to a treg registry (hosted treg.to or self-hosted) and are metered against a prepaid balance; an exhausted balance returns HTTP 402 until topped up, and endpoints without a published price are refused rather than served free.
  • Licensed as Apache 2.0 with additional terms: offering treg to third parties as a hosted/managed service, or embedding it in a commercially distributed product, requires written permission from the maintainer.
  • Self-hosted deployments must back up the Fernet key (TREG_SECRET_KEY) and the database before moving or redeploying — losing the Fernet key makes every stored secret unrecoverable.

05相容性、維護與安全提醒

  • Catalog calls need network access to a treg registry (hosted treg.to or self-hosted) and are metered against a prepaid balance; an exhausted balance returns HTTP 402 until topped up, and endpoints without a published price are refused rather than served free.
  • Licensed as Apache 2.0 with additional terms: offering treg to third parties as a hosted/managed service, or embedding it in a commercially distributed product, requires written permission from the maintainer.
  • Self-hosted deployments must back up the Fernet key (TREG_SECRET_KEY) and the database before moving or redeploying — losing the Fernet key makes every stored secret unrecoverable.
2026-07-152026-08-19作者未說明

Apache-2.0 with additional terms · actively maintained (last push 2026-08-19)

06常見問題

如何在 DeepSeek Harness 中使用 treg?

README 未提供 dsh 專屬說明,可走通用路徑:用安裝腳本安裝 CLI 後執行 treg login;或執行 npx skills add superdesigndev/treg -s treg 以技能方式接入,首次執行會自動引導完成 CLI 安裝、登入與 treg mcp install。

呼叫目錄裡的工具需要自己註冊供應商帳戶嗎?

不需要。目錄呼叫由 treg 自有金鑰承接,依團隊預付餘額計費(每個新團隊有 1 美元免費額度);接入自有金鑰後會優先使用,且這些呼叫不計費。

我的金鑰和請求資料會去哪裡?

金鑰以 Fernet 加密儲存在登錄中心伺服器端,呼叫時由伺服器端注入憑證再轉發到上游,X-Treg-Token 在到達上游前會被移除,呼叫端從不持有金鑰。

餘額用完會怎樣?

呼叫回傳 HTTP 402,回應附帶 balance_micro、estimated_cost_micro 與 topup_url,方便 agent 自行處理;可用 treg topup 加值。

可以自建 treg 登錄中心嗎?

可以:本機一行命令 scripts/dev-local.sh up(需要 tmux 與 uv);部署伺服器端需安裝 tools-registry[server] 附加套件。務必備份 Fernet 金鑰與資料庫,遺失金鑰將導致所有已存金鑰無法復原。

08資料與來源

  • 自動推斷github.coma10e2c359143…

    Other agents: `npx skills add superdesigndev/treg -s treg` (the `-s` matters — without it you also get this repo's inter…

  • 作者聲明github.coma10e2c359143…

    The skill loads as `treg:treg` and, on its first run, walks your agent through the rest — the CLI, sign-in, then `treg m…

  • 作者聲明github.coma10e2c359143…

    **Roadmap:** MCP support · finer permission tiers · at-rest key-management hardening · possible Loopni merge.

此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-08-21。發現錯誤?提交更正。

🏆

最佳 DeepSeek Harness 外掛

從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。

DSH Plugins 是獨立的 DeepSeek Harness 外掛市集,與 DeepSeek 官方無關,也不代表官方背書。第三方外掛未經安全稽核,安裝前請審查原始碼。

每週取得最新的 DeepSeek Harness 外掛,絕不濫發。