# llm-env-vault: keep .env secrets out of your AI agent

> Your agent sees DATABASE_URL="value 3"; your app gets the real value. Secrets live in an encrypted local vault, released only through a password dialog you answer.

llm-env-vault: keep .env secrets out of your AI agent is a paid AI agent skill on Agensi by José Ribeiro, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7.99 (one-time purchase)
- Creator: [José Ribeiro](https://www.agensi.io/creators/jose-ribeiro)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-10-06
- Security: scan passed (2026-10-06); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/llm-env-vault-keep-env-secrets-out-of-your-ai-agent
- Tags: llm-ops, security, claude-code, mcp-server, encryption

## About this skill

Telling your AI agent "don't read .env" is a suggestion, not a control.

llm-env-vault is an MCP server that replaces the secret values in your .env files with harmless numbered placeholders, stores the real values in a password-encrypted local vault, and lets you run real commands with real secrets injected. Every time, a native password dialog that only you can answer is the gate.

### What it does
- **Placeholders, not secrets.** `/llm-env-vault:protect` finds every .env in your project and moves the real values into the vault. The agent keeps working with the variable names.
- **Run with real secrets.** `run_with_env` injects the real values into one command you approve, scoped to only the variables it needs. Output is redacted before it reaches the agent.
- **Typed placeholders (new in 2.0).** `SMTP_PORT=17`, `SMTP_USE_SSL=false`, `DATABASE_URL=postgres://placeholder-3.invalid`: config loaders like pydantic-settings, django-environ and Spring still parse the file, and it still holds no real value.
- **Whole-file encryption.** Encrypt a secrets file into a `.levault` that is safe to commit.
- **Nothing happens silently.** Every operation that touches a real value shows a dialog with exactly what will change, and nothing is written until you click Allow.

### Security
scrypt key derivation, AES-256-GCM with the header authenticated, envelope encryption with an optional paper recovery key, and atomic writes. The master password never touches disk and is never a CLI argument or environment variable. Adversarial review passes closed a leak into the agent's context, a git-config code-execution vector and TOCTOU windows.

### Known limitations
Windows is the tested and supported platform; macOS and Linux need `python` on the PATH and are untested. The first run installs the Python dependencies with pip. Restart Claude Code after installing.

Backed by 640+ tests.

## Requires

- Python
- MCP-aware
- Node.js

## 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 llm-env-vault: keep .env secrets out of your AI agent 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 llm-env-vault prevent an AI agent from seeing my real secrets?

It replaces sensitive values in your .env files with harmless numbered placeholders, storing the actual secrets in an encrypted local vault. This ensures that even if an AI agent scans your workspace, it only sees variable names and dummy data, not your production credentials.

### Can I still run my application if the .env file only contains placeholders?

When you need to execute a command, the 'run_with_env' tool injects the real secrets into that specific process after you approve a native password dialog. The output is then redacted before being sent back to the agent to prevent accidental leaks.

### How secure is the local vault where my secrets are stored?

The skill uses industry-standard AES-256-GCM encryption and scrypt key derivation, ensuring your master password never touches the disk or CLI history. It has also passed adversarial reviews to mitigate risks like context leaks and git-config execution vectors.

### Which AI agents and operating systems are compatible with this skill?

While it is an MCP server designed to work with tools like Claude Code, it currently officially supports and is tested on Windows. macOS and Linux users can run it if Python is in their PATH, but these platforms are currently listed as untested.

### What exactly is included with the purchase of this MCP server?

You receive the full MCP server package, which includes tools for protecting files, running commands with injected secrets, and whole-file encryption. The purchase also includes access to the latest v2.0 features like typed placeholders for improved compatibility with config loaders.

---

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.
