Languages

Six first-class languages. Same run command. Native environment reads. No SDK.

Last updated: 2026-09-20

No SDK

Your application does not need a getmyenv SDK. Secrets are injected as environment variables before your process starts. Any language that reads the environment works.

First-class

Node, Python, Ruby, Rust, Go, and PHP are documented below with native env-read snippets. Also works: Java, .NET, Shell.

Node

npx getmyenv run -- npm start
js
const key = process.env.OPENAI_API_KEY;

Python

npx getmyenv run -- python app.py
python
import os key = os.environ["OPENAI_API_KEY"]

Ruby

npx getmyenv run -- ruby app.rb
ruby
key = ENV["OPENAI_API_KEY"]

Rust

npx getmyenv run -- cargo run
rust
let key = std::env::var("OPENAI_API_KEY").expect("missing");

Go

npx getmyenv run -- go run .
go
key := os.Getenv("OPENAI_API_KEY")

PHP

npx getmyenv run -- php app.php
php
$key = getenv('OPENAI_API_KEY');

Also works

Java, .NET, and shell scripts read the same injected environment. Wrap the start command with npx getmyenv run --.

npx getmyenv run -- java -jar app.jar
npx getmyenv run -- dotnet run
npx getmyenv run -- ./start.sh
    Languages - getmyenv docs · getmyenv