Docs
Your .env, in order.
VEN keeps every project's environment variables in one encrypted vault on your machine, and shares them with your team from the terminal. Nobody needs to paste secrets into chat again.
Install
One command. It downloads the latest release, checks its checksum and puts ven on your PATH. You don't need Go or Node.
curl -fsSL https://ven.traceiq.run/install.sh | shirm https://ven.traceiq.run/install.ps1 | iexCheck it worked:
ven version
Other ways to install
Download by hand. Pick the archive for your system on the releases page, unpack it and move ven (or ven.exe) somewhere on your PATH. SHA256SUMS lists the checksums.
Build from source (needs Go 1.26+, and Node 20.19+ for the dashboard):
git clone https://github.com/enigma-137/ven
cd ven
make build # bin/ven, dashboard included
Pin a version: VEN_VERSION=v0.2.0 before the install command. Change the folder: VEN_INSTALL_DIR=/usr/local/bin.
ven.exe ("An Application Control policy has blocked this file"). Leave it on and use WSL for now. Older Windows may show SmartScreen instead: "More info" → "Run anyway".Code signing: VEN has applied to the SignPath Foundation for free code signing of its Windows releases. See the code signing policy.
Windows (WSL)
Until VEN's Windows builds are code-signed, Windows 11 blocks ven.exe on many PCs. The reliable way to use VEN on Windows today is WSL (Windows Subsystem for Linux): a small Ubuntu that runs inside Windows and can see all your Windows files. You set it up once, in about 15 minutes.
1. Install Ubuntu
Open PowerShell as administrator: open the Start menu, type PowerShell, right-click it and choose Run as administrator.
Run the command for your PC. Not sure? Try the first one. If it says "Virtualization is not enabled", use the second.
wsl --installdism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartRestart the PC, open PowerShell as administrator again, then:
wsl --set-default-version 1 wsl --install -d UbuntuThis is WSL 1. It doesn't need virtualization and VEN works the same on it. (Or turn on Intel VT-x / AMD SVM in your PC's firmware settings and use "Most PCs".)
Restart your PC. Then open Ubuntu from the Start menu. The first time, it asks you to pick a Linux username and password. Nothing appears while you type the password; that's normal. You'll need it for
sudocommands.
wsl --install -d Ubuntu. "The requested operation requires elevation"? PowerShell isn't running as administrator: close it and open it with right-click → Run as administrator.2. Set up the terminal
Use Windows Terminal if you can (free in the Microsoft Store; built into Windows 11). Paste there with Ctrl+Shift+V or a right-click. In the older console window, paste with a right-click.
If pasting adds junk like
^[[200~, run this once, then close and reopen Ubuntu:echo 'set enable-bracketed-paste off' >> ~/.inputrcInstall the tools the installer uses:
sudo apt update && sudo apt install -y curl python3
3. Install VEN
curl -fsSL https://ven.traceiq.run/install.sh | sh
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
ven version
Update later by running the same curl line again.
4. Open your project folder
VEN works on the folder you're in, so always go to your project before running ven link, ven pull or ven push.
Easiest: open the project folder in File Explorer, click the address bar, type
wsland press Enter. Ubuntu opens already inside that folder.Or type the path. Your
C:drive is/mnt/c, and backslashes become forward slashes. Put quotes around paths with spaces.cd /mnt/c/Users/YOU/Desktop/my-app # C:\Users\YOU\Desktop\my-app cd "/mnt/c/Users/YOU/My Projects/my-app"Check you're in the right place.
pwdprints the folder,ls -alists its files (including.env).pwd ls -a
~), not in your project. If you ran ven link there by mistake, undo it with rm ~/.ven.json, then cd to the project and link again.5. Use VEN
Everything in these docs now works the same as on macOS or Linux. A few things are worth knowing:
.envfiles land in your Windows folder. When youven pullinside/mnt/c/…, VS Code, Node and anything else on Windows see the file as usual.ven runonly reaches programs started from Ubuntu. If you start your app from PowerShell, useven pullto write the.envinstead.- Links open in your Windows browser.
ven loginandven uiopen it for you; if they can't, Ctrl+click the link they print. The dashboard is athttp://127.0.0.1:7420. ven copyputs values on the Windows clipboard.- Prefer VS Code's terminal? Install the WSL extension, then run
code .in Ubuntu: VS Code opens the folder with an Ubuntu terminal built in.
Quick fixes
| You see | Do this |
|---|---|
sh is not recognized | You're in PowerShell. Run the install command inside Ubuntu. |
curl: command not found | sudo apt update && sudo apt install -y curl |
ven: command not found | Run the export PATH=… line from step 3, or open a new Ubuntu window. |
Cannot open: Function not implemented | Old installer on WSL 1. Run the install command again; it now works around it. |
Paste shows ^[[200~ | The .inputrc line in step 2. |
ven push says there's no .env | You're in the wrong folder. Check with pwd, then cd to your project. |
| WSL 2 won't start | Use the "Virtualization off" steps (WSL 1). |
Quick start: just you
Everything stays on your computer. No account, no network.
Create your vault and choose a master password (10+ characters). VEN also shows a one-time recovery key: save it in a password manager or on paper.
ven initMake a project. It comes with
development,stagingandproduction.ven projects create "Billing API"Bring in an existing
.env. VEN shows what's new or changed before saving.ven import .env -p billing-api -e developmentWrite it back out whenever you need a file.
ven export -p billing-api -e development --out .envPrefer clicking? Open the dashboard.
ven ui
ven password reset with your recovery key sets a new one, and every value is still there. Without the password and the recovery key, nobody can decrypt the vault, including us.Quick start: your team
Log in with GitHub. The first time, you also choose an account password and get an account recovery key to save.
ven loginCreate a shared project.
ven remote create "Billing API"Link your project folder so you don't have to type the names again.
ven link billing-api -e developmentUpload your
.env, encrypted on your machine.ven pushInvite a teammate by their GitHub username. Send them the code it prints.
ven share --to octocat --env developmentYour teammate installs VEN, then:
ven login ven join ven_inv_… ven link billing-api -e development ven pull
Already have a project in your local vault? Upload it in one go with ven remote publish billing-api. The full invite flow, step by step, is in Invite a teammate.
Passwords & recovery keys
VEN has two separate locks, because the local vault works without any account. If you use both, you have two passwords and two recovery keys. Keep both.
| Local vault | Team account | |
|---|---|---|
| Protects | Projects on this computer (ven import, the dashboard) | Shared projects (ven push, pull, share) |
| Created by | ven init or the dashboard's first screen | ven login, the first time |
| Password | Master password | Account password |
| Recovery key | VENR-… | VENA-… |
| Forgot the password | ven password reset | ven account recover |
| Lost the recovery key | ven password recovery-key makes a new one (needs the password) | ven account recovery-key makes a new one (needs the password) |
- Save both keys in a password manager, or print them and keep the paper somewhere safe. Label them: the prefix (
VENRorVENA) tells you which is which. - You can use the same password for both if you like. The recovery keys are always different.
- Each key is shown once. Nobody, including us, can show it again or reset your password without it.
- Lost both the account password and its key?
ven login --reset-keystarts a fresh account key, and an admin shares with you again. The team loses nothing. A local vault with no password and no key can't be opened.
Projects & environments
A project is one app or service. Each project has environments such as development, staging and production, and each environment holds its variables.
- Refer to them by name or by slug:
"Billing API"andbilling-apiboth work. - Shared projects are named
owner/slug, e.g.octocat/billing-api. If the slug alone is unique for you, that's enough. - Every environment has its own key. Access to development never gives access to production.
ven projects list
ven envs create preview --project billing-api
ven envs rename preview review --project billing-api
Import
Read a dotenv file into an environment. Nothing in it is executed or expanded. Broken lines are reported by line number, never with their values.
ven import .env -p api -e development # add new keys, update changed ones
ven import .env.prod -p api -e production --replace # also remove keys not in the file
ven import .env -p new-app -e dev --create # create the project/environment if missing
ven import .env -p api -e staging --dry-run # preview only
If a key already has a different value, VEN asks what to do, or you decide up front with --on-conflict overwrite or --on-conflict keep.
Export
ven export -p api -e development --out .env # write a file (asks before overwriting)
ven export -p api -e development --stdout # print, for pipes
Exported files contain plaintext. They're written with owner-only permissions, and VEN never overwrites a file without --force or your confirmation.
Get, set, list
ven list -p api -e development # names and types, values hidden
ven get STRIPE_KEY -p api -e development # print one value
ven set STRIPE_KEY -p api -e development # asks for the value, hidden
ven unset STRIPE_KEY -p api -e development
Values are typed secret or text, which only changes how they're shown. Every value is encrypted either way.
Dashboard
ven ui opens a local dashboard in your browser for browsing, editing, importing and exporting. It only listens on your own computer (127.0.0.1) and locks itself after 15 minutes of inactivity. Change that under Settings.
Log in
ven login shows a short code. Open the link, type the code on GitHub and approve. VEN asks GitHub for no permissions: it only learns your username.
The first time, you choose an account password. It unlocks your account key, which is what actually decrypts shared environments. It never leaves your machine, and neither VEN nor GitHub can reset it. You also get an account recovery key (VENA-…) that can: save it somewhere safe.
ven login
ven whoami # your username and key fingerprint
ven account recover # forgot the account password: use your recovery key
ven account recovery-key # make a new recovery key
ven logout # ends this device's session
Invite a teammate
The whole flow, start to finish. You are the project owner (or an admin); Teammate is the person joining.
Before you invite
Your teammate gets what you last pushed, not what's in your local vault or dashboard. In your project folder:
ven remote list # your shared projects
ven push # upload your latest .env
The steps
You Create the invite, using their GitHub username:
ven share --to their-github-name --env developmentIt prints a code starting with
ven_inv_. Options:--role developerlets them push too;--env development,staginggives more environments;--expires 90dorneverchanges how long the access lasts (default 30 days).You Send them the code and this page. A message like this works:
I've shared our env vars with you through VEN. 1. Install: https://ven.traceiq.run/docs/#install (Windows: https://ven.traceiq.run/docs/#windows) 2. ven login 3. ven join ven_inv_… 4. In your copy of the project: ven link OWNER/PROJECT -e development 5. ven pullThe code is safe to send in chat: it only works for their GitHub account, works once, and expires in 24 hours.
Teammate Install VEN (on Windows, set up WSL first) and log in with GitHub. The first time, choose an account password and save the
VENA-…recovery key.ven loginTeammate Accept the invite:
ven join ven_inv_…Teammate Go to their copy of the project, link it and get the
.env:cd path/to/the/project ven link OWNER/PROJECT -e development ven pull # writes .env ven run -- npm run dev # or: no file at allYou Production only: approve them. Ask them to run
ven whoamiand read you the fingerprint on a call, then:ven members approve their-github-nameApprove only if the fingerprint VEN shows you matches theirs. See Protected environments.
After they've joined
- When you change a value,
ven push. They get it withven pull. ven membersshows who has access, to what, and until when.- Access ends on its own after 30 days. Extend it with
ven members renew their-github-name. - When they leave the project,
ven members remove their-github-name. Then change any secrets they already pulled at the source (Stripe, AWS, …). - Invite not used?
ven inviteslists open codes;ven invites revoke <id>cancels one.
Push & pull
ven pull # decrypt into .env
ven pull --out .env.staging -e staging
ven pull --stdout | some-tool
ven push # upload .env (keys missing from the file are removed)
ven push --from .env.staging -e staging
ven push --merge # only add and update
Before uploading, push lists which keys are added, changed and removed (never values) and asks to confirm. If someone pushed in the meantime, VEN refuses so nobody's change is lost: pull, reapply yours, push again.
ven link writes .ven.json in your folder (project and environment, no secrets, safe to commit) and adds .env to .gitignore.
Run without a file
The safest way to use secrets: hand them straight to your app and leave nothing on disk.
ven run -- npm run dev
ven run -e staging -- ./deploy.sh
Or load them into your current shell:
eval "$(ven shellenv)"ven shellenv | Invoke-Expressionven shellenv --shell fish | sourceNeed one value somewhere else? ven copy STRIPE_KEY puts it on your clipboard (ven copy alone copies the whole environment).
Members
ven members # who has access, to what, until when
ven members renew octocat --for 30d # extend (or --for never)
ven members role octocat developer
ven members remove octocat --yes
Access lasts 30 days by default, then ends on its own. When someone is removed or expires, VEN changes the keys of the environments they could read, and nobody can push new values until that's done. members remove does it right away.
ven audit shows what they pulled.Protected environments
Environments named production, prod or live are protected (add more with --protect or ven remote envs create --protected). An invite code alone never unlocks them.
Your teammate joins and runs
ven whoami. It shows a fingerprint likeK7QF-2M9X-….You run:
ven members approve octocatCompare the fingerprint VEN shows you with theirs, on a call or in person. Approve only if they match.
This stops anyone, even a hacked server, from slipping in their own key instead of your teammate's.
CI & service tokens
Give CI jobs and servers their own read-only access instead of a person's login.
ven tokens create --name github-actions --env production --expires 90d
The token is shown once. Store it as a secret in your CI, then:
VEN_SERVER=https://ven.traceiq.run VEN_TOKEN=ven_st_… ven run -- ./deploy.sh
GitHub Actions example
- name: Install VEN
run: curl -fsSL https://ven.traceiq.run/install.sh | sh
- name: Deploy
env:
VEN_SERVER: https://ven.traceiq.run
VEN_TOKEN: ${{ secrets.VEN_TOKEN }}
run: ~/.local/bin/ven run -- ./deploy.sh
Tokens can't push, invite or create other tokens, and they always expire (one year at most). ven tokens shows when each was last used. ven tokens revoke github-actions ends one and changes the keys it had.
Audit log
ven audit
ven audit --limit 200
Admins see who pulled, pushed, shared, approved, removed or rotated what, when and from which IP. The log never contains values.
Guard: stop leaks to Git
The classic leak happens on the way to GitHub: a .env file in a commit, or a real API key pasted into a config file. ven guard catches both before they leave your machine.
ven guard install # once per repository: adds a pre-commit hook
From then on, every git commit is checked. If it adds a .env file, or any line containing a secret you keep in VEN, the commit stops with a masked preview:
✗ ven guard blocked this commit:
config.js:12 STRIPE_SECRET_KEY (api/development)
stripe: 'sk_l•••••',
Check other places any time:
ven guard scan # this folder (.env files count if Git doesn't ignore them)
ven guard scan --staged # what the next commit would add
ven guard scan --history # every commit, e.g. before making a repo public
ven guard uninstall # remove the hook
How it knows your secrets
Guard never asks for your password at commit time. VEN keeps a local list of salted fingerprints of your secret values (never the values) and updates it whenever it decrypts them anyway: pull, push, run, import, set, export. To refresh everything at once, run ven guard index. ven guard status shows what it knows.
- Only values typed secret and at least 8 characters long are remembered, so ports and public URLs never trigger it, and the fingerprints don't help anyone guess short values.
- Values are matched as whole words, including inside URLs such as
postgres://user:pass@host. - Blocked files:
.env,.env.local,.env.development.local,.env.production,.env-local,env.local,prod.envand similar. Templates are allowed:.env.example,.env.sample,.env.template,.env.local.example… - Other files, such as
.envrcor config files, are still checked for any secret value VEN knows. - Already using another pre-commit hook (husky, pre-commit)? Add
ven guard scan --stagedto it instead.
--history finds one, change it at its source (Stripe, AWS, …).How it stays secret
| What | How |
|---|---|
| Values | AES-256-GCM, a fresh random nonce on every write |
| Passwords → keys | Argon2id (64 MiB, 3 passes) |
| Sharing keys | X25519 + HKDF-SHA256, each environment key sealed to each person |
| Tampering | Every ciphertext is bound to its project, environment, version and owner, so moving it around fails |
| Sessions | 1-hour access tokens; refresh tokens work once, and reusing one logs that session out everywhere |
All cryptography comes from Go's standard library and x/crypto; VEN doesn't invent its own. Full detail in the design document and security model.
If something leaks
| Leaked | What happens |
|---|---|
| An invite code | Nothing, unless the attacker is also logged in as that exact GitHub user before it's used or expires. |
| Your GitHub account | They see project names and members, not values. They'd still need your account password. |
| The VEN server | Ciphertext only. Weak passwords could be guessed offline, slowly, so use a strong one. |
| A service token | Read access to its environments until you revoke it. Revoke it and change those secrets at the source. |
| A recovery key | Local (VENR): together with a copy of your vault file, it opens the vault, so make a new one with ven password recovery-key. Account (VENA): together with your GitHub login, it opens your account key, so make a new one with ven account recovery-key. |
| A teammate leaves | Remove them; keys change automatically. Change anything they pulled at the source. |
Self-host
The server is the same ven program. It stores everything in one SQLite file and is light enough for a small VPS.
Create a GitHub OAuth App (Settings → Developer settings → OAuth Apps) and tick Enable Device Flow. Copy the Client ID; no secret is needed.
Run the server on loopback, behind a reverse proxy that does HTTPS (Caddy, nginx):
ven server --db /srv/ven/server.db --github-client-id Ov23… --trust-proxyPoint everyone at it:
ven login --server https://ven.yourcompany.com
A ready systemd unit, Caddy block, backup script and step-by-step guide are in deploy/.
Command reference
Run ven <command> --help for every flag.
Local vault
init | Create the vault and master password |
status | Vault location and state |
projects list|create|rename|update|delete | Manage projects |
envs list|create|rename|delete -p <project> | Manage environments |
import <file> -p -e | Import a dotenv file, with preview |
export -p -e [--out f | --stdout] | Export as dotenv |
list | get | set | unset | Work with single variables |
password change|reset|recovery-key | Change the master password, reset it with your recovery key, or make a new recovery key |
ui | Open the local dashboard |
Teams
login | logout | whoami | Account and key fingerprint |
account recover|recovery-key | Reset a forgotten account password, or make a new recovery key |
remote list|create|publish|envs create|rotate|delete | Shared projects |
link <project> -e <env> | Remember project/environment for this folder |
pull | push | Download / upload an environment |
run -- <cmd> | shellenv | copy | Use variables without a file |
share | join | invites | Invite people |
members [remove|renew|role|approve] | Manage access |
tokens [create|revoke] | Service tokens for CI |
audit | Audit log |
guard install|scan|index|status|uninstall | Block .env files and stored secrets from Git commits |
server | Run your own server |
Global flags & environment
--vault <path> / VEN_VAULT | Use a different vault file (your login is kept next to it) |
--password-stdin | Read the password from stdin, for scripts |
--non-interactive | Never prompt; fail instead |
--no-color / NO_COLOR | Plain output |
VEN_SERVER, VEN_TOKEN | Server and service token for CI |
Exit codes
0 ok1 error2 usage3 auth / wrong password4 not found5 conflict6 input needed130 cancelled
Troubleshooting
I forgot my password
Master password (local vault): run ven password reset and enter your recovery key (VENR-…). Your values are untouched.
Account password (teams): run ven account recover and enter your account recovery key (VENA-…). Your access is kept.
Lost the recovery key too? The local vault can't be opened. For teams, ven login --reset-key gives you a new account key; admins then share with you again, and the team loses nothing.
I never got a recovery key
Vaults and accounts created before recovery keys existed don't have one. Make one now: ven password recovery-key for your local vault, ven account recovery-key for your team account. ven status shows whether your vault has one.
"waiting for approval"
The environment is protected. Ask an admin to run ven members approve <you>, and read them your ven whoami fingerprint.
"changed since you last pulled"
Someone pushed first. Run ven pull, reapply your change, then ven push.
"key must be rotated"
Someone lost access. Any developer or admin with access fixes it by running ven pull, which changes the key automatically, or ven remote rotate.
"invite not found"
The code expired, was already used, was revoked, or you're logged in as a different GitHub account than the one invited. Check ven whoami, then ask for a new invite.
Windows blocks ven.exe
"An Application Control policy has blocked this file" comes from Smart App Control (Windows Security → App & browser control → Smart App Control). It blocks apps that aren't code-signed, and VEN's Windows builds aren't signed yet. Don't turn it off: Windows can't turn it back on without a reinstall. Run VEN in WSL instead; Smart App Control doesn't apply there:
Follow Windows (WSL) for the full setup, including PCs where virtualization is off.
On a work PC, the same message can come from a company policy: ask your IT team to allow ven.exe.
"Windows protected your PC" is SmartScreen: click "More info" → "Run anyway".