Skip to content

OpenBMB/EdgeClaw

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24,486 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

EdgeClaw Logo

Secure Β· Cost-Effective Β· Efficient

Edge-Cloud Collaborative AI Agent
EdgeClaw: Bringing the Claude Code Experience to OpenClaw

【中文 | English】

πŸ‘‹ Join our community for discussion and support!

Feishu Β |Β  Discord


What's New πŸ”₯

  • [2026.04.03] πŸš€ Three Claude Code-liked features released: πŸ”§ ClawXTool launches an 8-in-1 tool suite (including security analysis, secret scanning, git worktrees, etc.), πŸ” ClawXSkill releases an intelligent discovery engine (supporting skill search and model judge), and 🧠 ClawXContext introduces smooth context compaction and dynamic reinjection for long sessions.
  • [2026.04.02] πŸš€ Released three Claude Code-liked features optimized for OpenClaw β€” πŸ€– ClawXKairos (Self-Driven Agent Loop), πŸ›‘οΈ ClawXGovernor (Tool Governance), and πŸ“¦ ClawXSandbox (Claude Code-Style Sandbox)
  • [2026.04.01] πŸŽ‰ EdgeClaw 2.0 is officially open-sourced, featuring a brand-new memory engine and cost-saving router β€” bringing the Claude Code experience to OpenClaw!
  • [2026.04.01] πŸŽ‰ ClawXMemory released β€” inspired by Claude Code's memory mechanism, it delivers a smoother experience for OpenClaw scenarios with multi-layered structured long-term memory and proactive reasoning!
  • [2026.03.25] πŸŽ‰ ClawXRouter released β€” 5-tier cost-saving routing + three-tier privacy collaboration + visual Dashboard
  • [2026.03.13] πŸŽ‰ EdgeClaw adds Cost-Aware Collaboration: automatically determines task complexity and matches the most economical cloud model
  • [2026.02.12] πŸŽ‰ EdgeClaw is officially open-sourced β€” an Edge-Cloud Collaborative AI Agent

πŸ’‘ About EdgeClaw

EdgeClaw is an Edge-Cloud Collaborative AI Agent jointly developed by THUNLP (Tsinghua University), Renmin University of China, AI9Stars, ModelBest, and OpenBMB, built on top of OpenClaw.

OpenClaw vs Claude Code vs EdgeClaw

OpenClaw Claude Code EdgeClaw
Cross-session project knowledge βœ— βœ“ βœ“
Persistent user preference βœ— βœ“ βœ“
Multi-layered structured memory βœ— βœ“ βœ“
Memory integration strategy Recall On-demand read Proactive reasoning
Continuous memory consolidation βœ— Auto-Dream (backend) Auto-consolidation on idle & topic switch
Cost-aware routing βœ— βœ— 58% cost savings
Three-tier privacy collaboration βœ— βœ— S1/S2/S3
Context working set management βœ— βœ“ βœ“
Tool risk governance & audit βœ— βœ“ βœ“
Self-driven agent loop βœ— βœ“ βœ“
Sandboxed execution βœ— βœ“ βœ“
Intelligent skill discovery βœ— βœ— βœ“
Built-in security tool suite βœ— β–³ βœ“
Virtual pet companion βœ— βœ“ βœ“
Visual Dashboard βœ— βœ— βœ“

✨ Highlights at a Glance

🌟 Claude Code-Liked Features

  • πŸ€– Self-Driven Loop β€” ClawXKairos: Tick scheduling + Sleep tool + background command automation + async sub-agents, enabling the agent to work autonomously and continuously
  • πŸ›‘οΈ Tool Governance β€” ClawXGovernor: Three hook middlewares β€” context tail-window trimming, tool call risk interception & audit, session note incremental append. Deeply optimized for OpenClaw scenarios, saving 85% tokens over 30 rounds of calls
  • πŸ“¦ Sandbox Execution β€” ClawXSandbox: Fully isolated local execution environment based on system-level sandboxing (bwrap / sandbox-exec). Focused on being lightweight, fast, and zero-dependency, completely eliminating all Docker overhead.
  • πŸ”§ Unified Tool Suite β€” ClawXTool: 8-in-1 plugin providing 13 tools, covering security audit (bash security analysis, secret scanning), workflow (git worktree management, structured task tracking), development assistance (cron parsing, notebook editing), and agent interaction (memory age annotations, interactive user questions).
  • πŸ” Skill Discovery β€” ClawXSkill: Automatically discovers and indexes agent skills across the workspace using BM25 keyword search, optional embedding-based semantic search, and LLM model judge for intelligent skill matching.
  • 🧠 Memory Engine β€” ClawXMemory: A structured long-term memory engine built for OpenClaw. Building on the ideas behind Claude Code's memory mechanism, it further introduces multi-layered structured memory and model-driven memory retrieval. (v0.1.5)
  • πŸ“ Context Engine β€” ClawXContext: OpenClaw context engine focused on long-session stability, smooth context compaction, and dynamic reinjection.
  • 🐾 Virtual Pet Companion β€” ClawXBuddy: An adorable ASCII virtual pet companion with idle animations, rarity traits, and interactive commands to keep you company.

