Article

Lock a secret so only your devices can open it

David Faith•2026-10-07•4 min read

An agent sometimes needs a password or a key. You can lock that secret in a capsule. HiveMind copies the locked box to your devices the same way it copies notes. Only a device you have admitted can open it. You never paste the secret into the chat.

A locked box that travels with the notes

Agents need keys. An API token, a password, a file that should stay private. The risky habit is to paste that value into a chat. The chat keeps a copy. The shell may keep a copy. A device you never meant to trust can end up holding it.

HiveMind has a different place for that value. You put the secret in once. HiveMind seals it. The sealed copy syncs to your devices with the rest of the hive. Opening it takes a key that belongs to a device you have admitted. A device that can only read, or a device you have not admitted, cannot open the box.

The word for that sealed secret is a capsule.

You give the secret to the device, not to the chat

You can take the value from a file, from a named line in an environment file, or from a prompt you type yourself. You do not pass it as part of the command the shell records. The agent asks the hive for it at the moment a tool needs it, on the device where that tool is running.

When the list of trusted devices changes, you seal the secret again. The new seal matches the devices that are allowed now. Add a laptop, and the new laptop can open the new seal after you admit it and seal again. Take a laptop away, and the new seal leaves it out.

One limit is worth knowing. The old laptop may still hold the older sealed copy from before you sealed again. Sealing again stops that laptop from opening the new copy. It does not reach into the old laptop and erase the old copy. For a token or a password, change the token at the service that made it. The capsule then carries the new value, and the old value no longer works even if someone still has it.

HiveMind is built for this. See how a capsule keeps a secret with your agents.

Frequently asked

How do I give an agent a password without putting it in the chat?

You hand the secret to HiveMind from a file, or you type it at a prompt that does not save the line in your command history. HiveMind locks it. The agent reads it on the device where the tool needs it.

What if I stop trusting one device?

You lock the secret again for the devices that are still allowed. The old device may still have the older locked copy. If the secret is a password that matters, change it at the place that issued it too.

Related

Take yourself out of the loop.

Let your agents do the lifting while you keep the judgment.

Get the Playbook