← Back to Skills Marketplace
cwendler

Skill

by Christian Wendler · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ Security Clean
113
Downloads
0
Stars
0
Active Installs
5
Versions
Install in OpenClaw
/install kemia
Description
Connect your OpenClaw instance to kemia (https://kemia.byte5.ai) for visual agent configuration management. Use when: (1) connecting to a kemia deployment fo...
README (SKILL.md)

Kemia — Agent Configuration Manager

Manage your agent configurations through the kemia web interface.

Architecture: OpenClaw always initiates. Kemia never pushes. All communication is pull-based via the v1 API.

Prerequisites

  • jq must be installed
  • curl must be available
  • Config stored at: ~/.openclaw/workspace/skills/kemia/config.json

Commands

/connect \x3Ckemia-url> (two-step, resumable)

Connect this OpenClaw instance to a kemia deployment. Works in two steps because the confirmation happens in a browser and can take arbitrary time — the script never runs a long polling loop that could be killed by OpenClaw/Exec.

Step 1 — start enrollment: /kemia connect https://kemia.byte5.ai

  • POST /api/v1/enroll → enrollment URL
  • Persists state to skills/kemia/enrollment.json
  • Prints the URL. Exits immediately.

Step 2 — user clicks, confirms in the browser, returns to the agent.

Step 3 — complete: /kemia connect (no argument)

  • Reads enrollment.json, polls /status once.
  • If still pending → tells the user to wait and run /kemia connect again; exits.
  • If completed → saves config.json, exports workspace .md files, cleans up state.
  • If expired → cleans up, asks the user to re-run with a URL.

Already connected? A fresh /kemia connect without arguments is safe: the script verifies config.json against /api/v1/status first. If the key works, it reports "already connected" and exits without touching anything.

Re-connecting from the same machine: the script sends a stable machine fingerprint (sha256(hostname + workspace_path)) with the enrollment request. If kemia recognizes the machine, the confirmation page offers Re-Authenticate (rotate the API key on the existing instance, keep all agents) or Set up as a new instance (fresh start). Duplicates are no longer silently created.

No shared secrets needed. The enrollment URL is the authentication.

Script: scripts/connect.sh [kemia-url]

Environment variables (optional):

  • OPENCLAW_WORKSPACE — workspace path (default: ~/.openclaw/workspace)
  • OPENCLAW_INSTANCE_NAME — instance name (default: hostname)
  • OPENCLAW_AGENT_NAME — agent name (default: CyberClaw)

/kemia-link

Generate a one-time login URL for the kemia web interface (15-minute expiry).

Script: scripts/kemia-link.sh

Use this when the user needs a fresh session — e.g. after logout or on a new device.


/import [agent-id]

Import the latest deploy-ready snapshot from kemia into the workspace.

Script: scripts/import.sh [agent-id]

  • Fetches the snapshot marked "deploy ready" in the kemia UI
  • Backs up current workspace .md files to .kemia-backup/ before overwriting
  • If no agent-id given, uses the saved ID from config.json

After import, restart OpenClaw for changes to take effect.


/kemia-status

Check connection health and whether a deploy-ready snapshot is pending.

Script: scripts/status.sh


Config File

After /connect, credentials are stored in:

~/.openclaw/workspace/skills/kemia/config.json
{
  "apiKey": "km_...",
  "instanceId": "clxyz...",
  "baseUrl": "https://kemia.byte5.ai",
  "agentId": "clxyz..."
}

Setup Flow

  1. Run /kemia connect https://kemia.byte5.ai (or your kemia instance URL) — prints enrollment URL, exits.
  2. Click the enrollment URL — confirm in the browser → logged into kemia.
  3. Run /kemia connect again (no arguments) — completes setup, exports agent config.
  4. Shape the config in the kemia web UI (Persona, Role, Knowledge, Team).
  5. Create a snapshot → mark it "deploy ready".
  6. Run /import → restart OpenClaw.

API Reference

For full endpoint documentation see references/api.md.

Usage Guidance
This skill behaves like a normal connector: it will upload selected workspace .md files to the kemia service and store a kemia API key under ~/.openclaw/workspace/skills/kemia/config.json. Before connecting: (1) confirm you trust the kemia host (https://kemia.byte5.ai or your self-hosted URL), (2) inspect the listed files (SOUL.md, IDENTITY.md, USER.md, MEMORY.md, AGENTS.md, TOOLS.md, HEARTBEAT.md) for any secrets you don't want transmitted, (3) keep backups (the import script creates .kemia-backup), and (4) ensure jq and curl are installed. If you need higher assurance, review the included scripts (connect.sh, import.sh, kemia-link.sh, status.sh) line-by-line — they are the only code executed and contain the full behavior.
Capability Analysis
Type: OpenClaw Skill Name: kemia Version: 1.1.0 The 'kemia' skill bundle provides a legitimate integration for managing OpenClaw agent configurations via a web-based UI (kemia.byte5.ai). While the scripts perform high-privilege operations—such as uploading the agent's core markdown files in `connect.sh` and overwriting local workspace files in `import.sh`—these actions are the explicitly stated purpose of the tool and are transparently documented. The implementation demonstrates good security hygiene, including the use of SHA256 hashing for machine fingerprinting to protect the raw hostname, restrictive file permissions (chmod 600) for credentials, and automated backups of local files before performing imports.
Capability Tags
requires-oauth-tokenrequires-sensitive-credentials
Capability Assessment
Purpose & Capability
Name/description match the implementation: scripts perform enrollment, export/import of agent .md files, status checks, and one-time login link generation against a kemia API. Required actions (network to kemia, reading/writing workspace files, storing an API key) are expected for this functionality.
Instruction Scope
Scripts read/write files in the OpenClaw workspace (SOUL.md, IDENTITY.md, etc.), persist enrollment and config JSON under ~/.openclaw/workspace/skills/kemia, and POST local workspace files to the kemia API. This is expected for a config manager, but it means local workspace files (which may contain sensitive data) are uploaded to the remote kemia instance — the user should only connect to a trusted kemia deployment.
Install Mechanism
No external install downloads; the skill is instruction-only with bundled shell scripts. It requires jq and curl on the host (declared as prerequisites). No suspicious network installs or archive extraction observed.
Credentials
The skill does not require any unrelated credentials or environment variables. Optional env vars (OPENCLAW_WORKSPACE, OPENCLAW_INSTANCE_NAME, OPENCLAW_AGENT_NAME) are reasonable for configuration. The API key is obtained from kemia during enrollment and stored locally in ~/.openclaw/workspace/skills/kemia/config.json (scripts set file mode 600).
Persistence & Privilege
always:false and no attempts to modify other skills or system-wide configurations. The skill persists its own state and config under its skill directory and workspace and does not demand elevated privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install kemia
  3. After installation, invoke the skill by name or use /kemia
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
Machine fingerprint for Re-Auth + ack endpoint call after enrollment
v1.0.3
API URL updated to kemia.byte5.ai (kemia.ai redirect dropped auth headers on cross-host). Fixes /kemia connect failing with 401.
v1.0.2
test
v1.0.1
Initial public release — visual agent configuration management for OpenClaw
v1.0.0
Initial public release — visual agent configuration management for OpenClaw
Metadata
Slug kemia
Version 1.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 5
Frequently Asked Questions

What is Skill?

Connect your OpenClaw instance to kemia (https://kemia.byte5.ai) for visual agent configuration management. Use when: (1) connecting to a kemia deployment fo... It is an AI Agent Skill for Claude Code / OpenClaw, with 113 downloads so far.

How do I install Skill?

Run "/install kemia" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Skill free?

Yes, Skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Skill support?

Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Skill?

It is built and maintained by Christian Wendler (@cwendler); the current version is v1.1.0.

💬 Comments