Secure Workspace

Data & APIs

Encrypt API keys, tokens and passwords with age to protect secrets in your workspace.

Install

openclaw skills install secure-workspace-en

Secure Workspace

Encrypt secrets with age to protect them in repos and backups.

Usage

# 1. Generate key pair (if not exists)
bash scripts/secure/setup.sh

# 2. Encrypt a secret
echo 'export API_KEY=*** | bash scripts/secure/encrypt.sh scripts/secure/secrets.env.age

# 3. Decrypt on the fly
source <(bash scripts/secure/decrypt.sh scripts/secure/secrets.env.age)

Files

FilePurpose
scripts/secure/encrypt.shEncrypt stdin → .age
scripts/secure/decrypt.shDecrypt .age → stdout
scripts/secure/setup.shGenerate key pair

Requirements

  • age (apt install age / brew install age)

Note

The private key is at /root/.age/key.txt. It is never uploaded to the repo.