merjax_set_loop_secret
Create or replace a secret a hosted Claude loop runs with (reaches it as process.env.NAME at invoke time only; sealed at rest, scrubbed from its logs). Pass loop (the hosted Claude loop's id, from /connect/claude/deploy) for the loop's own secret — its owner only — or org (organisation slug, admin-scoped token) for an organisation-level secret every loop of the organisation inherits; a loop-level name overrides the organisation's. ANTHROPIC_API_KEY is the loop's model key (CAP-S.8: the platform never lends its own); at organisation level it is the BYOK override. Safe to retry: the same value again changes nothing. Audit-logged by name, never value. Returns {name, effect: created|updated|unchanged, updatedAt}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | No | Organisation slug | |
| loop | No | Hosted Claude loop id (uuid) | |
| name | Yes | Secret name, an environment variable name: letters, digits and _, starting with a letter (stored upper-case). PATH, HOME, INPUT and GLUECRON_* are the runtime's own and refused. | |
| value | Yes | The secret value. Write-only: never shown again, never in a log or an audit row; reaches the loop as process.env.NAME at invoke time only. |