
Moonraker trusted clients and API keys explained
Moonraker can authorize requests through trusted client rules or API credentials. The safest choice depends on the network boundary and must not turn a broad subnet into accidental admin access.
Printer Tools communicates with supported printers and cameras through local protocols. Keep devices private, preserve credentials and use the current compatibility matrix as the authority for model-specific capabilities.
Understand trusted clients
A trusted-client rule allows matching addresses or networks to bypass normal authentication. It is convenient on a tightly controlled LAN but risky on guest, shared or broadly routed networks.
Use explicit credentials where appropriate
An API key gives a client a deliberate secret that can be rotated. Protect it like a password and send it only over a trusted encrypted path when traffic leaves the local device segment.
Keep the network scope narrow
Prefer the smallest correct host or subnet and review IPv4 and IPv6 behavior. Do not add 0.0.0.0/0 or an entire enterprise network to make one phone work.
Test authentication rather than disabling it
A 401 or 403 identifies a policy mismatch. Confirm the phone’s actual source address, proxy headers and configured client method before editing Moonraker.
Local troubleshooting checklist
- Choose trusted subnet or explicit key intentionally.
- Limit any trusted range.
- Protect keys and proxy headers.
- Retest after one change at a time.
Frequently asked questions
Is a trusted client the same as no authentication?
For matching addresses it can bypass normal checks, so network control becomes critical.
Should Moonraker be exposed publicly with a key?
No. Use private remote access and defense in depth.
Can a reverse proxy change the client address Moonraker sees?
Yes. Configure forwarded-client trust carefully to avoid spoofing.





