rescueclawProvides automatic checkpoint creation and rollback to safely recover from failures during risky operations like config changes or updates.
Install via ClawdBot CLI:
clawdbot install harman314/rescueclawProvides checkpoint/rollback safety net for risky operations.
Before modifying config, installing skills, or updating the gateway, create a checkpoint:
const rescueclaw = require('./rescueclaw-checkpoint');
await rescueclaw.createCheckpoint('About to apply config changes');
RescueClaw will take an immediate backup. If the agent goes unresponsive within the rollback window, it auto-restores.
Clear the checkpoint:
const rescueclaw = require('./rescueclaw-checkpoint');
await rescueclaw.clearCheckpoint();
The agent can also invoke RescueClaw CLI directly:
rescueclaw backup ā manual snapshotrescueclaw status ā check healthrescueclaw list ā list backupsThe daemon binary is bundled for supported platforms (linux/arm64). On install, it copies to ~/.local/bin/rescueclaw. For other platforms, download from GitHub Releases.
Data is stored in ~/.openclaw/rescueclaw/ (user-local, no sudo required).
createCheckpoint(reason, rollbackWindowSec = 300)Creates a checkpoint file that RescueClaw monitors. If the agent becomes unresponsive within the rollback window, RescueClaw will immediately restore from the checkpoint backup.
Parameters:
reason (string): Description of what operation is about to be performedrollbackWindowSec (number, optional): How many seconds to monitor for issues (default: 300)Returns: Promise
clearCheckpoint()Removes the checkpoint file, signaling that the risky operation completed successfully.
Returns: Promise
getStatus()Gets RescueClaw daemon status by invoking the CLI.
Returns: Promise
const fs = require('fs');
const rescueclaw = require('./rescueclaw-checkpoint');
async function updateConfig(newConfig) {
// Create safety checkpoint
await rescueclaw.createCheckpoint('Updating OpenClaw config', 180);
try {
// Perform the risky operation
fs.writeFileSync('~/.openclaw/openclaw.json', JSON.stringify(newConfig));
// Restart gateway
await exec('systemctl restart openclaw-gateway');
// If we get here, it worked!
await rescueclaw.clearCheckpoint();
console.log('ā
Config updated successfully');
} catch (err) {
console.error('ā Config update failed:', err);
// Don't clear checkpoint - let RescueClaw auto-restore
}
}
Generated Mar 1, 2026
IT administrators use RescueClaw to safely apply configuration changes to critical systems like network gateways or server settings. Before modifying files, they create a checkpoint; if the system becomes unresponsive during the update, RescueClaw automatically restores the previous state within the rollback window, preventing downtime.
Developers and system operators employ RescueClaw when installing new software packages or updating existing applications on production servers. It creates a backup checkpoint before the installation; if the process fails or causes instability, RescueClaw rolls back to the stable state, ensuring service continuity.
Teams managing API gateways or middleware components use RescueClaw to implement changes like routing rules or security policies. They set a checkpoint with a custom rollback window; if the gateway crashes after the update, RescueClaw restores the last working configuration automatically, minimizing disruption.
In CI/CD pipelines, RescueClaw is integrated to provide rollback safety during automated deployments of applications or infrastructure. Before deployment scripts run, it creates a checkpoint; if the deployment fails or the agent hangs, RescueClaw triggers an auto-restore, reducing manual intervention.
Database administrators use RescueClaw when migrating data or schema changes in production databases. They create a checkpoint before executing risky SQL scripts; if the migration causes errors or performance issues, RescueClaw restores from the backup within the specified window, protecting data integrity.
Offer RescueClaw as a free, open-source tool for basic checkpoint and rollback functionality, with paid tiers providing advanced features like extended rollback windows, enterprise-grade monitoring, and priority support. Revenue is generated through subscription plans for businesses requiring higher reliability and SLA guarantees.
Provide RescueClaw as a cloud-based service integrated with popular DevOps tools like Jenkins, Kubernetes, or Ansible. Users pay based on usage metrics such as number of checkpoints created or data storage, with additional revenue from consulting services for custom integrations and training workshops.
Sell RescueClaw under proprietary licenses to large organizations needing tailored solutions for specific environments like government or finance. Revenue comes from one-time license fees, annual maintenance contracts, and custom development projects to adapt the tool for unique operational workflows.
š¬ Integration Tip
Integrate RescueClaw into existing scripts by requiring the checkpoint module before risky operations and calling clearCheckpoint after success; ensure the daemon is installed and running for auto-restore functionality.
Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
Connect to 100+ APIs (Google Workspace, Microsoft 365, GitHub, Notion, Slack, Airtable, HubSpot, etc.) with managed OAuth. Use this skill when users want to...
Build, debug, and deploy websites using HTML, CSS, JavaScript, and modern frameworks following production best practices.
YouTube Data API integration with managed OAuth. Search videos, manage playlists, access channel data, and interact with comments. Use this skill when users want to interact with YouTube. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
Scaffold, test, document, and debug REST and GraphQL APIs. Use when the user needs to create API endpoints, write integration tests, generate OpenAPI specs, test with curl, mock APIs, or troubleshoot HTTP issues.
Search for jobs across LinkedIn, Indeed, Glassdoor, ZipRecruiter, Google Jobs, Bayt, Naukri, and BDJobs using the JobSpy MCP server.