Environment Variables
Environment variables used by the Gibil CLI
CLI environment variables
| Variable | Required | Description |
|---|---|---|
HETZNER_API_TOKEN | Yes* | Hetzner Cloud API token for VM operations |
GIBIL_API_KEY | No | Gibil API key for authenticated usage and metering |
GIBIL_API_URL | No | Override Supabase Edge Functions URL |
GITHUB_TOKEN | No | GitHub token for private repo access on VMs |
* Not required if you've run gibil auth setup --token.
How tokens are resolved
Hetzner token
~/.gibil/config.json(set viagibil auth setup --token)HETZNER_API_TOKENenvironment variable.envfile in current directory (auto-loaded via dotenv)
Gibil API key
~/.gibil/config.json(set viagibil auth login --key)GIBIL_API_KEYenvironment variable
VM environment variables
Variables defined in .gibil.yml env: section are set on the VM:
env:
DATABASE_URL: postgres://localhost/myapp
NODE_ENV: developmentThese are:
- Exported in the cloud-init script
- Persisted in
/root/.bashrc - Available in all SSH sessions and
gibil runcommands