Back to directory

Earl

A secure CLI proxy that sits between AI agents and external APIs, running human-written HCL request templates so a model never sees the URL, auth header, or secret it is calling.

Visit website (opens in a new tab)mathematic-inc.github.io
Earl

Earl is a proxy for AI agents that call external services: operations are defined as HCL template files committed to a repository, and when an agent calls a tool, Earl loads the matching template, reads the required secret from the OS keychain, fills in the template's parameters with the values the agent supplied, and executes the request. The model only ever sees a tool name and description, never the template body, so an instruction injected into an API response has no request text to land in.

Secrets stay in the OS keychain rather than in tool arguments, descriptions, or output. Earl can run as an MCP server reachable over stdio or HTTP, and supports external secret stores such as 1Password, Vault, AWS, GCP, and Azure, a policy engine with JWT authentication and access control for HTTP deployments, and hardening features such as SSRF protection and an egress allowlist.

It is written in Rust and configured through HCL files, and is used from agents such as Claude Code and Cursor through their MCP configuration.

More in LLM gateways

See all 106
  • aihappey-ai

    github.com

    A stateless, multi-provider .NET AI gateway exposing normalized OpenAI- and Anthropic-compatible endpoints, managed agents and skills across a very large catalog of models.

  • Unified AI System

    happy520ai.github.io

    A self-hosted, protocol-first AI gateway and agent control plane for OpenAI, Anthropic, Gemini, MCP and A2A, turning a rough request into a structured, reviewable prompt before it runs.

  • Subroute

    github.com

    A local AI gateway and desktop control desk that gives coding tools one steady endpoint, so switching between AI subscriptions, API providers and local models doesn't mean reconfiguring every client.