Environment Manager for Openclaw

A secure management system for encrypting agent secrets and organizing configuration profiles across multiple environments.

imaflytok
v1.0.0
Mar 2, 2026
0
542
2

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install env-manager

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install env-manager using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Environment Manager?

The Environment Manager is a critical component for any developer looking to standardize how sensitive data is handled within their agentic workflows. As one of the core Openclaw Skills, it provides a structured way to store API keys, database credentials, and system configurations with AES-256 encryption at rest, ensuring that agent sessions remain secure and compliant with modern security standards.

This skill eliminates the risk of hardcoding secrets by providing a centralized repository that supports environment-specific profiles. By integrating this into your workflow, you can seamlessly switch between development, staging, and production environments while maintaining a clear audit trail of credential access and enforcing mandatory rotation policies.

Environment Manager Use Cases

  • Storing and encrypting sensitive API keys for LLM providers and external services.
  • Managing distinct configuration sets for development, staging, and production environments.
  • Automating the injection of secrets into agent sessions without exposing raw values in logs.
  • Tracking the age of credentials to facilitate regular security rotations and compliance audits.

How Environment Manager Works

  1. Secrets are written to a secure directory with restricted file permissions (chmod 600).
  2. Environment profiles are defined in .env files, referencing the encrypted secrets stored on disk.
  3. The agent sources the specific environment profile at the beginning of a session or heartbeat.
  4. Access logs and file metadata are used to monitor secret usage and prompt for periodic rotations.
  5. Multi-agent workflows can utilize encrypted channels to pass credentials securely between agents.

Environment Manager Setup

To get started with this environment management skill, initialize your local storage structure and secure your first secret:

# Create the directory structure for secrets and profiles
mkdir -p ~/.agent-env/secrets ~/.agent-env/profiles

# Securely store a secret key
echo "your-api-key-here" > ~/.agent-env/secrets/OPENAI_KEY
chmod 600 ~/.agent-env/secrets/OPENAI_KEY

# Define a production environment profile
cat > ~/.agent-env/profiles/production.env << 'ENVEOF'
API_BASE=https://api.openai.com/v1
API_KEY=${secrets:OPENAI_KEY}
LOG_LEVEL=warn
ENVEOF

Environment Manager Data Schema & Taxonomy

The skill organizes data within a dedicated hidden directory structure for maximum isolation:

Component Path Purpose
Secrets Store ~/.agent-env/secrets/ Individual files containing encrypted credential values.
Profiles ~/.agent-env/profiles/ .env files defining environment-specific variables.
Audit Logs System Metadata Tracking access and modification times for rotation logic.

Environment Manager Advanced Features

  • Support for AES-256 encryption at rest for all stored agent credentials.
  • Flexible profile switching allowing agents to toggle between infrastructure environments dynamically.
  • Built-in credential age tracking via CLI to identify stale keys requiring rotation.
  • Compatibility with ClawSwarm for secure, encrypted agent-to-agent credential passing in swarm architectures.
  • Automated session loading hooks that ensure Openclaw Skills have the required context before execution.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*