返回目录

treg

编辑精选维护状态: 活跃

superdesigndev/treg

面向智能体工具的 OpenRouter:统一管理 API 密钥与凭据的中转注册中心。

前往 GitHub项目主页
$ curl -fsSL https://treg.to/install.sh | sh

1,297

星标

129

Fork

Python

语言

NOASSERTION

许可证

2026-07-15

创建于

2026-09-09

最近推送

Apache-2.0(附加条款)的 agent 工具注册表与凭证代理:一个令牌解锁约 2800 个按次计费端点,以及团队自有密钥、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 插件,绝不滥发。