dotenc
Open-source CLI that stores AES-256-GCM encrypted environment files in Git and unlocks them with developers' existing SSH keys.
At a Glance
MIT-licensed CLI that stores encrypted environment files in Git and decrypts them locally with existing SSH keys. No account or hosted vault required.
Engagement
Available On
Alternatives
Listed Dec 2026
About dotenc
dotenc is an MIT-licensed command-line tool that keeps encrypted environment files alongside code in a Git repository. Developers unlock them locally with their existing Ed25519 or RSA SSH keys, with no account or hosted vault. The project is made by @ivanfilhoz and hosted under the dotenc GitHub organization.
What It Is
dotenc is an environment-encryption CLI. A project is initialized with dotenc init, which registers the developer's SSH public key in the repository. Environments are edited through the user's editor and saved as encrypted .enc files that are committed to Git. At run time, commands such as dotenc dev npm start or dotenc run -e test npm test decrypt the variables and load them into the app's process.
Team Access and CI/CD
Each person has a public key stored in the repository, and access is granted per environment. Environment changes can ship in the same pull request as the code that needs them, and authorized developers can read changes locally with Git diff. CI can be given its own SSH identity, and the site lists the CLI, GitHub Actions and a VS Code extension as ways to connect workflows.
Encryption Model
Each environment is encrypted with AES-256-GCM, and its data key is encrypted separately for each authorized SSH public key. The site states that reading the repository alone is not enough to decrypt it. It also notes that repository writers and the machines running the code are trusted, and that external credentials a former teammate could have known should be rotated after offboarding.
Coding Agent Support
An official skill, installable with npx skills add dotenc/skills --skill dotenc, works with compatible coding agents such as Codex CLI, Claude Code, Cursor and OpenCode. An official ChatGPT and Codex plugin includes the skill. Both guide setup, access changes and running commands, and the site says the guidance keeps plaintext out of chat and logs. A read-only dotenc doctor --json command provides diagnostics.
Installation
Installation options are a universal shell installer, Homebrew, npm (@dotenc/cli), Scoop on Windows, and standalone binaries. The site lists macOS, Linux and Windows with Git Bash or MSYS2.
Collections
Collections with tools like dotenc
- Run YOLO Mode Without Risking Your Laptop
Collection by @reproalex · has Mandu
Add dotenc to one of your collections.
Community Discussions
Be the first to start a conversation about dotenc
Share your experience with dotenc, ask questions, or help others learn from your insights.
Pricing
Open Source
MIT-licensed CLI that stores encrypted environment files in Git and decrypts them locally with existing SSH keys. No account or hosted vault required.
- MIT licensed
- Git-native, local-first encryption
- AES-256-GCM encryption with Ed25519/RSA SSH keys
- Per-environment access for each team member
- CI/CD integration via CLI, GitHub Actions, and VS Code extension
Capabilities
Key Features
- Encrypted environment files committed to Git
- Decryption with existing Ed25519 or RSA SSH keys
- AES-256-GCM encryption with per-key data key wrapping
- Per-environment access control via public keys in the repo
- Run commands with decrypted variables (dotenc run, dotenc dev)
- Readable local Git diffs for authorized developers
- CI/CD support with dedicated SSH identities and GitHub Actions
- VS Code extension
- dotenc doctor read-only diagnostics
- Official coding agent skill and ChatGPT/Codex plugin
- No account or hosted vault
