Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>.Env Generator - AINew to Visual Studio Code? Get it now.
.Env Generator - AI

.Env Generator - AI

Sujal Dey

|
15 installs
| (1) | Free
Automatically generates .env and .env.example files by scanning your codebase and using AI-powered suggestions.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

.Env Generator AI 🚀

The ultimate toolkit for managing, generating, and securely sharing your environment variables.

VS Code Marketplace Version Downloads Rating


🎥 See it in Action

Watch the Demo Video


🛑 The Two Nightmares of Environment Variables

  1. 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.
  2. 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:

  1. First, get a free Gemini API key from Google AI Studio.
  2. 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)
  3. 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)
  4. 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):

  1. Click on the .Env Generator AI icon in your VS Code sidebar.
  2. 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)
  3. Send this Token to your teammates safely.
  4. 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):

  1. Click on the .Env Generator AI icon in your VS Code sidebar.
  2. Click the Set Token button and paste the Token your teammate gave you.
    • (Alternative: Search Command Palette for envSpace: Set Token)
  3. 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:

  1. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac) inside the window to open the Command Palette.
  2. Search for and select: Preferences: Open User Settings (JSON).
  3. Look for the configuration line that looks like this:
    "env-generator-ai.geminiApiKey": "your_key_here"
  4. 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!

Buy Me a Coffee at ko-fi.com

🤝 Connect & Feedback

Have a feature request, found a bug, or just want to say hi? Let's connect!

  • Follow me on GitHub
  • Connect on Instagram
  • Connect on LinkedIn

Enjoying .Env Generator AI? Please consider leaving a ⭐ rating on the Marketplace!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft