An open Agent Skill for managing CasaOS / ZimaOS (Zima, IceWhale) appliances over SSH — without needing the web panel.
It is not tied to one agent tool: SKILL.md + frontmatter is the portable
Agent Skills format, so this skill works with pi, Claude Code, Codex CLI,
Cursor, OpenCode, GitHub Copilot, Gemini CLI, Amp, Droid, Cline, Windsurf,
Zed and any other compatible agent.
It exists because of one very common, very confusing failure: you create a container
with docker compose, it runs fine, and the CasaOS panel insists it is not started.
This skill explains exactly why, and fixes it without restarting anything.
- Getting SSH access — dedicated key,
~/.ssh/config, sudo policy, troubleshooting. Written so an agent can walk a user through it without ever handling a password. - The app registry — CasaOS v2 has no app database; everything is regenerated into
/etc/casaos/app-management.json. Learn to read it instead of guessing. - The
x-casaosfix — why the panel shows "not started", and the minimalx-casaos:block that repairs it. No restart, no sudo. - Platform quirks — the
/DATA/.dockerownership trap (wheredocker buildprints help instead of building), the read-only squashfs root, the/media/<disk>symlink into/DATA, which tools are actually available, and what needs root. - Recipes — add a panel-visible compose app, patch an env var safely (three legal YAML shapes, and the idempotency trap), back up an app, read a panel app's compose, find a port's owner, hand sudo work to the user.
- On the machine running the agent: any OpenSSH client. Nothing else.
- On the appliance: SSH reachable with key auth, and
bash+jq(both ship with stock ZimaOS). No Python, noxargs, no compiler needed.
Requires Node.js 22.20+ (skills CLI, the package manager for the open skills ecosystem):
npx skills add eachgo/casaos-ssh-skill # install into the current project
npx skills add eachgo/casaos-ssh-skill -g # or user-level, available everywhereIt detects which agents you have installed and offers them as targets, or pick explicitly:
npx skills add eachgo/casaos-ssh-skill --skill casaos-ssh -a pi -a claude-code -a codex -yThe repo root is the skill, so cloning it under the target directory is enough.
<name> below must stay casaos-ssh (agents match the folder name to the skill name).
Project-level first: .agents/skills/ is the shared project directory understood by
pi, Codex, Cursor, Copilot, OpenCode, Gemini CLI, Droid, Amp, Cline, Warp, Zed and more
— one clone covers all of them:
git clone https://github.com/eachgo/casaos-ssh-skill .agents/skills/casaos-sshUser-level, per tool:
# pi
git clone https://github.com/eachgo/casaos-ssh-skill ~/.pi/agent/skills/casaos-ssh
# Claude Code
git clone https://github.com/eachgo/casaos-ssh-skill ~/.claude/skills/casaos-ssh
# Codex CLI
git clone https://github.com/eachgo/casaos-ssh-skill ~/.codex/skills/casaos-ssh
# Cursor
git clone https://github.com/eachgo/casaos-ssh-skill ~/.cursor/skills/casaos-ssh
# GitHub Copilot
git clone https://github.com/eachgo/casaos-ssh-skill ~/.copilot/skills/casaos-ssh
# OpenCode
git clone https://github.com/eachgo/casaos-ssh-skill ~/.config/opencode/skills/casaos-ssh
# Gemini CLI
git clone https://github.com/eachgo/casaos-ssh-skill ~/.gemini/skills/casaos-ssh
# Droid (Factory)
git clone https://github.com/eachgo/casaos-ssh-skill ~/.factory/skills/casaos-sshStart a new session (or /reload in pi) and check the skill list, then try:
/skill:casaos-ssh # pi: force-load explicitly
In other agents just mention it: "use the casaos-ssh skill to list my CasaOS apps".
Once installed, just describe the task — "the panel says my container isn't running", "list my CasaOS apps and their real status", "add a compose app the panel will show".
The bundled scripts also work standalone, without any agent:
ssh <alias> 'bash -s' < scripts/apps.sh # every app + real status
ssh <alias> 'bash -s -- --json' < scripts/apps.sh
ssh <alias> 'bash -s -- <app>' < scripts/diag-app.sh # diagnose one app
bash scripts/ssh-bootstrap.sh --user <u> --host <h> # set up key authReleases are tagged with semantic versions (v1.0.0, v1.0.1, …); see
CHANGELOG.md. To install an exact version:
git clone --branch v1.0.0 --depth 1 https://github.com/eachgo/casaos-ssh-skill <target>/casaos-sshIf you installed with the skills CLI, npx skills check shows available updates
and npx skills update casaos-ssh applies them.
SKILL.md routing + the core workflow
references/
ssh-access.md key setup, config, sudo policy, troubleshooting
app-registry.md both app_type's, every field, x-casaos schema
platform-quirks.md tool availability, filesystems, Docker traps
recipes.md concrete tasks
scripts/
ssh-bootstrap.sh generate a dedicated key + print next steps
apps.sh list apps and real status (jq)
diag-app.sh diagnose one app
mdns-probe.py find the appliance on the LAN via mDNS
ZimaOS v1.5.0 (Buildroot, x86_64). The registry mechanism is the same on Debian-based
CasaOS installs; paths, tools and init system differ, so the skill tells the agent to
re-probe before trusting anything. If you run it on another version, the probe
commands at the top of references/platform-quirks.md are the place to start.
The agent ends up with a shell on your appliance. The skill instructs it to investigate
read-only first, back up before editing, print rollback commands, and ask before anything
destructive. Access is revocable at any time by removing the key from
~/.ssh/authorized_keys.
MIT