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.
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.
Via ClawHub (recommended):
clawhub install openclaw-workspace-proManual:
cd /data/.openclaw/workspace
git clone https://github.com/Eugene9D/openclaw-workspace-pro.git
cd openclaw-workspace-pro
./install.shPost-install:
- Edit
.envwith your API credentials - Review
AGENTS.mdadditions - Read
MEMORY-COMPACTION.mdfor maintenance workflow - Start using
artifacts/for all deliverables
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
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.csvBenefits:
- Clear review boundaries
- Easy artifact retrieval
- Automatic version tracking
- Prevents workspace sprawl
Moves credentials from documentation to secure .env:
Before:
# TOOLS.md
API_KEY=sk-abc123... ❌ Plaintext, exposedAfter:
# .env (gitignored)
API_KEY=sk-abc123...
# TOOLS.md
API Key: $API_KEY ✅ Reference onlyPrevents 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.
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
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)- 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
- 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
- Business process automation with audit trails
- Report generation with standardized output
- API integrations with secure credential management
- Scheduled workflows with continuity across runs
- Installation Guide - Step-by-step setup
- Artifact Workflow - How to structure outputs
- Secrets Management - Secure credential handling
- Memory Compaction - Maintenance workflow
- Security Best Practices - Network & access control
- SKILL.md - Complete skill documentation
- MEMORY-COMPACTION.md - Full compaction workflow
- FAQ - Common questions
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_hereEdit TOOLS.md to customize allowed domains:
### Approved Domains
- your-api.example.com (Your service)
- *.trusted-service.com (Trusted partner)| 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) |
Based on patterns from:
- OpenAI's Shell + Skills + Compaction recommendations
- Glean's enterprise AI skill deployments
- OpenClaw community production environments
- Months of continuous agent operation
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
- OpenClaw: 2026.2.9 or later
- Workspace:
/data/.openclaw/workspace(standard location) - Shell Access: For installation
- Git: Optional, for updates
cd /data/.openclaw/workspace/openclaw-workspace-pro
git pull
./install.shBackward compatible. Non-destructive upgrades preserve your data.
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.mdYour data and customizations are preserved in backups.
Contributions welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
See CONTRIBUTING.md for detailed guidelines.
MIT License - see LICENSE file for details.
Created by: Eugene Devyatyh (Eugene9D)
Inspired by:
- OpenAI Shell + Skills + Compaction
- Glean enterprise skill patterns
- OpenClaw community best practices
Special thanks to:
- OpenClaw team for the framework
- Early testers and contributors
- OpenAI for publishing long-running agent patterns
- GitHub: https://github.com/Eugene9D/openclaw-workspace-pro
- ClawHub: https://clawhub.ai/skills/openclaw-workspace-pro
- OpenClaw: https://openclaw.ai
- Documentation: https://github.com/Eugene9D/openclaw-workspace-pro/wiki
- Issues: https://github.com/Eugene9D/openclaw-workspace-pro/issues
- Discussions: https://github.com/Eugene9D/openclaw-workspace-pro/discussions
⭐ Star this repo if Workspace Pro helped you!
Made with ❤️ for the OpenClaw community