/toolkit:authfrom toolkit
Use when setting up or verifying Zeabur API access for Toolkit skills. Use when ZEABUR_API_KEY is missing, when any Zeabur GraphQL call returns an authentication error, or when the user asks "how do I log in to Zeabur", "set up my Zeabur token", or "am I authenticated". Prefer this over the CLI-based zeabur-* skills for server operations — this one talks to the GraphQL API directly and needs no CLI.
Ships in toolkit. 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.
All Toolkit skills call the Zeabur GraphQL API at https://api.zeabur.com/graphql with curl. There is no CLI. Authentication is a personal Access Token passed as a Bearer token.
If ZEABUR_API_KEY is not set, walk the user through this — the token is created in the browser, not by you:
toolkit), pick an expiration (30 days by default), and create it.export in the chat only lives in that one shell, and pasting the token into the conversation leaves it in the transcript):mkdir -p ~/.config/zeabur
touch ~/.config/zeabur/toolkit-token && chmod 600 ~/.config/zeabur/toolkit-token
# then have the user paste the token into that file themselves (e.g. open it in an editor),
# or set it in their shell profile instead:
export ZEABUR_API_KEY="<token>"
Never write the token into any file that could be committed, and avoid having the user paste it into the chat — the transcript keeps it.
If neither the env var nor the token file exists but the Zeabur CLI is logged in on this machine (~/.config/zeabur/cli.yaml), you may offer to reuse that token — but say so before using it, never silently, and suggest saving it into the token file so future sessions are set.
Tokens currently have full account access (fine-grained scopes are coming). Treat it like a password: never print it, never log it, never send it to any host other than
api.zeabur.com— and never copy it onto a rented server.
Every Toolkit skill uses this pattern. The token goes into a chmod 600 curl config passed with -K, never as a -H argument on the command line (command-line arguments are visible in the process list):
TOKEN="${ZEABUR_API_KEY:-$([ -f ~/.config/zeabur/toolkit-token ] && cat ~/.config/zeabur/toolkit-token)}"
[ -n "$TOKEN" ] || { echo "No Zeabur token — set ZEABUR_API_KEY or create ~/.config/zeabur/toolkit-token (see the auth skill)" >&2; exit 1; }
ZAPI_CFG=$(mktemp)
chmod 600 "$ZAPI_CFG"
trap 'rm -f "$ZAPI_CFG"' EXIT
printf 'header = "Authorization: Bearer %s"\n' "$TOKEN" > "$ZAPI_CFG"
zapi() {
curl -sS -K "$ZAPI_CFG" -H "Content-Type: application/json" \
--data-binary "$1" https://api.zeabur.com/graphql
}
Always check the response for GraphQL errors before using data. When a response passes through a shell variable, print it with printf '%s\n', never echo — under sh/zsh, echo expands the \n escapes inside JSON strings (multi-line fields like resolvedDockerfile, failureSummary, or server events messages) into raw newlines, corrupting the JSON so jq fails with an "unescaped control character" error that looks like an API bug:
RESP=$(zapi '{"query":"{ me { username email } }"}')
printf '%s\n' "$RESP" | jq -e '.errors' >/dev/null && { printf '%s\n' "$RESP" | jq '.errors[].message' >&2; exit 1; }
printf '%s\n' "$RESP" | jq '.data.me'
The call above doubles as the verification: if it returns the user's username, the token works. If it returns an authentication error, the token is missing, expired, or revoked — create a new one via the steps above.
Toolkit operations default to the user's personal workspace. Mutations and queries that support team resources take an optional ownerID argument (the team ID) — pass it only when the user explicitly wants to operate on a team's resources.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub zeabur/toolkit-skills --plugin toolkit11 skills in this plugin
/build-imageUse when turning a Git repository into a container image with Zeabur CI/CD — a one-off build or a reusable branch source. Use when the user says "build my repo into an image", "deploy my own code" (build first, then deploy), or "rebuild that branch". Works with public repos and private ones (HTTPS token or SSH deploy key), on any Git host — not just GitHub. Talks to the GraphQL API directly; no CLI needed./deployUse when deploying anything onto a Zeabur-rented server — a public image like nginx, a website, an app. This skill picks the path; read it before installing anything on the machine. Use when the user says "run nginx on my server", "host my site on the VPS", or "deploy X" after renting./kubernetes-networkOther plugins' skills for the same job