Shows the status of every Nanny component that is currently active. ExitsDocumentation Index
Fetch the complete documentation index at: https://docs.nanny.run/llms.txt
Use this file to discover all available pages before exploring further.
0 if all active components are healthy, 1 if any are unhealthy.
What it checks
nanny health checks three things:
| Component | Active when | What “healthy” means |
|---|---|---|
| Local bridge | NANNY_BRIDGE_SOCKET or NANNY_BRIDGE_PORT is set | A TCP connection to the bridge succeeds |
| Network server | NANNY_BRIDGE_ADDR is set | A TCP connection to the server address succeeds |
| Certificates | ~/.nanny/certs/ exists | Cert files are present and not expired |
nanny health only reports on what is active.
This means nanny health run from a regular terminal (outside nanny run) will typically show local bridge: not running — that’s expected. The bridge env vars are injected by nanny run into the child process, not into the terminal that launched it.
Example output
Server running, certs valid:1 when any active component is unreachable.
Certificate expiry warning
When certs exist and are valid but expire within 30 days,nanny health prints a warning to stderr:
0 — a near-expiry cert is healthy, just worth knowing about.
Use in scripts and health checks
nanny health is designed for scripts, Docker health checks, and Kubernetes liveness probes:
Docker:
See also
nanny server status— focused status view for the governance servernanny certs show— cert expiry and file inventory