πŸ”₯ Other Core Features

  • πŸ’° Cost-Saving Router β€” ClawXRouter: LLM-as-Judge automatically determines complexity, routing 60–80% of requests to cheaper models. Real-world PinchBench testing shows 58% cost savings with scores 6.3% higher.
  • πŸ”’ Three-Tier Privacy β€” S1 direct cloud / S2 desensitized forwarding / S3 fully local processing β€” sensitive data never leaves the device.
  • πŸš€ Zero Configuration β€” pnpm build && node openclaw.mjs gateway run, auto-generates config on first launch, just fill in your API Key.
  • πŸ“Š Dual Dashboard β€” ClawXRouter routing config hot-reload + ClawXMemory memory canvas visualization.

🎬 Demo

EdgeClaw2_ZH_Demo.mp4

πŸ“¦ Quick Start

1. Build

git clone https://github.com/openbmb/edgeclaw.git
cd edgeclaw

pnpm install
pnpm build

2. Launch

node openclaw.mjs gateway run

EdgeClaw uses ~/.edgeclaw/ as the data directory by default, completely isolated from OpenClaw (~/.openclaw/). To customize the path, set the OPENCLAW_STATE_DIR environment variable.

On first launch, a complete configuration skeleton is auto-generated (~/.edgeclaw/openclaw.json + clawxrouter.json), with ClawXRouter and ClawXMemory as bundled extensions β€” no manual plugin installation required.

3. Fill in API Key

The generated config has empty API Keys. Fill them in to get started:

  • Edit the config file: Modify the apiKey for each provider under models.providers in ~/.edgeclaw/openclaw.json
  • Dashboard hot-reload: Visit http://127.0.0.1:18790/plugins/clawxrouter/stats and modify directly in the UI β€” changes take effect immediately

Tip: Setting the EDGECLAW_API_KEY environment variable before launch will auto-fill it.

4. Verify

node openclaw.mjs agent --local --agent main -m "Hello"

When you see [ClawXrouter] token-saver: S1 redirect β†’ and an agent reply, the deployment is successful.

Dashboard

Panel URL
ClawXRouter (routing config & stats) http://127.0.0.1:18790/plugins/clawxrouter/stats
ClawXMemory (memory visualization) http://127.0.0.1:39394/clawxmemory/

Having issues? Check the Troubleshooting Guide


🧠 ClawXMemory β€” Multi-Layered Long-Term Memory System

Developers who have used Claude Code know: what truly makes it indispensable isn't how good any single answer is, but that it remembers you β€” your coding style, project architecture, last week's discussion, even your preferred naming conventions.

ClawXMemory is the first plugin to bring Claude Code-like memory capabilities to the OpenClaw ecosystem.

Core Memory Capability Standard OpenClaw Claude Code ClawXMemory
Cross-session project knowledge βœ— βœ“ βœ“
Persistent user preference βœ— βœ“ βœ“
Multi-layered structured memory βœ— βœ“ βœ“
Memory integration strategy Recall On-demand read Proactive reasoning
Continuous memory consolidation βœ— Auto-Dream Auto-consolidation on idle & topic switch

Three-Layer Memory Architecture

The system automatically distills information during conversations, building structured memory layer by layer:

Memory Layer Type Description
L2 Project memory / Timeline memory High-level long-term memory aggregated around specific topics or timelines
L1 Memory fragments Structured core summaries distilled from concluded topics
L0 Raw conversations The lowest-level raw message records
Global User profile A continuously updated global user preference singleton

When the model needs to recall, it proactively navigates along the "memory tree" through reasoning β€” first evaluating relevance from high-level memory (project/timeline/profile), drilling down into finer-grained fragments only when needed, and tracing back to specific conversations when necessary. This is closer to how a human expert reasons layer by layer than traditional vector retrieval.

