Skip to content

Eugene9D/openclaw-workspace-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenClaw Workspace Pro

Production-ready workspace setup for long-running OpenClaw AI agents

Transform your OpenClaw workspace from basic to production-ready in minutes. Implements battle-tested patterns for artifact management, secrets security, memory optimization, and continuous operation.

License: MIT OpenClaw ClawHub


🎯 Why Workspace Pro?

Default OpenClaw workspaces struggle with:

  • ❌ Files scattered across directories (no standardization)
  • ❌ API keys exposed in plaintext (security vulnerability)
  • ❌ Memory grows indefinitely (context limit crashes)
  • ❌ No clear artifact handoff boundaries
  • ❌ Manual maintenance prone to drift

Workspace Pro solves this with:

  • Artifact workflow - Standardized output structure
  • Secrets management - Secure .env pattern, git-safe
  • Memory compaction - Systematic archival prevents bloat
  • Long-running patterns - Container reuse, checkpointing
  • Security baseline - Network allowlists, safe credentials

Based on OpenAI's Shell + Skills + Compaction recommendations and proven in production environments.


🚀 Quick Start

Installation

Via ClawHub (recommended):

clawhub install openclaw-workspace-pro

Manual:

cd /data/.openclaw/workspace
git clone https://github.com/Eugene9D/openclaw-workspace-pro.git
cd openclaw-workspace-pro
./install.sh

Post-install:

  1. Edit .env with your API credentials
  2. Review AGENTS.md additions
  3. Read MEMORY-COMPACTION.md for maintenance workflow
  4. Start using artifacts/ for all deliverables

📦 What Gets Installed

Directory Structure

workspace/
├── artifacts/           # 📁 Standardized output location
│   ├── reports/        # Analysis, summaries, documentation
│   ├── code/           # Generated scripts, apps, configs
│   ├── data/           # Cleaned datasets, processed files
│   └── exports/        # API responses, database dumps
├── memory/
│   └── archive/        # 🗄 Compressed memory summaries
├── .env                # 🔒 Secrets (gitignored)
├── .gitignore          # 🛡 Security
├── MEMORY-COMPACTION.md # 🧠 Maintenance workflow
├── AGENTS.md           # 📝 Enhanced with pro patterns
└── TOOLS.md            # 🔧 Network security additions

Core Components

1. Artifact Workflow

Standardized location for all agent outputs:

artifacts/reports/2026-02-13-analysis-report.md
artifacts/code/2026-02-13-data-processor.py
artifacts/data/2026-02-13-cleaned-dataset.csv

Benefits:

  • Clear review boundaries
  • Easy artifact retrieval
  • Automatic version tracking
  • Prevents workspace sprawl

2. Secrets Management

Moves credentials from documentation to secure .env:

Before:

# TOOLS.md
API_KEY=sk-abc123...  ❌ Plaintext, exposed

After:

# .env (gitignored)
API_KEY=sk-abc123...

# TOOLS.md
API Key: $API_KEY  ✅ Reference only

3. Memory Compaction

Prevents context bloat in long-running agents:

Weekly (when needed):

  • Review daily logs (past 7-14 days)
  • Extract key insights → MEMORY.md
  • Remove outdated info

Monthly:

  • Archive logs >30 days → memory/archive/YYYY-MM-summary.md
  • Delete raw files after archival

Impact: Agents can run for months without context issues.

4. Long-Running Patterns

Container reuse, checkpointing, continuity protocols:

Day 1: Research → log in daily memory
Day 2: Read yesterday's memory → continue work
Day 3: Checkpoint to artifacts/ → update Vikunja
Day N: Reference workspace files, not chat history

5. Security Baseline

Network allowlists, credential handling, audit practices:

### Approved Domains
- *.googleapis.com (Google APIs)
- api.brave.com (Search)
- github.com (Code repos)

### Blocked
- Pastebin services (exfiltration risk)
- Anonymous shells (security risk)

💡 Use Cases

For AI Developers

  • Long-running agents that operate for days/weeks/months
  • Production deployments requiring security + reliability
  • Multi-step workflows with artifact handoffs
  • Enterprise environments with compliance requirements

For Researchers

  • Data analysis pipelines with clear artifact boundaries
  • Reproducible research with version-tracked outputs
  • Collaborative work with safe credential sharing
  • Long-term projects without memory degradation

For Automation

  • Business process automation with audit trails
  • Report generation with standardized output
  • API integrations with secure credential management
  • Scheduled workflows with continuity across runs

🎓 Documentation

Core Guides

References


🔧 Configuration

Environment Variables

Edit .env after installation:

# Google APIs
YOUTUBE_API_KEY=your_key_here
YOUTUBE_OAUTH_CLIENT_ID=your_id_here

# Task Management
VIKUNJA_API_TOKEN=your_token_here

# Search
BRAVE_SEARCH_API_KEY=your_key_here

Network Security

Edit TOOLS.md to customize allowed domains:

### Approved Domains
- your-api.example.com (Your service)
- *.trusted-service.com (Trusted partner)

📊 Comparison

Feature Default Workspace Workspace Pro
Artifact Structure Ad-hoc Standardized /artifacts/
Secrets Security Plaintext in docs Secure .env + gitignore
Memory Management Manual, no plan Automated compaction workflow
Long-running Support Limited Full continuity patterns
Network Security Unrestricted Allowlist + audit
Production Ready ❌ No ✅ Yes
Git Safe ❌ No ✅ Yes
Maintenance Overhead High Low (documented workflows)

🧪 Battle-Tested

Based on patterns from:

Proven to handle:

  • ✅ Multi-month continuous operation
  • ✅ 100+ artifacts generated per day
  • ✅ Dozens of API integrations
  • ✅ Memory growth from MB → GB
  • ✅ Security audits & compliance reviews

🛠 Requirements

  • OpenClaw: 2026.2.9 or later
  • Workspace: /data/.openclaw/workspace (standard location)
  • Shell Access: For installation
  • Git: Optional, for updates

🔄 Upgrading

cd /data/.openclaw/workspace/openclaw-workspace-pro
git pull
./install.sh

Backward compatible. Non-destructive upgrades preserve your data.


🗑 Uninstalling

Workspace Pro is non-destructive. To remove:

# Remove added directories
rm -rf artifacts/ memory/archive/

# Remove added files
rm .env .gitignore MEMORY-COMPACTION.md

# Restore originals from backups
cp AGENTS.md.backup.* AGENTS.md
cp TOOLS.md.backup.* TOOLS.md

Your data and customizations are preserved in backups.


🤝 Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

See CONTRIBUTING.md for detailed guidelines.


📝 License

MIT License - see LICENSE file for details.


🙏 Credits

Created by: Eugene Devyatyh (Eugene9D)

Inspired by:

Special thanks to:

  • OpenClaw team for the framework
  • Early testers and contributors
  • OpenAI for publishing long-running agent patterns

🔗 Links


📈 Stats

GitHub stars GitHub forks GitHub watchers


⭐ Star this repo if Workspace Pro helped you!

Made with ❤️ for the OpenClaw community

Report Bug · Request Feature · Documentation

About

Production-ready workspace setup for long-running OpenClaw AI agents. Artifact workflow, secrets management, memory optimization, and battle-tested patterns.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages