--workspace, a shared secret for your tenant, or one of your own user secrets with --user. The value is read from stdin. It cannot be passed as a command-line argument. The command stores stdin’s exact bytes, including any trailing newline, so pipe the value with printf rather than echo.
A shared secret defaults to use in every workspace, including future ones. Use --scope selected --workspaces W1,W2 to limit its use, or --scope none to allow no workspace to use it.
Creating or updating a shared or workspace secret requires secret.create or secret.edit, respectively; changing a shared secret’s workspace-use policy also requires tenant-wide secret.edit.
A workspace delivers it to its agent VMs by declaring it in runtime_secret_mounts. A user secret belongs to you, and any member may manage their own. Deliver it to the VMs you spawn with murmur secret mount, or to one agent with murmur spawn --secret or murmur secret mount --agent. See profiles and secrets for how secrets reach agents.
Without permission to set a secret
If you don’t havesecret.create or secret.edit, or you’re an agent, propose the secret instead. Write a JSON file with two changes: the secret’s metadata, with no value, and the workspace that mounts it by its full name, such as platform/PYLON_API_KEY. Then run murmur cr propose --file FILE. Whoever approves it enters the value on the dashboard’s Change requests page.
Your own --user secrets can’t be proposed. See Propose a secret for review.
Synopsis
murmur secret set in an interactive terminal without piped input returns an error.
Arguments
--user, --workspace, and an explicit --scope are mutually exclusive. Workspace names must match [a-z][a-z0-9-]{0,62}. --workspaces requires --scope selected; an empty list or duplicate names is rejected.
Kinds murmur knows: anthropic.api_key, anthropic.oauth_access_token, anthropic.oauth_refresh_token, ed25519.private_key_pem, github.app_installation_token, github.oauth_refresh_token, github.oauth_user_token, github.pat_classic, github.pat_fine_grained, openai.api_key, openai.oauth_access_token, openai.oauth_id_token, openai.oauth_refresh_token. Run murmur secret set --help for the current list. You may declare any other kind: it is stored, but gets no shape check and no hint.
When the value does not match the declared kind’s shape, the secret is still stored and the command prints a warning: line to stderr.
Output
On success, the command prints a confirmation to stderr:--user:
Examples
Propose a secret for review
Without permission to set the secret, put the proposal in a file. The workspace entry is the whole workspace document, asmurmur get workspace platform prints it, with the mount added:
PYLON_API_KEY.
Set a workspace secret
platform/NPM_TOKEN. Reference that full name in the workspace’s secret mounts.
Choose where a shared secret may be used
Set an API key
Set a secret from a file
Set one of your own secrets
Overwrite an existing secret
Setting a shared or workspace secret that already exists replaces its value and applies the selected scope while preserving its description. There is no confirmation prompt. A bare shared-secret write appliesall even if the existing policy is selected or none. Repeat the desired scope when rotating a restricted secret. Supply --kind again if you want a kind and hint for the new value; omitting it leaves the new value undeclared.
Errors
Related
secret: catalog resource referenceuser-secret: catalog resource reference for your own secrets- Profiles and secrets: concept overview
murmur secret ls: list secretsmurmur secret rm: delete a secretmurmur secret mount: deliver one of your own secrets to your VMs