Astra Compute/Settings

Settings

Provider configuration. Keys live in .env and never leave the server — this page only reports whether they exist.

Setup
Create a .env file in the project root (or copy .env.example), then restart the dev server. Everything works without keys in mock mode — add keys to light up live integrations.
.env template — placeholders, not your real keys
# placeholders — replace with your own values
VAST_API_KEY=your-vast-key
OPENROUTER_API_KEY=sk-or-v1-your-key
HF_TOKEN=hf_optional-for-gated-models
MAX_PRICE_PER_HOUR=3.0
NEXT_PUBLIC_APP_URL=http://localhost:3000
DATABASE_URL=
MOCK_MODE=true
  • VAST_API_KEY — enables live GPU offers, and real rentals when mock mode is off.
  • OPENROUTER_API_KEY — enables real completions via the fallback network.
  • HF_TOKEN — optional; needed to load gated models (Llama, Mistral) on real deploys.
  • MAX_PRICE_PER_HOUR — safety cap for real rentals (default $3/hr).
  • MOCK_MODE=false — ⚠ real provisioning: Deploy rents an actual GPU and bills your compute-provider account.
  • • Keys are read server-side only and are never stored in localStorage or shipped to the browser. This page only receives configured/not-configured flags.