Quickstart
Initialize your vault and store your first secrets.
Initialize Your Vault
Create an encrypted vault to store credentials:
sanctum initYouβll be prompted to create a master password. This encrypts your vaultβs master key β choose something strong.
π Creating new Sanctum vault...
Location: ~/.sanctum/
Enter master password: ********
Confirm master password: ********
β
Vault initialized successfully.
- Master key encrypted with AES-256-GCM
- Audit log initialized with HMAC chain
- Ready to store credentialsNote: What just happened? Sanctum created
~/.sanctum/with an encrypted master key, empty credential store, and a tamper-evident audit log. Nothing is stored in plaintext β ever.
Store Your First Secret
Store an OpenAI API key:
sanctum store openai/api_key \
--type api_key \
--description "OpenAI production key"Sanctum prompts for the value securely (it wonβt echo to your terminal):
Enter secret value:
β
Stored 'openai/api_key'
Type: api_key
Encrypted: AES-256-GCM (unique DEK)Store a few more:
sanctum store anthropic/api_key --type api_key --description "Anthropic API key"
sanctum store github/token --type api_key --description "GitHub PAT"List & Retrieve
List everything in the vault:
sanctum listβββββββββββββββββββββββ¬βββββββββββ¬βββββββββββββββββββββββββββ¬ββββββββββββββββββββββ
β Name β Type β Description β Created β
βββββββββββββββββββββββΌβββββββββββΌβββββββββββββββββββββββββββΌββββββββββββββββββββββ€
β openai/api_key β api_key β OpenAI production key β 2026-02-10 23:15:00 β
β anthropic/api_key β api_key β Anthropic API key β 2026-02-10 23:15:30 β
β github/token β api_key β GitHub PAT β 2026-02-10 23:16:00 β
βββββββββββββββββββββββ΄βββββββββββ΄βββββββββββββββββββββββββββ΄ββββββββββββββββββββββRetrieve a secret:
sanctum get openai/api_keysk-proj-abc123...Note:
sanctum getoutputs the raw value to stdout. Use this for verification or piping. Your AI agents should access secrets through the MCP server instead β it enforces policies and creates audit entries.
Next Step
β Your First Credential: Register an agent and set policies