Core Features

  • Automatic memory construction: No manual maintenance needed β€” automatically distills, aggregates, and updates during conversation
  • Model-driven retrieval: Uses reasoning instead of matching, truly understanding vague questions like "How is this project progressing?"
  • Memory visualization Dashboard: Canvas view and list view, with memory layers and relationships at a glance
  • Local storage, privacy-safe: SQLite by default, data never leaves the device, supports one-click import/export

For detailed documentation, see ClawXMemory README.


πŸ”Œ ClawXRouter β€” Edge-Cloud Collaborative Routing Plugin

ClawXRouter is EdgeClaw's routing brain β€” the edge perceives data attributes (sensitivity, complexity) while the cloud handles reasoning and generation. Through its Hook mechanism, it automatically intercepts and routes without any changes to business code, serving as a seamless drop-in replacement for OpenClaw.

Cost-Aware Routing (Token-Saver)

Most requests involve browsing files, reading code, and simple Q&A β€” using the most expensive model for these tasks is pure waste. Token-Saver uses LLM-as-Judge to classify requests by complexity, automatically routing them to the most economical model:

Complexity Task Examples Default Target Model
SIMPLE Queries, translation, formatting, greetings gpt-4o-mini
MEDIUM Code generation, single-file editing, email drafting gpt-4o
COMPLEX System design, multi-file refactoring, cross-doc analysis claude-sonnet-4.6
REASONING Mathematical proofs, formal logic, experiment design o4-mini
Approach Pros Cons
Keyword Rules Fast No semantic understanding, high false-positive rate
LLM-as-Judge Semantic understanding, multilingual One additional local model call (~1–2s)

The Judge runs on a local small model (MiniCPM-4.1 / Qwen3.5), with prompt hash caching (SHA-256, TTL 5 min) to avoid re-judging identical requests. In typical workflows, 60–80% of requests are forwarded to cheaper models.

Three-Tier Security Collaboration (Privacy Router)

Every message, tool call, and tool result is inspected in real time and automatically classified into three levels:

Level Meaning Routing Strategy Example
S1 Safe Send directly to cloud model "Write a poem about spring"
S2 Sensitive Desensitize then forward to cloud Addresses, phone numbers, emails
S3 Private Process locally only Pay slips, passwords, SSH keys

Dual Detection Engines: Rule detector (keywords + regex, ~0ms) + Local LLM detector (semantic understanding, ~1–2s) β€” the two can be combined and stacked.

S2 Desensitized Forwarding:

User Message (containing PII) β†’ Local LLM Detection β†’ S2 β†’ Extract PII β†’ Replace with [REDACTED:*]
    β†’ Privacy Proxy β†’ Strip markers β†’ Forward to cloud β†’ Pass through SSE response

S3 Fully Local: Forwarded to the local Guard Agent (Ollama / vLLM); cloud-side history only receives a placeholder.

Dual-Track Memory & Dual-Track Sessions:

~/.edgeclaw/workspace/
β”œβ”€β”€ MEMORY.md           ← What the cloud model sees (auto-desensitized)
β”œβ”€β”€ MEMORY-FULL.md      ← What the local model sees (complete data)
β”‚
agents/{id}/sessions/
β”œβ”€β”€ full/               ← Complete history (including Guard Agent interactions)
└── clean/              ← Clean history (for cloud model consumption)

The cloud model never sees MEMORY-FULL.md or sessions/full/ β€” the Hook system intercepts at the file access layer.

Composable Router Pipeline

The security router and cost-aware router run in the same pipeline, working together via weights and a two-phase short-circuit strategy:

User Message
    β”‚
    β–Ό
RouterPipeline.run()
    β”‚
    β”œβ”€β”€ Phase 1: Fast routers (weight β‰₯ 50) run in parallel
    β”‚       └── privacy router β†’ three-tier sensitivity detection
    β”‚
    β”œβ”€β”€ Short-circuit: If Phase 1 detects sensitive data β†’ skip Phase 2
    β”‚
    └── Phase 2: Slow routers (weight < 50) run on demand
            └── token-saver β†’ LLM Judge complexity classification

Security first β€” the security router runs first with high weight. If sensitive data is found, it short-circuits immediately. Cost-aware routing kicks in only after the security check passes (S1).

13 Hooks Covering the Complete Lifecycle

