Session environment

Standard metadata for every coding and web session: which Mac, where, and air quality.

decli attaches environment context so analytics, agents, and humans know which machine is active and under what real-world conditions — without becoming a tracking product. Data lives under ~/.decli/ and is sent only as structured event properties when Magenta is enabled.

Device fleet

Typical derozic fleet (seeded templates):

  • studio-laptop — mobile MacBook (travel)
  • home-mini — fixed Mac mini on home LAN
  • ipad-cellular — iPad on cellular / couch
decli google location seed
decli google location set --device home-mini --kind mac-mini \
  --lat 37.77 --lng -122.42 --network home
# or: --address "…" with GOOGLE_MAPS_API_KEY

decli google location list
decli google location active home-mini

Air quality

Google Air Quality API current conditions for the active device coordinates (or explicit lat/lng). Cached ~30 minutes.

decli google location aqi
decli google environment          # full session meta table
# → ~/.decli/session/environment.json

Web sessions

  • Authenticated: GET /api/v1/me/environment (BFF /api/me/environment)
  • Magenta pageviews include aqi, aqi_category, device_id, device_network, etc. when present
  • Optional browser geolocation for AQI lookup (never required)

Privacy

Keys stay in env / 1Password. Coordinates and AQI are operational context for your sessions — not sold, not ad-tech. Restrict Maps/AQI API keys in GCP.

Env vars

GOOGLE_MAPS_API_KEY=…
# optional:
GOOGLE_AIR_QUALITY_API_KEY=…