What managed mode does
By default, Nanny runs local-only: it enforces your limits and rules on your machine and writes an event log to stdout. Nothing leaves the box. Managed mode keeps enforcement exactly where it is — local, deterministic, offline-capable — and additionally forwards a copy of your run’s event log to Nanny Cloud. In return you get, per organization:- A dashboard of every run — steps, tokens, stop reasons, models
- Spend and usage trends across all your agents
- Alerts when a run starts to spiral
- A durable, exportable audit trail (compliance tiers)
Managed mode is additive. It changes nothing about how limits and rules are
enforced — only whether a copy of the event log is sent to your dashboard.
Turn it on
You need an API key from your Nanny Cloud dashboard (Settings → API keys). Add two things tonanny.toml:
There are only two lines of config, and neither is a secret — so
nanny.toml stays committable, reviewable in a pull request, and consistent
with the rest of your enforcement config.NANNY_API_KEY follows the same injection pattern as the bridge’s
NANNY_BRIDGE_CERT / NANNY_BRIDGE_KEY, so a secrets manager (Vault Agent,
CI secret store) can populate all of them the same way. An api_key field in
[managed] still works as a local-experimentation fallback, but the
environment variable overrides it.Local vs managed
Turning it off
Setmode = "local" (or remove the [managed] block). The runtime goes back to local-only immediately — no data is sent.