sanctum get
Retrieve a credential value from the vault.
Usage
sanctum get <path>Arguments
| Argument | Description |
|---|---|
path | Credential path (e.g., openai/api_key) |
Example
sanctum get openai/api_keysk-proj-abc123...The raw value is printed to stdout with no extra formatting, making it suitable for piping:
export OPENAI_API_KEY=$(sanctum get openai/api_key)Note:
sanctum getoutputs the raw secret to stdout. For AI agent access, use the MCP server instead — it enforces policies and creates audit entries with agent identity.
Notes
- The operation is recorded in the audit log as
credential.retrieve - Exit code 0 on success, 1 if the credential doesn’t exist