OpenClaw plugin that exposes Corev versioned config operations as agent tools.
Install
openclaw plugins install clawhub:@corev/openclaw-pluginCorev OpenClaw Plugin
This plugin helps you do versioned configuration management from OpenClaw. It does Corev CLI and corev-host orchestration so that you can manage config lifecycle (pull, diff, push, revert, checkout, environment setup) without leaving your agent workflow.
Project status: actively maintained (alpha)
Basic functionality
Corev OpenClaw Plugin is intended for use by OpenClaw operators, DevOps engineers, backend developers, and platform teams. It is meant to help these users do day-to-day config operations and bootstrap a self-hosted Corev backend from the same plugin.
Corev OpenClaw Plugin uses OpenClaw plugin SDK registration to expose Corev workflows as structured agent plugins. It takes plugin parameters (project, version, env, file, host settings) from OpenClaw and uses them to execute Corev CLI commands and local host management actions. For more details about the technical implementation, see the developer documentation.
What Corev OpenClaw Plugin does not do
This plugin cannot replace your infrastructure provisioning pipeline. It does not have built-in cloud deployment for MongoDB or managed hosting for corev-host; you still provide runtime environment and access.
This plugin also does not automatically enable all mutating plugins in every OpenClaw setup. Side-effecting plugins are optional and should be allowlisted intentionally.
Prerequisites
Before using this plugin, you should be familiar with:
- The basics of OpenClaw plugins and plugin allowlists.
- The basics of Corev config workflows (pull, push, revert, checkout, env).
- Basic terminal usage and JSON configuration editing.
You should have:
- OpenClaw runtime installed and running.
- Node.js 22+ and npm.
- A working directory where this plugin runs.
corev-hostsource available atsrc/host/server(for host operations).- A MongoDB URI reachable by
corev-host. - Permissions to install dependencies and run local processes.
How to use Corev OpenClaw Plugin
Install and enable the plugin
- Install the package:
openclaw plugins install @corev/openclaw-plugin
- Enable plugin entry in your OpenClaw config:
- Add plugin id
corevunderplugins.entries. - Set
enabled: true.
- Add plugin id
- Add minimum plugin config:
workingDirectory- Optional defaults like
defaultProject,defaultEnv
Example:
{
"plugins": {
"entries": {
"corev": {
"enabled": true,
"config": {
"workingDirectory": "/Applications/MAMP/htdocs/corev/openclaw-plugin",
"defaultProject": "atlas",
"defaultEnv": "staging"
}
}
}
}
}
Bootstrap local corev-host and initialize Corev
- Configure host settings in plugin config:
hostApiUrl(for examplehttp://127.0.0.1:3000)hostMongoUri- Optional:
hostHealthPath,hostStartCommand
- Call
corev_host_bootstrapfrom OpenClaw. - Confirm output includes:
- local host source detected
- host
.envconfigured - host started and healthy
- dashboard user created
corev initsucceeded
Example plugin params:
{
"apiUrl": "http://127.0.0.1:3000",
"mongoUri": "mongodb://127.0.0.1:27017/corev",
"createUserEmail": "root@root.rs",
"createUserPassword": "root"
}
Run read-focused config workflows
- List local versions:
- Call
corev_list.
- Call
- Pull latest config:
- Call
corev_pullwithproject. - Optionally pass
env.
- Call
- Compare versions/files:
- Call
corev_diffwithfileAandfileB.
- Call
- Prepare environment folders:
- Call
corev_envwithprojectandenv.
- Call
Run mutating workflows safely
- Enable optional plugins in OpenClaw allowlist:
corev_pushcorev_revertcorev_checkoutcorev_init
- Execute write operations with explicit parameters.
- Validate results by re-running
corev_list/corev_diffand checking backend state.
Troubleshooting
corev-host server was not found at .../src/host/server
- Ensure
workingDirectorypoints to the repository that containssrc/host/server/package.json.
Missing MongoDB URI. provide "mongoUri" ...
- Set
hostMongoUriin plugin config or passmongoUritocorev_host_bootstrap/corev_host_start.
health NOT READY at http://.../health
- Check port conflicts, validate
hostApiUrl+hostHealthPath, and inspect host logs.
Optional plugin is not available in OpenClaw
- Add the plugin name (or plugin id) to your OpenClaw plugins allowlist.
How to get help and report issues
- Report issues at https://github.com/doguabaris/corev-openclaw-plugin/issues.
- Ask questions or get help at https://github.com/doguabaris/corev-openclaw-plugin/discussions. You can expect a best-effort response, usually within 3-5 business days.
Developer documentation
Technical implementation
This plugin uses openclaw/plugin-sdk (definePluginEntry) to register Corev plugins and host management plugins. It depends on @sinclair/typebox for plugin schemas, Node.js child_process for command execution, and local corev-host source under src/host/server for backend bootstrap/start/stop flows.
Code structure
The index.ts module does plugin registration, plugin action definitions, host process management, .env generation, health checks, and response formatting.
The src/commands directory contains Corev CLI command modules (init, pull, push, diff, list, revert, checkout, env).
The src/services directory contains CLI support services such as .corevrc handling and API settings.
The src/host/server directory contains embedded corev-host backend source used by host operations.
The tests directory contains smoke, CLI integration, plugin E2E, and live host E2E scenarios.
Local development
Set up
How to set up development environment:
- Clone the repository and move into it.
git clone https://github.com/doguabaris/corev-openclaw-plugin.gitcd corev-openclaw-plugin
- Verify Node version.
node -v- Confirm it is 22+.
Install
How to install:
- Install root dependencies.
npm install- Wait for completion without errors.
- Install host dependencies (if you will use host operations).
npm run install-corev-host- Confirm
src/host/server/node_modulesexists.
Configure
How to configure:
- Define OpenClaw plugin config (
workingDirectory, host settings as needed). - If testing host bootstrap, ensure a reachable MongoDB URI is available.
Build and test
How to build and run locally:
- Build TypeScript output.
npm run build- Verify generated artifacts under
dist/.
How to run tests:
- Run full test suite.
npm test- Optional live host flow:
npm run test:e2e:live
Debugging
-
Type compatibility error from OpenClaw SDK- Ensure plugin responses include required fields expected by current OpenClaw SDK types.
-
health NOT READY at ...- Validate
hostApiUrl,hostHealthPath,.envvalues, and host process logs under.corev-openclaw-plugin/.
- Validate
-
Missing MongoDB URI...- Provide
hostMongoUriin plugin config or passmongoUridirectly in host plugin params.
- Provide
How to contribute
The Corev OpenClaw Plugin maintainers welcome contributions.
- Bug fixes
- New tests and reliability improvements
- Documentation improvements
- Safe plugin enhancements for OpenClaw/Corev workflows
Contribution process
Before contributing, read the Code of Conduct that outlines community guidelines and expectations. We follow TypeScript + ESLint conventions used in this repository.
- Open an issue describing the proposed change.
- Clarify expected behavior.
- Include logs or reproduction steps when relevant.
- Submit a focused pull request.
- Keep scope limited to one concern.
- Run
npm run build,npm test, and attach results.
Credits
- Doğu Abaris (author and maintainer)
- Contributors in this repository’s pull requests and issue reports
License
This project is licensed under the MIT License.
