Package Information
Released: this month
Downloads: 0 weekly / 0 monthly
Latest Version: 0.1.0
Documentation
n8n-nodes-treg
An n8n community node for Treg, the agent-tool catalog and credential proxy.
Included operations
- Search Catalog
- Get Endpoint
- Call Endpoint or a team-owned tool
- Get Call Result
- Get Balance
- List Calls
Paid calls use a required per-call cost ceiling. The output includes the response body under data
and billing/audit information under _treg, including the actual cost and X-Treg-Call-Id.
Credentials
Create a Treg API credential in n8n with:
- API Token: a Treg token for the intended team
- Base URL:
https://treg.tounless using a self-hosted registry - Organization Slug: only needed when an identity token belongs to several teams
For unattended workflows, an org-scoped agent token is preferable to a human identity token.
Local installation
Do not install while a crucial n8n execution is running. When a restart is safe:
cd ~/.n8n/nodes
npm install /absolute/path/to/n8n-nodes-treg-0.1.0.tgz
Restart n8n after installation so it discovers the new credential and node.
Call safety
Maximum Cost (USD)is sent asX-Treg-Route-Max-Coston every call.Idempotency Keycan safely retry the same request without paying twice._treg.costMicrois the settled cost; catalog prices are estimates._treg.callIdshould be kept for audit and result recovery.List Callsis operational history, not an invoice source.
Development
npm install
npm test
npm run pack:check