Hook Trigger Point Core Responsibility
before_model_resolve Before model selection Run pipeline β†’ routing decision
before_prompt_build Before prompt construction Inject Guard Prompt / S2 markers
before_tool_call Before tool invocation File access guard + sub-agent guard
after_tool_call After tool invocation Tool result detection
tool_result_persist Result persistence Dual-track session write
before_message_write Before message write S3 β†’ placeholder, S2 β†’ desensitized version
session_end Session ends Memory synchronization
message_sending Outbound message Detect and desensitize/cancel
before_agent_start Before sub-agent starts Task content guard
message_received Message received Observability logging

For detailed documentation, see ClawXRouter README.


πŸ”§ Custom Configuration

Custom Detection Rules

{
  "privacy": {
    "rules": {
      "keywords": {
        "S2": ["password", "api_key", "token"],
        "S3": ["ssh", "id_rsa", "private_key", ".pem"]
      },
      "patterns": {
        "S2": ["(?:mysql|postgres|mongodb)://[^\\s]+"],
        "S3": ["-----BEGIN (?:RSA |EC )?PRIVATE KEY-----"]
      },
      "tools": {
        "S2": { "tools": ["exec", "shell"], "paths": ["~/secrets"] },
        "S3": { "tools": ["sudo"], "paths": ["~/.ssh", "~/.aws"] }
      }
    }
  }
}

Detector Composition

{
  "privacy": {
    "checkpoints": {
      "onUserMessage": ["ruleDetector", "localModelDetector"],
      "onToolCallProposed": ["ruleDetector"],
      "onToolCallExecuted": ["ruleDetector"]
    }
  }
}

Custom Routers

The ClawXRouter pipeline is fully extensible β€” implement the GuardClawRouter interface to inject custom routing logic:

const myRouter: GuardClawRouter = {
  id: "content-filter",
  async detect(context, pluginConfig): Promise<RouterDecision> {
    if (context.message && context.message.length > 10000) {
      return {
        level: "S1",
        action: "redirect",
        target: { provider: "anthropic", model: "claude-sonnet-4.6" },
        reason: "Message too long, using larger context model",
      };
    }
    return { level: "S1", action: "passthrough" };
  },
};
{
  "privacy": {
    "routers": {
      "content-filter": {
        "enabled": true,
        "type": "custom",
        "module": "./my-routers/content-filter.js",
        "weight": 40
      }
    },
    "pipeline": {
      "onUserMessage": ["privacy", "token-saver", "content-filter"]
    }
  }
}

Prompt Customization

Edit the Markdown files under extensions/clawxrouter/prompts/ to adjust behavior β€” no code changes needed:

File Purpose
detection-system.md S1/S2/S3 classification rules
guard-agent-system.md Guard Agent behavior
token-saver-judge.md Task complexity classification

Provider Preset Quick Switch

Built-in presets allow one-click switching between local model + cloud model combinations:

Preset Local Model Cloud Model Use Case
vllm-qwen35 vLLM / Qwen 3.5-35B Same (fully local) Full local deployment, maximum privacy
minimax-cloud vLLM / Qwen 3.5-35B MiniMax M2.5 Local privacy detection + cloud primary model

Custom presets for Ollama, LMStudio, SGLang, and other backends are also supported.


πŸ—οΈ Code Structure

