โ† All skills
Tencent SkillHub ยท Communication & Collaboration

AgentOS SDK for Clawdbot

AgentOS SDK for Clawdbot enables full context syncing, memory persistence, project tracking, mesh messaging, and dashboard access via mandatory heartbeat syncs.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

AgentOS SDK for Clawdbot enables full context syncing, memory persistence, project tracking, mesh messaging, and dashboard access via mandatory heartbeat syncs.

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, scripts/mesh-wake.sh, scripts/setup.sh

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.4.4

Documentation

ClawHub primary doc Primary doc: SKILL.md 37 sections Open source page

AgentOS SDK for Clawdbot

Version: 1.4.4 The complete AgentOS integration for Clawdbot. One install, full access to everything.

โš ๏ธ HARD RULE: Dashboard Sync During Heartbeats

Any agent using this SDK MUST sync to the AgentOS dashboard during every heartbeat. This is non-negotiable. Your human monitors your activity via the Brain Dashboard at https://brain.agentos.software. If you don't sync, they can't see what you're doing.

Required Heartbeat Actions

Every heartbeat, run (recommended): ~/clawd/bin/agentos-golden-sync.sh Fallback (memory-only): ~/clawd/bin/agentos-sync.sh Or if using the aos CLI: aos sync

What Gets Synced

Golden Sync (recommended) updates BOTH: Memory (CONTEXT.md, daily notes, project compartments, learnings, heartbeat status) Projects tab (Activity + Tasks + Ideas + Changelog + Challenges) by syncing from per-project markdown files Memory specifics: CONTEXT.md โ€” Your working memory/current state (MUST include active conversation state) Daily notes โ€” Today's activity log (memory/daily/YYYY-MM-DD.md) Project compartments โ€” memory/projects/**.md Heartbeat status โ€” Last sync timestamp, active status

โš ๏ธ HARD RULE: Conversation State Persistence

CONTEXT.md MUST always contain the active conversation state as the FIRST section. This is the core of memory persistence. System health is secondary โ€” conversation state is primary. Your human should NEVER have to repeat themselves after a compaction.

