← 返回
开发者工具

Low-Spec Optimizer

Optimize OpenClaw performance on machines with limited resources (4GB RAM or less, old CPUs). Use when (1) user mentions slow performance, high RAM usage, or...
在资源受限设备(4GB内存或更低、老旧CPU)上优化OpenClaw性能。当用户提及运行缓慢、内存占用过高或……时使用。
lunaviva211-sketch
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 510
下载
💾 4
安装
1
版本
#latest

概述

Low-Spec Optimizer

Help OpenClaw run smoothly on machines with limited resources.

Quick Start

Check current resources:

bash <skill-dir>/scripts/check_resources.sh

Parse output with jq:

bash <skill-dir>/scripts/check_resources.sh | jq '.alert, .ram.pct, .cpu.pct'

Workflow

1. Check resources before heavy operations

Before spawning subagents, opening browser, or running intensive tasks:

bash <skill-dir>/scripts/check_resources.sh

Decision matrix based on alert field:

  • OK (< 60% RAM): Proceed normally
  • ELEVATED (60-75%): Limit to 1 subagent, close browser first
  • WARNING (75-90%): Run cleanup, avoid spawning, warn user
  • CRITICAL (> 90%): Emergency cleanup, ask user before proceeding

2. Cleanup when needed

# Dry run first
bash <skill-dir>/scripts/cleanup_sessions.sh --dry-run

# Execute cleanup
bash <skill-dir>/scripts/cleanup_sessions.sh

# Aggressive (includes npm/pip/journal)
bash <skill-dir>/scripts/cleanup_sessions.sh --aggressive

3. Apply config recommendations

For machines with ≤4GB RAM, suggest OpenClaw config changes.

See references/config-guide.md for full details.

Key recommendations:

  • Use free/lightweight models (hunter-alpha, GLM-4.5-air)
  • Set thinking to "off" unless needed
  • Limit concurrent subagents to 2 max
  • Always close browser after use
  • Prefer web_fetch over browser automation
  • Use mode: "run" for subagents (auto-cleanup)

4. Proactive monitoring (heartbeat)

During heartbeats on low-spec machines:

bash <skill-dir>/scripts/check_resources.sh | jq -r '.alert'

If alert is WARNING or CRITICAL, notify the user with specifics:

  • Which process is consuming most memory
  • How much is free
  • Recommended action (cleanup, close apps, restart)

Rules for constrained environments

  1. One browser at a time — never parallel browser sessions
  2. Close everything after use — browser, subagent sessions, temp files
  3. Check before opening — always check RAM before heavy operations
  4. Prefer lightweight alternativesweb_fetch > browser, mode: "run" > mode: "session"
  5. Batch operations — combine tasks instead of spawning separate sessions
  6. Use cron over heartbeat — for precise scheduling, use cron with isolated sessions

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-19 17:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Colmena Manager

lunaviva211-sketch
同时管理和监控多个 OpenClaw 代理,包括状态检查、消息、日志、暂停、恢复和工作区管理。
★ 0 📥 631
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,777
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 67 📥 180,060