Skip to main content
Delivers one of your own secrets to agent VMs. By default the secret arrives as an environment variable named after the secret. It can instead arrive as an environment variable with another name, or as a file in the VM user’s home directory. Without --agent, the mount belongs to your own user record and applies to every agent you spawn, or with --workspaces only to agents in those workspaces. See Mount in some workspaces. With --agent, it applies to that one agent and every agent it spawns, and to none of your other agents. See Mount on one agent. Store the secret first by piping its value to murmur secret set --user <LEAF>, for example printf '%s' "$VALUE" | murmur secret set --user <LEAF>. Mounting a secret that is already mounted in the same place replaces its delivery. To give one agent a value without storing it as a secret, pipe it in with --agent and --stdin. See Deliver a value to one agent.

Synopsis

Arguments

Flags

--env-name and --file are different delivery modes. Pass one at most.

Mount in some workspaces

--workspaces limits a mount on your user record to agents in the workspaces you list. An agent in any other workspace does not receive it, and a workspace mount or credential of the same name reaches that agent instead. Without --workspaces, the mount applies in every workspace, including workspaces created later. Two mounts can deliver the same environment variable or file when their workspace lists do not overlap. This lets each workspace receive its own secret under one name:
A mount’s workspace list has no effect on a mount made with --agent. You can also choose a mount’s workspaces in the dashboard, under Settings → Personal → Credentials → Secret mounts.

Mount on one agent

--agent mounts the secret on one agent you spawned. The mount is a reference to your stored secret, never a copy of its value:
  • It reaches the agent at its next turn. A turn already running keeps the environment it started with, and a sleeping agent receives the mount when it wakes. Storing a new value with murmur secret set --user reaches the agent the same way.
  • It covers the agent’s whole tree. The mount is held on the top-level agent and reaches every agent it spawns. Mounting on a child agent is refused with the name of the top-level agent to mount on instead.
  • It takes precedence over your other mounts. For a given environment variable or file, an agent receives the first of: a value set on the agent or an agent above it, a mount on its top-level agent, a mount on your user record, and a workspace mount.
  • It keeps its name even if the secret is deleted. Deleting a mounted secret with murmur secret rm --user succeeds. The agent then receives nothing under that name: a user or workspace mount of the same name does not fill in. Run murmur secret unmount --agent to release the name.
You can mount only on an agent that runs as you. An agent spawned under a service profile, and an agent someone else spawned, are refused. An environment variable that the agent already receives as a value, from murmur spawn -e or --stdin, cannot also be mounted. Remove that value first with murmur secret unmount --agent, or from the agent’s Credentials panel in the dashboard.

Deliver a value to one agent

--stdin gives one agent a value that is not one of your stored secrets, such as a short-lived token. The value is encrypted for that agent. It is not stored among your secrets and is never shown again. It behaves like a value passed with murmur spawn -e after spawn:
  • It reaches the agent at its next turn, and every agent below it. Set on a child agent, it reaches that child and the agents below it, in place of a value of the same name set on an agent above it.
  • It takes precedence over every mount of the same environment variable or file, and over a value set further up the tree.
  • Mounting NAME again replaces it. Remove it with murmur secret unmount NAME --agent SLUG.
The agent must run as you. Unlike a mount, a value can be set on a child agent. A value cannot use a name murmur sets itself. On a top-level agent, it cannot deliver a variable or file that a mount on that agent already supplies; on a child agent, it replaces the top-level agent’s mount of that variable or file for the child and the agents below it. You can also set a value from the agent’s Credentials panel in the dashboard. To mount a secret at spawn time instead, pass murmur spawn --secret. To see what an agent receives and from which source, run murmur credentials.

Output

A confirmation line on stderr:
With --agent:
Without --agent, the line ends with where the mount applies:
With --stdin:
<workspaces> is every workspace, or the workspaces you passed with --workspaces. <target> is $<NAME> for an environment variable. For a file it is the path, followed by the mode in parentheses when you pass --mode.

Examples

Deliver as an environment variable

Deliver under another variable name

Deliver as a file

Quote the path so your shell does not expand ~.

Deliver only in some workspaces

Deliver to one agent

Deliver a value to one agent

Use printf '%s' rather than echo: every byte on stdin, including a trailing newline, becomes the value.

Errors