EdgeClaw/
β”œβ”€β”€ openclaw.mjs                         # CLI entry point
β”œβ”€β”€ src/config/
β”‚   β”œβ”€β”€ edgeclaw-defaults.ts             # EdgeClaw default config template (auto-seed)
β”‚   β”œβ”€β”€ paths.ts                         # State directory / port resolution (18790)
β”‚   └── io.ts                            # Config loading (with auto-seed logic)
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ deploy-edgeclaw.sh               # One-click deployment script
β”‚   └── lib/optional-bundled-clusters.mjs # Build exclusion list (guardclaw)
β”‚
β”œβ”€β”€ extensions/
β”‚   β”œβ”€β”€ clawxrouter/                     # [Built-in] ClawXRouter cost-saving router
β”‚   β”‚   β”œβ”€β”€ index.ts                     # Plugin entry point
β”‚   β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”‚   β”œβ”€β”€ router-pipeline.ts       # Router pipeline (two-phase + weighted merge)
β”‚   β”‚   β”‚   β”œβ”€β”€ hooks.ts                 # 13 Hooks
β”‚   β”‚   β”‚   β”œβ”€β”€ privacy-proxy.ts         # HTTP privacy proxy
β”‚   β”‚   β”‚   β”œβ”€β”€ config-schema.ts         # Default config schema
β”‚   β”‚   β”‚   β”œβ”€β”€ live-config.ts           # Config hot-reload
β”‚   β”‚   β”‚   β”œβ”€β”€ stats-dashboard.ts       # Visual Dashboard
β”‚   β”‚   β”‚   └── routers/
β”‚   β”‚   β”‚       β”œβ”€β”€ privacy.ts           # Privacy router (security)
β”‚   β”‚   β”‚       └── token-saver.ts       # Cost-aware router (cost savings)
β”‚   β”‚   └── prompts/                     # Customizable prompt templates
β”‚   β”‚
β”‚   β”œβ”€β”€ openbmb-clawxmemory/             # [Built-in] ClawXMemory long-term memory
β”‚   β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”‚   β”œβ”€β”€ index.ts                 # Plugin entry point
β”‚   β”‚   β”‚   β”œβ”€β”€ core/                    # L0/L1/L2 three-layer memory engine
β”‚   β”‚   β”‚   └── tools.ts                 # memory_overview / memory_list / memory_flush
β”‚   β”‚   └── ui-source/                   # Dashboard frontend
β”‚   β”‚
β”‚   β”œβ”€β”€ clawxkairos/                     # [Built-in] ClawXKairos self-driven loop
β”‚   β”‚   β”œβ”€β”€ index.ts                     # Plugin entry point
β”‚   β”‚   └── src/
β”‚   β”‚       β”œβ”€β”€ tick-scheduler.ts        # Tick scheduling (agent_end β†’ requestHeartbeatNow)
β”‚   β”‚       β”œβ”€β”€ sleep-tool.ts            # Sleep tool (controlled hibernation)
β”‚   β”‚       β”œβ”€β”€ background-commands.ts   # Long command auto-backgrounding
β”‚   β”‚       β”œβ”€β”€ async-subagent.ts        # Async sub-agents
β”‚   β”‚       β”œβ”€β”€ kairos-prompt.ts         # Autonomous mode system prompt injection
β”‚   β”‚       └── heartbeat-ack-guard.ts   # HEARTBEAT_OK interception β†’ forced Sleep
β”‚   β”‚
β”‚   β”œβ”€β”€ ClawXSandbox/                    # [Built-in] ClawXSandbox system-level sandbox
β”‚   β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”‚   β”œβ”€β”€ index.ts                # Plugin entry point
β”‚   β”‚   β”‚   β”œβ”€β”€ bwrap-backend.ts        # bwrap/sandbox-exec sandbox backend
β”‚   β”‚   β”‚   β”œβ”€β”€ fs-bridge.ts            # File system bridge
β”‚   β”‚   β”‚   └── config.ts              # Sandbox configuration
β”‚   β”‚   └── tests/                      # Unit tests
β”‚   β”‚
# Plugin entry point
β”‚   β”‚   └── src/
β”‚   β”‚       β”œβ”€β”€ backend.ts              # SSH sandbox backend
β”‚   β”‚       β”œβ”€β”€ mirror.ts              # Local-remote workspace mirroring
β”‚   β”‚       β”œβ”€β”€ fs-bridge.ts           # File system bridge
β”‚   β”‚       └── config.ts             # Sandbox configuration
β”‚   β”‚
β”‚   β”œβ”€β”€ clawxtool/                       # [Built-in] ClawXTool unified tool suite (8-in-1)
β”‚   β”‚   β”œβ”€β”€ index.ts                     # Unified entry (13 tools + hooks)
β”‚   β”‚   └── src/                         # Tool logic modules
β”‚   β”‚       β”œβ”€β”€ cron-parser.ts           # Cron expression parsing
β”‚   β”‚       β”œβ”€β”€ classifier.ts            # Bash command security classification
β”‚   β”‚       β”œβ”€β”€ secret-patterns.ts       # Secret/key detection patterns
β”‚   β”‚       β”œβ”€β”€ notebook.ts              # Jupyter notebook read/edit
β”‚   β”‚       β”œβ”€β”€ worktree.ts              # Git worktree management
β”‚   β”‚       β”œβ”€β”€ store.ts                 # Task persistence store
β”‚   β”‚       β”œβ”€β”€ annotate.ts              # Memory age freshness labels
β”‚   β”‚       └── question-tool.ts         # Structured multi-choice questions
β”‚   β”‚
β”‚   β”œβ”€β”€ clawxskill/                      # [Built-in] ClawXSkill intelligent skill discovery
β”‚   β”‚   β”œβ”€β”€ index.ts                     # Plugin entry point
β”‚   β”‚   β”œβ”€β”€ engines/
β”‚   β”‚   β”‚   β”œβ”€β”€ inverted-index.ts        # BM25 keyword search engine
β”‚   β”‚   β”‚   β”œβ”€β”€ embedding-search.ts      # Semantic embedding search
β”‚   β”‚   β”‚   └── model-judge.ts           # LLM-based skill relevance judge
β”‚   β”‚   β”œβ”€β”€ watcher.ts                   # File system skill watcher
β”‚   β”‚   └── skill-backup.ts             # Skill index backup/restore
β”‚   β”‚
β”‚   β”œβ”€β”€ clawxbuddy/                      # [Built-in] ClawXBuddy virtual pet companion
β”‚   β”‚   └── index.ts                     # Plugin entry point (ASCII sprites, idle animations)
β”‚   β”‚
β”‚   β”œβ”€β”€ guardclaw/                       # [Optional] Privacy guard (excluded from build by default)
β”‚   β”‚
β”‚   └── clawxgovernor/                   # [Built-in] ClawXGovernor tool governance
β”‚       β”œβ”€β”€ index.ts                     # Unified entry (3 hook middlewares)
β”‚       β”œβ”€β”€ src/
β”‚       β”‚   β”œβ”€β”€ assembler.ts             # Context trimmer (tail-window / compact / reinjection)
β”‚       β”‚   β”œβ”€β”€ tool-governor.ts         # Tool call interceptor (risk classification / block / loop detection / audit)
β”‚       β”‚   └── session-memory.ts        # Session note appender (delta note / lightweight hint injection)
β”‚       β”œβ”€β”€ mcp-server/                  # State query interfaces (9 debug tools)
β”‚       └── skills/                      # 4 Agent Skills
β”‚
└── ~/.edgeclaw/                         # Runtime state directory (auto-generated)
    β”œβ”€β”€ openclaw.json                    # Main config (auto-seeded on first launch)
    β”œβ”€β”€ clawxrouter.json                 # ClawXRouter config (auto-generated)
    β”œβ”€β”€ clawxrouter-stats.json           # Token statistics
    β”œβ”€β”€ clawxmemory/                     # ClawXMemory SQLite data
    β”œβ”€β”€ clawxgovernor/
    β”‚   β”œβ”€β”€ context-state.json           # Context engine state
    β”‚   β”œβ”€β”€ audit.jsonl                  # Tool audit logs
    β”‚   └── notes/                       # Session notes
    └── workspace-main/                  # Agent workspace

