Source: This skill is from the CatchClaw skill repository.
An agentar is a distributable agent archive (ZIP) containing workspace files such as SOUL.md, skills, and other configuration. It can be installed as a new agent or used to overwrite an existing agent with a single command.
Important: Before performing any action, verify the bundled CLI works (see CLI Setup). Do not run search, install, export, or rollback until verification passes.
**Before running any search, install, export, or rollback command, you MUST verify the bundled CLI.** The CLI (`agentar_cli.mjs`) is bundled in this skill's directory — no download or copy is needed.
~/.agents/skills/catchclaw/agentar_cli.mjs).node <skill-dir>/agentar_cli.mjs version. Only after it succeeds, proceed with search/install/export/rollback.Never run $CLI search, $CLI install, $CLI export, or $CLI rollback until verification passes.
The CLI is bundled in this skill's directory. Run it directly:
bash
node <skill-dir>/agentar_cli.mjs <command>
Where <skill-dir> is the directory containing this SKILL.md (e.g. ~/.agents/skills/catchclaw/).
All commands below use $CLI as shorthand for node <skill-dir>/agentar_cli.mjs.
These are listed in metadata.openclaw.requires.env for registry/security analysis. Neither is required for normal use; omit both to use defaults.
AGENTAR_API_BASE_URL — Override the default API base URL (defaults to https://catchclaw.me)AGENTAR_HOME — Override the default CLI config directory (defaults to ~/.agentar)Aligned with metadata.openclaw.requires.config and metadata.json in this skill:
PathAccessPurpose~/.agentar/read/writeCLI config ( config.json), optional standalone install copy of agentar_cli.mjs``~/.openclaw/workspaceread/writeMain agent workspace ( install --overwrite, export)~/.openclaw/agentar-workspaces/read/writePer-agent workspaces ( install --name …)~/agentar-exports/writeDefault directory for export ZIP output<skill-dir>/skills/.credentialswrite (optional)Written when install is run with --api-key
bash
$CLI search <keyword>
Search the CatchClaw marketplace for agentars matching the keyword.
bash
$CLI install <slug> --name <name> [--api-key <key>]
$CLI install <slug> --overwrite
Install an agentar from the marketplace.
Options:
--name <name> — Create a new agent with the given name. Existing agents are not affected. (Preferred; list this option first when prompting.)--overwrite — Overwrite the main agent ( ~/.openclaw/workspace). Existing workspace is backed up automatically. Never use without the user's explicit selection.--api-key <key> — (Optional) API key to save into skills/.credentials for agentars that require backend authentication.bash
$CLI export [--agent <id>] [-o <path>] [--include-memory]
Export an agent as a distributable agentar ZIP package. MEMORY.md is excluded by default. Output defaults to ~/agentar-exports/. Sensitive files ( .credentials, .env, .secret, .key, .pem) are automatically filtered out.
Options:
--agent <id> — Agent ID to export. If the user did not specify an agent, you MUST list agents and ask the user to choose before running export; do not export without the user's selection.-o, --output <path> — Output ZIP file path.--include-memory — Include MEMORY.md in export (excluded by default).bash
$CLI rollback
$CLI rollback --latest
Restore a workspace from backup. Without --latest, lists all available backups for selection. The current workspace is automatically backed up before restoring, so rollback is always safe.
bash
$CLI version
Show the CLI version.
Before executing `install`: 1. **Slug required:** If the user wants to install an agentar but has not specified which one (no slug), prompt the user to enter the agentar name/slug to install. Do NOT run install without a slug. 2. **Mode confirmation (CRITICAL - MUST ASK USER):** You MUST explicitly ask the user to choose the installation mode. Do NOT proceed with installation until the user has made a clear choice. **NEVER assume or default to any mode without user confirmation.**
Present the following two options to the user and wait for their response:
Important:
After the user explicitly selects "new", execute: $CLI install <slug> --name <user-specified name>
After the user explicitly selects "overwrite", execute: $CLI install <slug> --overwrite
Never execute install without both: (1) a slug, and (2) explicit user confirmation of installation mode.
**When the user has not specified which agent to export, you MUST let the user choose first. Do NOT export on your own.** If `--agent ` was not provided by the user: 1. Run `$CLI export` without `--agent` to list available agents (or equivalent to show choices). 2. Present the list to the user and ask which agent to export. 3. Only after the user explicitly selects an agent, run `$CLI export --agent ` (and optional `-o`, `--include-memory` as needed). Never assume or pick an agent for the user.
--include-memory..credentials, .env, .secret, .key, .pem).ErrorActionCLI file not foundVerify the skill is installed correctly — agentar_cli.mjs should be in the skill directoryAPI unreachable or network errorSuggest checking network connectivity, or override the API URL with: export AGENTAR_API_BASE_URL=<url>Node.js not installedInstruct user to install Node.js from https://nodejs.org/Download or extraction failureShow the error message and suggest retrying the command
$CLI search <keyword> to find agentars. Each result includes a slug identifier.$CLI export (no --agent) to list agents, present the list to the user, and ask them to choose. Only after the user selects an agent, run $CLI export --agent <id>. Do not export without the user's explicit selection.$CLI rollback to list available backups and restore one.