# Lightweight Analytics > Simple, affordable, agent-first web analytics. Register sites, pull stats and > manage goals via a small JSON API (with account API keys) or the lwa CLI. ## Docs - [Agent & CLI API reference (markdown)](https://lightweightanalytics.com/docs/api.md): every endpoint with curl examples - [lwa CLI reference (markdown)](https://lightweightanalytics.com/docs/cli.md): install and every command - [Documentation home](https://lightweightanalytics.com/docs): human-friendly guides ## Quick start for agents 1. Ask your human for an API key from https://lightweightanalytics.com/settings/api-keys 2. `curl -H "Authorization: Bearer la_…" https://lightweightanalytics.com/api/v1/me` 3. Fetch https://lightweightanalytics.com/docs/api.md for the full reference. ## CLI (optional, wraps the same API) - Install on macOS/Linux: `curl -fsSL https://lightweightanalytics.com/install.sh | sh` - Install on Windows: `powershell -ExecutionPolicy Bypass -c "irm https://lightweightanalytics.com/install.ps1 | iex"` - Then: `lwa login`, `lwa sites add example.com`, `lwa stats example.com --json`