🀝 Contributing

Thanks to all contributors for their code submissions and testing. We welcome new members to join us in building the edge-cloud collaborative Agent ecosystem!

Contributing workflow: Fork this repo β†’ Submit Issues β†’ Create Pull Requests (PRs)


⭐ Support Us

If this project is helpful to your research or work, please give us a ⭐!


πŸ’¬ Contact Us

  • For technical questions and feature requests, please use GitHub Issues

πŸ“– References

Dependencies

  • OpenClaw β€” Base AI assistant framework
  • MiniCPM β€” Recommended local detection model
  • Ollama β€” Recommended local inference backend

Ecosystem Projects

  • ClawXRouter β€” Edge-Cloud collaborative routing plugin (privacy routing + cost-aware routing + Dashboard)
  • ClawXMemory β€” Multi-layered memory system for long-term context
  • ClawXContext β€” Context engine focused on long-session stability and smoother compaction
  • ClawXGovernor β€” Tool governance (context trimming + tool call interception & audit + session notes), EdgeClaw built-in extension
  • ClawXKairos β€” Self-driven agent loop (tick scheduling + sleep + background commands + async sub-agents)
  • ClawXSandbox β€” Lightweight, zero-dependency isolated execution environment based on system-level sandboxing (bwrap / sandbox-exec)
  • ClawXTool β€” Unified 8-in-1 tool suite (cron, bash security, secret scanning, notebooks, git worktrees, tasks, memory age, user questions)
  • ClawXSkill β€” Intelligent skill discovery with BM25 keyword search, embedding-based semantic search, and LLM model judge
  • ClawXBuddy β€” Virtual pet companion with ASCII sprites, idle animations, and rarity traits

License

MIT

About

EdgeClaw: Edge-Cloud Collaborative Personal AI Assistant based on OpenClaw

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

No contributors

Languages

  • TypeScript 89.0%
  • Swift 5.9%
  • Kotlin 1.6%
  • JavaScript 1.5%
  • Shell 1.1%
  • CSS 0.6%
  • Other 0.3%