SuperAPIAI Directory

Tremelay

github.com · AI security

Tremelay is a local credential broker tool for AI agents. It separates "holding a key" from "permission to use the key": API keys and SSH keys are stored in a local encrypted vault, and each agent receives an independent, scope-limited, expiring, and revocable authorization. Agents request that Tremelay perform operations on their behalf via MCP or ssh-agent, and only receive results within the authorized scope, never seeing the keys themselves. All attempts (allowed or denied) are written to a hash-chained audit log, with deny by default. It supports only single-user, local use, with no server, no accounts, and no telemetry.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Tremelay is a local credential broker whose goal is to let AI agents use your credentials without ever seeing the credentials themselves.

Purpose Currently, authorizing an agent usually means pasting a token into a config file, environment variable, or MCP server, and worrying that it will be logged, echoed, or carried to the wrong host. Tremelay separates "owning a secret" from "having permission to use a secret": credentials are stored in a local encrypted vault, and each agent has its own identity and a narrow, expiring, revocable authorization, such as "use this token to GET https://api.github.com/repos/you/yourrepo anything under" or "use this SSH key to authenticate to git.example.com as git". The agent asks Tremelay to perform an operation, and Tremelay performs it with the credential and returns only the results permitted by the authorization. There is no getSecret tool to call, and every attempt (allowed or denied) goes into a hash-chained audit log.

Key capabilities

  • Local encrypted vault: a single SQLite vault file, a user-only socket or named pipe, no server, no accounts, no telemetry.
  • Per-agent authorization: each agent has its own bearer token file, which can be issued, rotated, and revoked without rebuilding the agent.
  • MCP interface: provides list_capabilities, describe_capability, invoke_capability.
  • SSH signing: tremelay ssh-agent publishes SSH_AUTH_SOCK and signs with keys that never leave the daemon (Linux and macOS only; fails closed on Windows).
  • Deny by default and auditing: all attempts are written to a hash-chained audit log; --alert-command can specify a command to run on high-risk events.
  • Locking and zeroization: tremelay lock, an idle timeout, or process loss zeroizes keys.

Usage Installation requires a pinned Go toolchain (1.26.11, see go.mod), and go install switches to it automatically. To build from a clone, use make build or go build -o tremelay ./cmd/tremelay, and check with tremelay version. Release packages are named by platform as tremelay_<version><os><arch>.tar.gz (.zip on Windows); extracting gives the tremelay binary, LICENSE, CycloneDX SBOM, and SHA256SUMS; there is also a per-platform MCP Bundle (tremelay-mcp_<version><os><arch>.mcpb). After downloading the archive and SHA256SUMS into the same directory, verify by filename (on macOS use shasum -a 256 -c -). Typical flow: tremelay daemon --vault PATH prompts for a passphrase in the terminal (a non-empty TREMELAY_PASSPHRASE skips the prompt but is not recommended), then serves agents on a local socket accessible only to the user; tremelay agent create --token-file FILE creates a bearer token file for each agent, after which use tremelay agent token issue|rotate|revoke to manage it; tremelay mcp --daemon --token-file FILE is the stdio command launched by clients. Quickstart documentation for each client (Claude Code, Codex, Hermes, generic MCP) is in docs/quickstarts/.

Use cases Suitable for a single person on a single machine to let AI agents securely invoke operations that require API tokens or SSH keys, while retaining an auditable record.

Limitations

  • Single user, single vault, no multi-user, organizations, shared vaults, or team policies.
  • Single machine: only user-level Unix sockets or Windows named pipes and stdio, no network or remote MCP transport.
  • Agents still read proxy responses: http_broker authorization returns status codes, allowlisted response headers, and up to 32 KiB of body (credentials are redacted in common encodings); response bodies may contain prompt injection, and malicious upstreams that deliberately re-encode or split credentials cannot be caught, so only authorize sources you trust.
  • File uploads through the proxy are not supported: multipart/form-data requests are rejected as denied_malformed; use JSON or urlencoded forms instead.
  • While unlocked, your uid is trusted: code running as you can use capabilities the agent has been authorized for, though it cannot read credentials, change authorizations, or learn the passphrase, and everything is audited; on Linux, same-user debuggers are refused and no core dumps are written, while on macOS and Windows they are not refused, and an attached debugger can read memory.
  • Alerts require you to specify a command yourself; there is no automatic isolation and no leak checking; this version provides no leak queries.
  • The audit log grows continuously, and every unlock and daemon reload reads and verifies all records, so commands slow down as the log grows; rate limiting is about 20 attempts per second; tremelay audit archive must be run manually.
  • OAuth refresh proxying, database session proxying, browser form filling, TOTP, and provider-assisted rotation are not supported.
  • No third-party audit, no independent security review, no signed releases.
  • credential get prints the raw secret; this is the human control plane and is not accessible from the agent interface.
  • Vaults that still hold pre-v1 github_issue_state authorizations cannot be unlocked until that authorization is revoked.

Version and license The material is labeled v1.0.0 while also mentioning a v1.2.0 release package. Licensed under the Apache License 2.0.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools