.Env Generator AI 🚀
The ultimate toolkit for managing, generating, and securely sharing your environment variables.
🎥 See it in Action
🛑 The Two Nightmares of Environment Variables
- The "Missing Keys" Nightmare: You clone a new repository, run
npm start, and it crashes because the .env file is missing. You spend hours searching the codebase to figure out which process.env variables the app actually needs.
- The "Insecure Sharing" Nightmare: You finally get the project working, but now you need to share the database passwords with your teammate. You dangerously paste them into a Slack or Discord message.
.Env Generator AI solves both of these problems instantly with two powerful tools: AI Generation and envSpace.
✨ Feature 1: AI-Powered .env Generation
Never manually hunt for missing variables again. The extension crawls your entire Javascript/Typescript codebase, finds every hidden environment variable, and uses AI to generate perfect mock data for your team.
What it does:
- 🔍 Smart Crawling: Automatically detects both
process.env.KEY (Node.js) and import.meta.env.KEY (Frontend/Vite).
- 🤖 AI Fallbacks: Uses Gemini AI to suggest realistic dummy values (like
3000 for PORT or sk_test_123 for Stripe keys).
- 📚 Helpful Comments: Generates a clean
.env.example file with comments explaining exactly what each key does.
How to use it:
- First, get a free Gemini API key from Google AI Studio.
- Click on the .Env Generator AI icon on the bottom right side of VS Code and paste your key (you only need to do this setup once!).
- (Alternative: Open VS Code Settings
Ctrl+, / Cmd+, and search for .Env Generator: Set Gemini API Key)
- Click the Generate Env Files button right there on the bottom right side of your window.
- (Alternative: Open the Command Palette
Ctrl+Shift+P / Cmd+Shift+P and search for Env : Generate Env Files)
- Watch the magic happen as your
.env.example file is built in seconds!
✨ Feature 2: envSpace (Secure Team Sync)
envSpace is a secure, encrypted cloud clipboard for your team directly inside VS Code. One developer "Pushes" the variables, and the rest of the team "Gets" them instantly.
🔒 Is my data secure?
Yes. Your raw passwords never touch our servers. The extension generates an AES-256 Crypto Key that lives entirely on your local machine. Your .env variables are encrypted before they leave your computer.
How to use it (If you have the variables):
- Click on the .Env Generator AI icon in your VS Code sidebar.
- Click the Create Token button.
- This generates a highly secure Token and copies it to your clipboard.
- (Alternative: Search Command Palette for
envSpace: Create Space)
- Send this Token to your teammates safely.
- Click the Push .envs button.
- This encrypts your current
.env files and pushes them to the secure cloud.
- (Alternative: Search Command Palette for
envSpace: Push .envs)
How to use it (If you need the variables):
- Click on the .Env Generator AI icon in your VS Code sidebar.
- Click the Set Token button and paste the Token your teammate gave you.
- (Alternative: Search Command Palette for
envSpace: Set Token)
- Click the Get .envs button.
- The extension will instantly download, decrypt, and place the variables in the exact right folders (even in complex Monorepos!).
- (Alternative: Search Command Palette for
envSpace: Get .envs)
⚙️ Delete the Gemini API Key
If you want to completely delete your saved Gemini API key to reset the extension back to its first-time install state:
- Press
Ctrl+Shift+P (or Cmd+Shift+P on Mac) inside the window to open the Command Palette.
- Search for and select:
Preferences: Open User Settings (JSON).
- Look for the configuration line that looks like this:
"env-generator-ai.geminiApiKey": "your_key_here"
- Delete that entire line, save the file, and close it.
The extension will now perfectly prompt you for an API key on the next run!
☕ Support the Project
If .Env Generator AI saves you from a massive headache, consider buying me a coffee!
🤝 Connect & Feedback
Have a feature request, found a bug, or just want to say hi? Let's connect!
Enjoying .Env Generator AI? Please consider leaving a ⭐ rating on the Marketplace!