/zeabur:zeabur-server-sshfrom zeabur
SSH into a Zeabur dedicated server to run commands, inspect pods, check container logs, view k8s resources, and execute kubectl commands. Detects whether the server runs ZeaburOS (with k3s/kubectl) or plain Ubuntu.
Ships in zeabur. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Always use
npx zeabur@latestto invoke Zeabur CLI. Never usezeaburdirectly or any other installation method.
Run commands on a user's dedicated server, and use kubectl to debug Kubernetes workloads on servers that run ZeaburOS.
kubectl command below fails with
command not found. server exec still works for ordinary shell commands.Renting provisions Ubuntu only, so never assume kubectl exists.
Read the machine's kind from the CLI — do not SSH in to work it out:
npx zeabur@latest server get <server-id> -i=false --json | jq -r .os
ZeaburOS or Ubuntu. server list reports the same thing for every server at
once, as an OS column and an os field.
Needs CLI 0.21.0 or newer. If
oscomes backnull, the CLI is older — either letnpx zeabur@latestfetch the current version, or fall back to the API (see thezeabur-server-rentskill for the token setup that defines$ZAPI_CFG):curl -sS --max-time 30 -K "$ZAPI_CFG" https://api.zeabur.com/graphql \ -H "Content-Type: application/json" \ -d '{"query":"query($id: ObjectID!) { server(_id: $id) { hasK3s } }","variables":{"id":"<server-id>"}}'
hasK3sis three-state and the third state is a trap:trueis ZeaburOS,falseis Ubuntu only, andnullis a server predating the field — which does run ZeaburOS. So the test ishasK3s === false, never!hasK3s; the latter sweeps in every older server and wrongly reports it as a plain VPS.
If you did not check first and a kubectl command fails with command not found, that is the same signal — tell the user the server is a plain Ubuntu VPS
instead of retrying the command. Installing ZeaburOS is what adds kubectl; the
zeabur-server-rent skill covers how.
One exception. All of the above answers what kind of machine this is. If
the user asks specifically whether some binary is present, check the machine —
a ZeaburOS server always has kubectl, but a plain Ubuntu VPS may have had it
installed by its owner, and the OS field cannot tell you that.
server exec (recommended)Run a command on the server in one step. The CLI fetches the credentials and opens
the connection internally, so you never handle the password — passwords with
special characters just work, and no ssh2/sshpass is needed.
npx zeabur@latest server exec --id <server-id> -- <command>
Examples:
# Single command
npx zeabur@latest server exec --id <server-id> -- sudo kubectl get pods -A -o wide
# Compound command — quote it as ONE argument so && / | stay intact
npx zeabur@latest server exec --id <server-id> -- 'echo "=== PODS ===" && sudo kubectl get pods -A && echo "=== EVENTS ===" && sudo kubectl get events -A --sort-by=.lastTimestamp | tail -20'
Notes:
-- is the remote command, joined like ssh host <command>.
Quote a compound command (with && / | / redirects) as a single argument.… | tail hides an
upstream failure, so don't rely on the exit code across a pipe).npx zeabur@latest server list -i=false
(or use the zeabur-server-list skill).ZeaburOS servers only. On a plain Ubuntu VPS these all fail with
kubectl: command not found— see the section above.
Pass any of these as the command to server exec. Always use sudo kubectl —
the SSH user may not have direct access to the k3s kubeconfig. Any command with a
pipe (|) or && must be quoted as a single argument, or the local shell
splits it and runs part locally — e.g.
server exec --id <id> -- 'sudo kubectl top pods -A --sort-by=memory | head -20'.
| Task | Command |
|---|---|
| List all pods | sudo kubectl get pods -A -o wide |
| Problem pods only | sudo kubectl get pods -A --field-selector=status.phase!=Running,status.phase!=Succeeded |
| Pod logs | sudo kubectl logs <pod-name> -n <namespace> --tail=100 |
| Exec into container | sudo kubectl exec <pod-name> -n <namespace> -- <command> |
| Node resources | sudo kubectl top nodes |
| Pod resources | sudo kubectl top pods -A --sort-by=memory | head -20 |
| Describe pod | sudo kubectl describe pod <pod-name> -n <namespace> |
| Recent events | sudo kubectl get events -A --sort-by=.lastTimestamp | tail -30 |
| Restart deployment | sudo kubectl rollout restart deployment/<name> -n <namespace> |
server exec is unavailable)Use this only if server exec isn't available (e.g. an older CLI). Otherwise
prefer server exec above — this path is fragile with special-character passwords.
npx zeabur@latest server ssh-info --id <server-id> -i=false
Output is JSON: {"ip":"1.2.3.4","port":22,"username":"root","password":"xxx"}
Use the Node.js ssh2 method by default; use sshpass only when its availability
is already known. Do NOT run which sshpass to check — it wastes a step where it's
never installed.
# sshpass (only if already known to be available)
sshpass -p '<password>' ssh -o StrictHostKeyChecking=no -p <port> <username>@<ip> sudo kubectl get pods -A
# Node.js ssh2 (the Zeabur agent sandbox has it pre-installed)
NODE_PATH=$([ -d /root/.global/node_modules ] && echo /root/.global/node_modules || echo /home/vercel-sandbox/.global/node_modules) node -e "
const {Client} = require('ssh2');
const c = new Client();
c.on('ready', () => {
c.exec('<command>', (err, stream) => {
if (err) { console.error(err); process.exit(1); }
let out = '', errOut = '';
stream.on('data', d => out += d);
stream.stderr.on('data', d => errOut += d);
stream.on('close', code => {
if (out) console.log(out);
if (errOut) console.error(errOut);
c.end();
process.exit(code);
});
});
}).connect({host:'<ip>', port:<port>, username:'<username>', password:'<password>'});
"
&& in a single server exec
call to reduce round trips.-o wide: adds node name and IP to pod listings, useful for scheduling issues.-A (all namespaces) first to locate the right one, then scope with -n <namespace>.sudo kubectl exec <pod> -n <ns> -- cat /app/README.mdzeabur-server-list skill. For simpler container
commands that don't need server-level access, use the zeabur-service-exec skill.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub zeabur/agent-skills --plugin zeabur32 skills in this plugin
/zeabur-authUse when logging in, logging out, or checking Zeabur auth status. Use when user says "login", "log in", "登入", "logout", "log out", "登出", "auth status", "am I logged in", or "who am I"./zeabur-cluster-scaleUse when scaling a dedicated Kubernetes cluster (Linode LKE or AWS EKS) on Zeabur — listing node pools, changing node counts, or adding/removing node pools. Use when user says "scale my cluster", "add nodes", "remove nodes", "resize node pool", "加節點", "擴容", "縮容". Do NOT use for renting new servers (use zeabur-server-rent) or for single-VM dedicated servers (they have no node pools)./zeabur-databaseUse when deploying a database to Zeabur. Use when user needs MySQL, PostgreSQL, MongoDB, or Redis. Use when user says "I need a database", "add database", "deploy postgres", "set up MySQL", "add Redis", "add MongoDB", or "connect to database". Also use when user mentions data persistence issues like "data lost after restart", "data not saved", "data disappears", "need persistent storage for data", or "how to persist data". Also use when integrating a database with an existing service./zeabur-deployUse when deploying a local project or codebase to Zeabur. Use when the user says "deploy this", "deploy to Zeabur", "deploy from GitHub", "search my repos", or "find my repository". Default to direct deploy unless the user explicitly asks for Git-based deployment./zeabur-deployment-logsUse when viewing service runtime or build logs. Use when user says "show logs", "why did deploy fail", "check build output", or "debug runtime error"./zeabur-dockerfileUse when generating a Dockerfile for deploying a project to Zeabur. Use when the user needs help writing a Dockerfile for Node.js, Python, Go, Rust, PHP, Ruby, Java, .NET, or Elixir projects. Use when troubleshooting Dockerfile build failures on Zeabur.Other plugins' skills for the same job