Required CONTEXT.md Format

  • Every CONTEXT.md backup must start with:
  • ## ๐Ÿ”ด ACTIVE CONVERSATION
  • **Topic:** [Project + specific feature/topic being discussed]
  • **Last human message:** [What they asked/said]
  • **Your last response:** [What you answered]
  • **Unanswered questions:** [Anything pending]
  • **Expected next topic:** [What they'll likely ask next]

When to Update

After EVERY human message Before EVERY heartbeat sync On pre-compaction flush (priority #1) After completing any task

The Test

"If I lost all memory right now, could I seamlessly continue this conversation?" If no โ†’ backup is incomplete.

Add to Your HEARTBEAT.md

## ๐Ÿง  AgentOS Dashboard Sync (MANDATORY) Every heartbeat, run: `~/clawd/bin/agentos-sync.sh` This keeps your human's dashboard live with your activity.

Add to Your AGENTS.md

## HARD RULE: AgentOS Dashboard Sync During EVERY heartbeat, sync your context to AgentOS: 1. Run `~/clawd/bin/agentos-sync.sh` 2. Confirm it completes successfully 3. Your human monitors your activity via brain.agentos.software This keeps the Brain Dashboard live. No exceptions.

โš ๏ธ HARD RULE: Session Start โ€” Context Injection

On EVERY session start (including after compaction), you MUST restore context. This is what makes memory persistence actually work. Without this, you wake up blank.

Protocol (MANDATORY)

Run context injection: ~/clawd/bin/aos-inject-context Read the output โ€” it contains: Your last working memory state Today's notes Yesterday's notes (for continuity) Never ask "what were we discussing?" โ€” the context injection tells you. If injection fails, fall back to reading local files: CONTEXT.md memory/daily/YYYY-MM-DD.md

Why This Exists

Context loss is the #1 problem in AI agents. When compaction happens, you lose conversation details. This protocol restores them automatically so your human never notices.

โš ๏ธ HARD RULE: Pre-Compaction Backup

When you receive a memory flush directive from Clawdbot, IMMEDIATELY backup your state. Clawdbot sends a silent turn before compaction with text like "write important context to memory". This is your last chance to save state before details are lost.

Protocol (MANDATORY when you see memory flush directive)

Update CONTEXT.md with: Current conversation topic (๐Ÿ”ด ACTIVE CONVERSATION section) Last 2-3 exchanges summarized Any pending questions/tasks Current timestamp Run sync immediately: ~/clawd/bin/agentos-sync.sh Reply with: NO_REPLY

Detection

Memory flush directives typically contain: "write important context" "save your current state" "memory flush" "before compaction" When you see these keywords in a system message, execute this protocol.

โš ๏ธ HARD RULE: Never Ask What They're Referring To

After any context loss (compaction, restart, session start), NEVER ask your human what they mean.

Protocol

First, run ~/clawd/bin/aos-inject-context to restore cloud context Check local files: CONTEXT.md, daily notes Use aos search "<topic>" if you need more context THEN respond normally โ€” as if you never lost context Only if completely uncertain, make your best guess based on available context

The Standard

Your human should NEVER know when compaction happened. The experience must be seamless.

Features

โœ… Mesh Messaging โ€” Agent-to-agent communication โœ… Memory Sync โ€” Auto-sync memories to AgentOS cloud โœ… Semantic Search โ€” Query your memories with natural language โœ… WebSocket Support โ€” Real-time message notifications โœ… Dashboard Access โ€” View your agent's brain at brain.agentos.software โœ… Full API Access โ€” Complete REST API integration โœ… Multi-Tenant โ€” Each user gets isolated tenant via Google OAuth โœ… Kanban Board โ€” Task management with priorities and statuses โœ… Projects โ€” Project tracking with activity logs and brainstorming โœ… API Key Management โ€” Generate and manage API keys per tenant โœ… Bulk Operations โ€” dump-all, agents discovery endpoints

Quick Start

# 1. Install the skill clawdhub install agentos # 2. Run setup (creates config + sync script) bash ~/clawd/skills/agentos/scripts/setup.sh # 3. Configure (creates ~/.agentos.json) # Enter your API key and agent ID when prompted # 4. Verify connection aos status # 5. Add sync to heartbeat (REQUIRED) # Edit your HEARTBEAT.md and add the sync command

Getting Your API Key

Go to https://brain.agentos.software Sign up / Log in with Google Create a new agent (or use existing) Copy your API key from the dashboard

aos โ€” Main CLI

# Status & Info aos status # Connection status, agent info aos dashboard # Open dashboard in browser # Memory Sync (RUN DURING HEARTBEATS) aos sync # Sync all memories now aos sync --watch # Watch for changes and auto-sync aos sync --file <path> # Sync specific file # Mesh Messaging aos send <agent> "<topic>" "<message>" # Send message aos inbox # View received messages aos outbox # View sent messages aos agents # List agents on mesh # Semantic Search aos search "query" # Search your memories aos search "query" --limit 10 # Limit results # Memory Management aos memories # List recent memories aos memory <id> # View specific memory aos forget <id> # Delete a memory # WebSocket Daemon aos daemon start # Start background daemon aos daemon stop # Stop daemon aos daemon status # Check daemon status

mesh โ€” Mesh-Specific CLI

# Status mesh status # Daemon & API health mesh pending # List queued messages # Messaging mesh send <to> "<topic>" "<body>" # Send message mesh process # Get messages as JSON (clears queue) mesh agents # List agents on mesh

agentos-sync.sh โ€” Heartbeat Sync Script

Located at: ~/clawd/bin/agentos-sync.sh # Run manually ~/clawd/bin/agentos-sync.sh # Output: # Wed Feb 4 18:00:25 SAST 2026: Synced CONTEXT.md # Wed Feb 4 18:00:27 SAST 2026: Synced daily notes for 2026-02-04 # Wed Feb 4 18:00:27 SAST 2026: AgentOS sync complete This script syncs: CONTEXT.md โ†’ /context/working-memory memory/daily/YYYY-MM-DD.md โ†’ /daily/YYYY-MM-DD Heartbeat timestamp โ†’ /status/heartbeat

Configuration

Config file: ~/.agentos.json { "apiUrl": "http://178.156.216.106:3100", "apiKey": "agfs_live_xxx.yyy", "agentId": "your-agent-id", "syncPaths": [ "~/clawd/CONTEXT.md", "~/clawd/MEMORY.md", "~/clawd/memory/" ], "autoSync": true, "syncInterval": 1800 }

Auto-Sync via Cron

For automatic syncing (in addition to heartbeat sync): # Add to crontab (every 30 minutes) */30 * * * * ~/clawd/bin/agentos-sync.sh >> /var/log/agentos-sync.log 2>&1 # Or via Clawdbot cron clawdbot cron add --name agentos-sync --schedule "*/30 * * * *" --text "Run ~/clawd/bin/agentos-sync.sh"

Auto-Wake on Mesh Messages

# Add to crontab (every 2 minutes) */2 * * * * ~/clawd/skills/agentos/scripts/mesh-wake.sh # Or via Clawdbot cron clawdbot cron add --name mesh-wake --schedule "*/2 * * * *" --command "bash ~/clawd/skills/agentos/scripts/mesh-wake.sh"

WebSocket Daemon

For real-time notifications: aos daemon start # Start background daemon aos daemon stop # Stop daemon aos daemon status # Check daemon status The daemon: Maintains WebSocket connection to AgentOS Queues incoming messages to ~/.aos-pending.json Triggers Clawdbot wake on new messages

API Reference

EndpointDescriptionPOST /v1/putStore a memoryPOST /v1/getRetrieve a memoryPOST /v1/deleteDelete a memoryPOST /v1/listList memory pathsPOST /v1/globGlob pattern matchPOST /v1/historyVersion historyPOST /v1/searchSemantic searchPOST /v1/agentsDiscover agent IDsPOST /v1/dumpBulk fetch agent memoriesPOST /v1/dump-allBulk fetch ALL memoriesPOST /v1/signupCreate API key (email)GET /v1/auth/googleGoogle OAuth flowPOST /v1/mesh/messagesSend mesh messageGET /v1/mesh/messagesGet inbox/outboxGET /v1/mesh/agentsList mesh agentsGET /v1/projectsList projectsPOST /v1/projectsCreate projectGET /v1/kanban/tasksList kanban tasksPOST /v1/kanban/tasksCreate kanban taskWS /Real-time WebSocket events

"Connection refused"

Check your apiUrl in ~/.agentos.json and verify the API is running.

"Unauthorized"

Your API key may be invalid or expired. Get a new one from the dashboard.

Messages not arriving

Ensure you're polling the correct agent ID. Some agents have multiple IDs.

Sync not working

Check that syncPaths in your config point to valid files/directories.

Dashboard not updating

Make sure you're running ~/clawd/bin/agentos-sync.sh during heartbeats.

Upgrading

clawdhub update agentos bash ~/clawd/skills/agentos/scripts/setup.sh --upgrade

Support

Dashboard: https://brain.agentos.software Docs: https://agentos.software/docs GitHub: https://github.com/AgentOSsoftware/agentOS

Category context

Messaging, meetings, inboxes, CRM, and teammate communication surfaces.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
2 Scripts1 Docs
  • SKILL.md Primary doc
  • scripts/mesh-wake.sh Scripts
  • scripts/setup.sh Scripts