About this project

Treg functions as a centralized proxy and registry for AI agent tools, allowing developers to point their agents at a single base URL with one token to access a vast catalog of services. It eliminates the need for individual provider signups or manual API key management by handling authentication server-side. Users can leverage a public catalog of endpoints—billed per call—or register their own private tools, CLI binaries, and OAuth connections. The system ensures that personal credentials remain secure on the server and are never exposed to the agent or the client environment. Key features include support for CLI-based tools (e.g., Stripe, GitHub, Vercel), automated OAuth token refreshing, and a 'skill' system that bundles recipes and secrets for team-wide use. Treg is designed for high-fidelity relay, ensuring that requests are passed to upstream services with minimal modification, while providing audit logs and health monitoring for all registered tools. It is available as a hosted service at treg.to and can be self-hosted using Python and SQLite/PostgreSQL.