Programmer | DevTools & Open Source
EnvLink - Secure and Anonymous ENV File Sharing
Share .env files securely with team members using encryption and automatic expiration.
Development teams often need to share.envfiles, but sending them through Slack or Discord can leave credentials in chat history. EnvLink is one way to share these files more securely.
EnvLink is an open-source CLI tool for sharing.envfiles with end-to-end encryption, optional password protection, and automatic expiration. It does not require a signup or account, so it can be used anonymously after installation.
Want to understand how EnvLink’s security works? Check out How I Designed the Architecture of EnvLink for an in-depth look at the encryption, zero-knowledge architecture, and design decisions.
EnvLink Features
Two Ways to Share
EnvLink offers two security models for different use cases.
Optional-Password (the default) is designed for quick sharing with teammates. It uses ultra-clean zero-knowledge encryption. A single ID can be shared without requiring a password. The link expires automatically after one hour, which is sufficient for onboarding or quick setups.
Password-Protected is suited to sensitive data such as production keys and database credentials. This mode also uses zero-knowledge security, so the server cannot decrypt the shared data. Expiration defaults to 1 day but can be customized from 30 minutes to never, and the link can be updated later if needed.
Strong Encryption Under the Hood
Encryption happens client-side before data reaches the server. The server cannot decrypt your files.
Share Multiple Files at Once
Projects may use multiple environment files, such as.env.local,.env.production, and.env.staging. EnvLink can bundle up to 10 files, which can simplify setup for a new teammate.
Flexible Expiration
Optional-password links have a fixed 1-hour expiration. With password-protected links, the expiration can be set to:
1mto59mfor minutes1hto23hfor hours1dto364dfor days1Mto11Mfor months1yfor one yearneverfor a link that does not expire (use with caution)
Getting Started
Install It Globally
For regular use, install it globally:
npm install -g envlink
Note: EnvLink requires Node.js 18.0.0 or higher.
Or Run It Without Installing
Alternatively, run it without a global installation usingnpxor another package runner:
# Node.js
npx envlink create
npx envlink install el_AzkjMeJk33OJ6t5yxuaKVNpxvACwgIeS
# Bun
bunx envlink create
# pnpm
pnpm dlx envlink create
How to Use It
Quick Sharing (No Password)
For quick onboarding without a password, create and share an optional-password EnvLink (this is the default):
Create the EnvLink:
cd my-project
npx envlink create
The output looks similar to:
✓ EnvLink Created Successfully!
ID: el_AzkjMeJk33OJ6t5yxuaKVNpxvACwgIeS
Expiry: 1 hour (fixed)
Files: .env
Share this ID to install the files.
Share that ID with the teammate. They can install the files with:
npx envlink install el_AzkjMeJk33OJ6t5yxuaKVNpxvACwgIeS
Done. No password needed. It vanishes in an hour automatically.
Secure Sharing (With Password)
For production credentials or other sensitive data, create a password-protected link using the--passflag:
cd my-project
npx envlink create --pass yourpassword --exp 7d --ref "production-keys"
The--exp 7doption sets the link to expire in 7 days. The--refoption adds a label for future reference (this only works with password-protected EnvLinks).
The recipient installs it with:
npx envlink install el_gBbv6e5PSVPtmDup --pass yourpassword
For better security, send the password through a different channel, such as a phone call or Signal message.
Check EnvLink Details
To check when a link expires or which files it contains, use:
# Optional-password (no password needed)
npx envlink info el_AzkjMeJk33OJ6t5yxuaKVNpxvACwgIeS
# Password-protected (password required)
npx envlink info el_gBbv6e5PSVPtmDup --pass yourpassword
Update an EnvLink
Only password-protected EnvLinks can be updated:
# Update the files
npx envlink update el_gBbv6e5PSVPtmDup --files --current-pass yourpassword
# Extend expiration
npx envlink update el_gBbv6e5PSVPtmDup --exp 30d --current-pass yourpassword
# Change the password
npx envlink update el_gBbv6e5PSVPtmDup --pass newpassword --current-pass yourpassword
Manually Delete It
Links can also be deleted manually before they expire:
# Optional-password
npx envlink expire el_AzkjMeJk33OJ6t5yxuaKVNpxvACwgIeS
# Password-protected
npx envlink expire el_gBbv6e5PSVPtmDup --pass yourpassword
A Few Handy Extras
Pick and Choose Files
To install only selected files from a multi-file EnvLink, use the-sor--select-filesflag:
npx envlink install el_gBbv6e5PSVPtmDup -s
# or
npx envlink install el_gBbv6e5PSVPtmDup --select-files
An interactive menu allows specific files to be selected, which can be useful when working on staging without needing the production configuration.
Reference Labels
Labels can help distinguish between multiple EnvLinks. Note that reference labels only work with password-protected EnvLinks:
npx envlink create --pass mypass --ref "staging-database-credentials"
npx envlink create --pass mypass --ref "production-api-keys"
These labels make links easier to identify later.
Check for Updates
Check if a newer version of EnvLink is available usingnpx envlink version-checkor its aliasnpx envlink check-update:
npx envlink version-check
# or
npx envlink check-update
Example output when an update is available:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Update Available!
Current: 2.0.0 → Latest: 2.2.2
Run: npm install -g envlink@latest
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Password-Protected vs Optional-Password
Password-Protected Mode
Password required: Yes
Can the server decrypt? No (zero-knowledge)
ID format:el_gBbv6e5PSVPtmDup(19 characters)
Expiration: Flexible (1m to never, default: 1 day)
Update support: Yes
Reference labels: Yes
Best for: Sensitive data and team sharing
Optional-Password Mode
Password required: No
Can the server decrypt? No (ultra-clean zero-knowledge)
ID format:el_AzkjMeJk33OJ6t5yxuaKVNpxvACwgIeS(35 characters)
Expiration: Fixed at 1 hour
Update support: No
Reference labels: No
Best for: Convenient temporary sharing
Real-World Examples
Onboarding a New Developer
For quickly setting up a new teammate:
# Create the link (no password, fast) - this is the default
npx envlink create
# The teammate installs it
npx envlink install el_AzkjMeJk33OJ6t5yxuaKVNpxvACwgIeS
# Gone in an hour—no cleanup needed
Sharing Production Credentials
To share production API keys or database credentials:
# Create with password and 7-day expiration
npx envlink create --pass SecureP@ss123 --exp 7d --ref "production-api-keys"
# The recipient installs it
npx envlink install el_gBbv6e5PSVPtmDup --pass SecureP@ss123
# Auto-deletes after a week
Staging Environment Setup
For staging work lasting a day or two:
# 24-hour EnvLink for staging
npx envlink create --pass staging123 --exp 24h --ref "staging-env"
# Update it if needed
npx envlink update el_gBbv6e5PSVPtmDup --files --current-pass staging123
# Delete manually when done
npx envlink expire el_gBbv6e5PSVPtmDup --pass staging123
Limitations to Know
EnvLink has the following limits:
File count: Max 10.envfiles per EnvLink
File size: Each file can be up to 100KB
Total payload: All files combined can’t exceed 500KB
File naming: Files must follow.envor.env.{suffix}pattern
These limits suit most use cases. Large.envfiles can be split into smaller files if needed.
Common Questions
Can the server see my data?
No. Both modes use zero-knowledge encryption — the server cannot decrypt your files. For the full technical explanation, see How I Designed the Architecture of EnvLink.
Which mode should I use?
- Quick team onboarding or staging? → Optional-password (the default, no
--passflag needed) - Production credentials, API keys, database URLs? → Password-protected (add
--pass yourpassword)
Can an expired EnvLink be recovered?
No. When it expires, it’s permanently deleted — old credentials don’t linger, even in encrypted form.
How many files can I share?
Up to 10.envfiles per EnvLink.
Wrapping Up
Development teams often need to share.envfiles, but doing so securely can be challenging. EnvLink provides a way to share them without adding much friction to the workflow.
EnvLink may be useful for teams that regularly share environment variables and want a more streamlined process.
Links:
- GitHub: https://github.com/AbabilCore/envlink
- NPM: https://www.npmjs.com/package/envlink
- Documentation: https://envlink.ababilspark.com
Install it now:
npm install -g envlink
Use secure sharing practices.
Want to host EnvLink Server yourself? Or publish your own EnvLink CLI?
Take full control of your infrastructure and customize EnvLink for your organization.
See Self-host Guide