envault: Instructions file for Codex

AGENTS.md

envault AGENTS.md is an instructions file for Codex, OpenCode from Coding-Dev-Tools/envault. It costs 584 tokens per session, scanned A, original, MIT.

A command-line tool for synchronising environment variables and secrets between local files and services such as HashiCorp Vault, AWS SSM, Doppler, and 1Password.

In plain words
What is it for?
Use it to sync or compare environment sources, rotate stored secrets, check local files for exposed secrets, run a local access server, and encrypt or decrypt values.
Why use it?
It reduces manual copying and makes it easier to compare, rotate, audit, encrypt, and access configuration values across different places.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is Coding-Dev-Tools/envault's own configuration. It tells Codex and OpenCode how to work on envault itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything envault configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Coding-Dev-Tools/envault. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Coding-Dev-Tools/envault/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Coding-Dev-Tools/envault

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for envault AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/coding-dev-tools/envault/agents-md/github.svg)](https://agentmods.dev/instructions/coding-dev-tools/envault/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/coding-dev-tools/envault/agents-md"><img src="https://agentmods.dev/badge/instructions/coding-dev-tools/envault/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for envault AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/coding-dev-tools/envault/agents-md"><img src="https://agentmods.dev/badge/instructions/coding-dev-tools/envault/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 584 This file is loaded in full into every session.
When invoked 584 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00584 $0.00584
Opus 5.5 $0.00234 $0.00234
Sonnet 5.5 $0.00117 $0.00117
Haiku 4.5 $0.00058 $0.00058

Measured 1mo ago against content hash 20434f93c320, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

envault AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 76 lines

What it actually says

envault — AGENTS.md

Overview

CLI for environment variable syncing, diffing, and secret rotation with integrations for HashiCorp Vault, AWS SSM, Doppler, and 1Password.

Quick Start

pip install -e ".[dev]"
rh-envault --help

Commands

Command Description
rh-envault sync Sync env vars between local .env and remote stores
rh-envault diff Diff two env sources
rh-envault rotate Rotate secrets in configured stores
rh-envault audit Audit local env files for secrets
rh-envault serve Run local HTTP server for env access
rh-envault encrypt Encrypt/decrypt values

Development

# Install dev deps
pip install -e ".[dev]"

# Run tests
python -m pytest tests/ -v --tb=short

# Lint
ruff check src/ --target-version py310

# Type check (if mypy configured)
mypy src/

CI/CD

  • GitHub Actions: .github/workflows/ci.yml (test matrix: 3.11, 3.12, 3.13)
  • Publish: .github/workflows/publish.yml (PyPI on tag)
  • Pages: .github/workflows/pages.yml (docs deploy)

Structure

src/envault/
├── cli.py          # Typer CLI entry point
├── config.py       # Configuration loading
├── sync.py         # Sync logic
├── diff.py         # Diff logic
├── rotate.py       # Rotation logic
├── audit.py        # Secret scanning
├── encrypt.py      # Encryption utilities
├── serve.py        # HTTP server
└── stores/         # Backend integrations
    ├── __init__.py
    ├── vault.py
    ├── awsssm.py
    ├── doppler.py
    └── onepassword.py

Dependencies

  • Core: typer, rich, python-dotenv, pyyaml, cryptography, pydantic
  • Optional: hvac (Vault), boto3 (AWS SSM), requests (Doppler), onepasswordconnectsdk (1Password)
  • Dev: pytest, pytest-cov, responses, ruff

Testing

pytest tests/ -v --tb=short
pytest tests/test_cli.py -v
pytest tests/test_encrypt_secret_formats.py -v

Security

  • Never commit .env.* files (gitignored)
  • Audit log at .envault-audit.log (gitignored)
  • Rotate secrets via rh-envault rotate command
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 76 lines · 584 tokens per session scan A 20434f93c320

Subscribe to this mod's changes

envault AGENTS.md is an instructions file published in the GitHub repository Coding-Dev-Tools/envault (2 stars, last pushed 21d ago), licensed MIT. It adds 584 tokens to every session, about $0.0023 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories