# hetzer

> Enterprise-grade secret mediation and stream redaction for AI agents to prevent credential leaks.

hetzer is a paid AI agent skill on Agensi by Agung Gunawan, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9.9 (one-time purchase)
- Creator: [Agung Gunawan](https://www.agensi.io/creators/agung-gunawan)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/hetzer
- Tags: security, credential-safety, secret-management, mcp, vault

## About this skill

Agents handling cleartext API keys, database URLs, and tokens in shell logs or prompt histories represent a critical security vulnerability. Hetzer solves this by providing enterprise-grade secret mediation and stream redaction, ensuring models never touch raw credentials.

### What it does
- **Secret Masking**: Replaces raw strings with `secretRef` syntax to prevent credentials from leaking into model context or logs.
- **Scoped Execution**: Runs shell commands through a mediator that injects secrets only at the subprocess boundary.
- **Stream Redaction**: Continuously filters child process stdout and stderr through a sliding-window redactor to catch accidental leaks.
- **HTTP Brokering**: Uses loopback proxies to handle API authentication, keeping upstream keys entirely out of process memory.
- **Canary Tripwires**: Injects honeytokens to detect and terminate malicious scripts attempting to exfiltrate data.

### How it works
1. **Registration**: The user registers sensitive keys out-of-band using `hetzer creds set` to keep them in an AES-256-GCM vault.
2. **Reference**: The agent uses the `secretRef:id` syntax in configuration files or environment variables.
3. **Execution**: The agent wraps shell commands in `hetzer exec --allow <id>` to grant temporary, scoped access.
4. **Verification**: The agent uses MCP tools like `hetzer_vault_has` to check credential availability without viewing the secret itself.

### Frameworks & tools
Built for Node.js environments (v22.5.0+). Compatible with MCP-enabled agents including Claude Code, Cursor, Windsurf, and Roo Code.

### Why this beats prompting it yourself
System prompts cannot reliably prevent a model from echoing a variable it just read or logging it during a failed build. Hetzer enforces safety at the process level, providing a physical barrier that works even if the model ignores instructions.

### Use cases
- **Secure Publishing**: Running `npm publish` or `git push` without exposing tokens in the terminal scrollback.
- **CI/CD Automation**: Mediating database migrations where the agent requires access to a production connection string.
- **Untrusted Scripts**: Executing third-party dependencies or external scripts within a sandboxed container environment.

### Known limitations
Requires Node.js 22.5.0 or higher. It does not intercept low-level kernel APIs or memory scrapers outside the mediated process tree.

## Requires

- hetzer
- Node.js
- prisma

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the hetzer skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does Hetzer prevent my AI agent from accidentally leaking sensitive API keys in its logs?

Hetzer prevents credentials like API keys and database URLs from appearing in plain text within LLM logs, shell history, or prompt contexts by using secure secret references and real-time stream redaction.

### Which AI agents and development environments are compatible with Hetzer?

Hetzer requires Node.js v22.5.0 or higher and is designed for MCP-enabled environments, making it compatible with agents like Claude Code, Cursor, Windsurf, and Roo Code.

### Can't I just tell my agent in the system prompt not to show my secrets?

Unlike system prompts which can be ignored or bypassed by a model, Hetzer acts as a physical process-level barrier that replaces raw strings with references, ensuring the model never interacts with the actual secret.

### What is included in the Hetzer package upon purchase?

You get the complete Hetzer toolset including the AES-256-GCM vault system, the `hetzer exec` mediator for scoped shell access, and the MCP-compatible verification tools.

### How difficult is the initial setup for managing my credentials?

Setup involves registering your sensitive keys out-of-band using the `hetzer creds set` command, which stores them securely in a local vault before you reference them in your agent's workflow.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
