Reference

Environment Variables

Environment variables used by the SkyPort backend and CLI.

Backend

env
SKYPORT_HOST=0.0.0.0
SKYPORT_PORT=8080
SKYPORT_DB_PATH=./data/skyport.db
SKYPORT_WORKSPACE_ROOT=./workspace
SKYPORT_ENV=production
SKYPORT_LOG_LEVEL=info
SKYPORT_SHUTDOWN_TIMEOUT_SEC=10
JWT_SECRET=<strong-secret>
JWT_EXPIRES=604800
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173
TRUSTED_PROXIES=127.0.0.1,::1
SKYPORT_OPEN_REGISTRATION=true
SKYPORT_ENCRYPTION_KEY=<base64-key>
SKYPORT_METRICS_DISK_PATH=

CLI

The CLI supports the following environment overrides:

  • SKYPORT_CLI_CONFIG
  • SKYPORT_SERVER
  • SKYPORT_OUTPUT
  • SKYPORT_TOKEN

Guidance

  • Keep secrets out of shell history.
  • Use environment variables for non-interactive automation.
  • Do not hardcode deployment-specific tokens in the docs examples.

Next: Authentication

SkyPort

SkyPort Docs

Self-hosted infrastructure platform