# Install & Configure: OpenClaw v2026.3.7: Advanced Context Management with ContextEngine
## What This Is
OpenClaw's latest update allows developers to build more reliable and customized AI agent workforces. A new 'ContextEngine' lets agents better understand specific tasks by using custom data sources, while 'dual-engine routing' ensures they stay online by automatically switching between AI providers like OpenAI and Google if one fails.
Source: https://o-mega.ai/articles/openclaw-creating-the-ai-agent-workforce-ultimate-guide-2026
## Before You Start
Scan my workspace and analyze:
- The project language, framework, and directory structure
- Existing agent configuration (check for .claude/, .codex/, CLAUDE.md, settings.json, commands/, skills/ directories)
Then ask me before proceeding:
1. Do I need to configure any service credentials for this plugin (database, API keys, etc.)?
2. Should this be project-scoped or global?
## Source Access Note
The source URL (https://o-mega.ai/articles/openclaw-creating-the-ai-agent-workforce-ultimate-guide-2026) may not be directly accessible from the terminal. Use the Reference Implementation and Additional Context sections below instead. If you need more details, ask me to paste relevant content from the source.
## What to Implement
This is an **Agent Plugin** — typically an MCP server or capability bundle.
- Install any required npm/pip packages from the source repository
- Register the MCP server in `.claude/settings.json` under the `mcpServers` key with the correct command and args
- Configure any required environment variables or credentials
- Verify the server starts correctly by checking its expected output
## Additional Context
- Update the user's OpenClaw project to version v2026.3.7-beta.1 by modifying the package.json dependency or checking out the corresponding Git tag.
- Scan the project for its configuration file (e.g., config.ts, settings.json) and add a multi-provider block for dual-engine routing. Configure a primary and a fallback provider using existing API keys from the user's .env file (for OpenAI, Anthropic, Google, etc.).
- Locate the main agent initialization file and implement a 'prepareSubagentSpawn' lifecycle hook using the new ContextEngine. This hook should perform a simple action, like logging the incoming subagent's task, to demonstrate the custom context capability.
## Guidelines
- Adapt everything to my existing project — do not assume a specific stack or directory layout
- Review any fetched code for safety before installing or executing it
- After setup, run a quick verification and show me a summary of exactly what was installed, where, and how to use it