superdesigndev/treg1.4k

treg-dsh

集成多款免订阅按量付费的Agent工具

AI 分析

适合需要为AI Agent扩展丰富外部工具,且倾向按量付费而非订阅制的用户。

包名
treg-dsh
版本
0.19.1
许可证
NOASSERTION
最近更新
2026年9月12日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:superdesigndev/treg

Configuration

Environment variables (prefix TREG_, read from .env):

VarDefaultPurpose
TREG_DATABASE_URLsqlite+aiosqlite:///./treg.dbDB URL (SQLite for dev, Postgres in prod)
TREG_SECRET_KEY(empty)Fernet key for secrets-at-rest; empty → an ephemeral key is minted (secrets won't survive a restart)
TREG_PUBLIC_URLhttps://treg.totreg's public base, used to build the OAuth callback URI
TREG_SESSION_SECRET(empty)signs the dashboard session cookie; falls back to TREG_SECRET_KEY. Set a real value in prod
TREG_GITHUB_CLIENT_ID / _SECRET(empty)GitHub OAuth sign-in (callback `
/auth/github/callback`); empty hides the button
TREG_GOOGLE_CLIENT_ID / _SECRET(empty)Google OAuth sign-in (redirect `
/auth/google/callback`); empty hides the button
TREG_INSTAGRAM_CLIENT_ID / _SECRET(empty)Instagram App ID and secret for direct Instagram Login (redirect `
/oauth/callback`)
TREG_META_CLIENT_ID / _SECRET(empty)Meta app credentials for Facebook Pages, Meta Ads, and optional Instagram page-tools
TREG_OAUTH_REVIEW_PENDINGinstagram-login,page-messagesComma-separated registry review keys whose capabilities must remain gated; hosted review state is maintained privately.
TREG_RESEND_API_KEY / TREG_EMAIL_FROM(empty)transactional email via Resend (OTP codes + invites); From must be a Resend-verified sender
TREG_BLOCKED_EMAIL_DOMAINS(empty)comma-separated email domains refused at every sign-up/sign-in door and at team creation (subdomains included, case-insensitive). Empty blocks nothing — no list ships in the code
TREG_ADMIN_TOKEN(empty)cross-tenant super-admin bearer; authorizes every /admin/* endpoint. Empty disables the env path (only is_superadmin users reach /admin). Keep it long + secret.
TREG_EMAIL_DEV_MODEfalsewhen true, /auth/email/start returns the OTP in its response (no mail sender needed) — dev/local only, never in prod.
TREG_KV_URL(empty)shared key-value store (Redis protocol) for counters every worker must agree on, today the per-team review-invitation budget. Empty = an in-process fallback, fine for one worker

No .env is needed for local dev — every setting has a working default (ephemeral key, sqlite).

⚠️ Back these up before moving or redeploying: the Fernet key (TREG_SECRET_KEY) and the database (Postgres in prod; treg.db for a local sqlite run). Lose the Fernet key and every stored secret becomes unrecoverable.