Examples
EnvVault includes runnable examples for direct credential and proxy workflows.
Direct Credential Examples
Use these for the default compatibility path. The app receives the resolved credential as a normal environment variable at process launch.
dotenv
GEMINI_API_KEY=envvault://gemini/devAdvanced Proxy Examples
Use these when an SDK accepts a custom base URL and bearer token, and you do not want to pass the real provider key to the child process.
You can register the credential and proxy from the Admin UI, or use the CLI commands in each example for repeatable local testing. A proxy creates these references automatically; copy the generated snippet into the app's .env file or pass the references directly with envvault exec --env.
dotenv
ENVVAULT_PROXY_URL=envvault://gemini-openai/dev/base-url
ENVVAULT_PROXY_TOKEN=envvault://gemini-openai/dev/token