Secrets
Secrets are the tokens, passwords and keys nocturn uses for you, kept so the model can name them but never see them.




AskRestart the Immich stack in Portainer.
The Portainer server's tool runs with its token added on the way to
portainer.home.example. The model only ever saw the tool. AskCheck the router's status page with the router-admin login.
The call names the secret
router-admin. In a chat it asks first, then the value is added for the router's host and no other. AskPrint the Portainer token.
The model has no way to: no tool returns a value, and a value in any answer is replaced with
[REDACTED] before the model reads it. What it gives you
- Values the model never sees. The model names a secret; nocturn adds its value to the request on the way out.
- Bound to hosts. Every secret names the exact hosts it may go to. Anywhere else is off.
- Encrypted per workspace. One vault per workspace, unlocked by
NOCTURN_MASTER_PASSPHRASE. - Your Vaultwarden, mirrored. Point nocturn at one collection; it keeps references, not copies, and syncs every five minutes.
- Scanned both ways. A request that carries a stored value or a known token shape is blocked; a value coming back is redacted.
- Typed privately. A value travels to the daemon only from its own machine, the home network, or over TLS.
How it works
The concepts behind it: Where secrets live.
Explore secrets
Give a server its token Paste a token for an MCP server or a plugin, or pick one you keep. Learn more →Connect Vaultwarden Mirror one collection, with an account that can read only that. Learn more →Manage secrets from the terminal List, set, point and remove secrets with nocturn secret. Learn more →Secrets reference Targets, sources, files, settings and the private-connection rule. Learn more →Troubleshooting A refused value, a locked vault, an item without a host. Learn more →
Related
- SSH: SSH keys are secrets too
- Permissions