Runtime injection
Your app reads environment variables. getmyenv sits underneath your process. No SDK, no code changes.
Last updated: 2026-09-20
Using run
npx getmyenv run starts your command as a child process with secrets injected as environment variables. Your code does not import any getmyenv library.
# Node
npx getmyenv run -- npm start
# Python
npx getmyenv run -- python app.py
# Ruby
npx getmyenv run -- ruby app.rb
# Rust
npx getmyenv run -- cargo run
# Go
npx getmyenv run -- go run .
# PHP
npx getmyenv run -- php app.phpPM2 compatibility
PM2 works without changes. Wrap your PM2 command with run:
npx getmyenv run pm2 start ecosystem.config.jsNo code changes
Your application code stays the same. Reading environment variables - for example process.env.OPENAI_API_KEY, os.environ["OPENAI_API_KEY"], or ENV["OPENAI_API_KEY"] - still works.