/bento:sgtmfrom bento
Operates a self-hosted server-side Google Tag Manager (sGTM) deployed by bento: check health, read tag logs, open Preview, configure same-origin proxy (Cloudflare Worker or nginx) or direct mode, rotate proxy key, update Google's image, add BigQuery credentials, and troubleshoot 404s, Tag Assistant waiting, wrong visitor IP, and cookie issues.
Ships in bento. 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.
You operate the sgtm stack on a bento VPS: Google's gtm-cloud-image as a
tagging service (sgtm_sgtm_tagging) and a preview service
(sgtm_sgtm_preview). Day-2 work only: redeploys go through /bento:deploy.
The full reference — modes, proxy recipes, GTM wiring, troubleshooting — is
docs/reference/sgtm.md in the bento repo (on the VPS:
~/.local/share/bento/docs/reference/sgtm.md). When this skill and that doc
disagree, the doc wins.
Never print secrets.
SGTM_PROXY_KEY,SGTM_CONTAINER_CONFIGandSGTM_GCP_SA_JSON_B64stay on the VPS: use them inside commands, never echo them into the chat, a file you show, or a screenshot.
ssh "$user@$host" "jq -r '.envs.sgtm.SGTM_HOST' \$HOME/.config/bento/state.json"
ssh "$user@$host" "jq -r '.envs.sgtm.SGTM_PREVIEW_HOST' \$HOME/.config/bento/state.json"
ssh "$user@$host" "jq -r '.envs.sgtm.SGTM_DIRECT_MATCH // \"(proxy only)\"' \$HOME/.config/bento/state.json"
Know the mode before anything else:
https://<site>/<path> to
https://<SGTM_HOST> with X-Sgtm-Key and the visitor in Forwarded.
Without the key, Traefik answers 404.SGTM_DIRECT_MATCH is set): browsers call
https://<SGTM_HOST> themselves; the visitor IP is Traefik's
X-Forwarded-For.ssh "$user@$host" "docker service ls --filter name=sgtm_ --format '{{.Name}} {{.Replicas}}'" # both 1/1
curl -s "https://<SGTM_PREVIEW_HOST>/healthy" # ok
ssh "$user@$host" 'curl -s -H "X-Sgtm-Key: $(jq -r .envs.sgtm.SGTM_PROXY_KEY ~/.config/bento/state.json)" https://$(jq -r .envs.sgtm.SGTM_HOST ~/.config/bento/state.json)/healthy' # ok
curl -s -o /dev/null -w '%{http_code}\n' "https://<site>/<path>/g/collect?v=2" # 400 = proxy → sGTM works
Logs: docker service logs -f --tail 100 sgtm_sgtm_tagging (tag errors,
Listening on). Restarts: docker service ps --no-trunc sgtm_sgtm_tagging.
| Task | How |
|---|---|
| Wire GTM | Server container → Admin → Container Settings → Server container URLs = the site path (proxy) or https://<SGTM_HOST> (direct). Web container → Google tag → server_container_url = same URL. Server container needs a GA4 tag on a Custom "All events" trigger |
| Add the proxy | Cloudflare Worker or nginx recipe in the reference doc, section 2.3. The proxy must forward only /g/collect and /gtm/…, add X-Sgtm-Key, and set Forwarded: for="<ip>";host=<site>;proto=https (IPv6 in brackets) |
| Direct mode on | Set envs.sgtm.SGTM_DIRECT_MATCH to ``(Path(/g/collect) |
| Rotate the key | openssl rand -hex 32 → envs.sgtm.SGTM_PROXY_KEY → redeploy → update the proxy's secret. Warn the user: hits 404 between the two steps |
| Update the image | /bento:update, or docker service update --force --image gcr.io/cloud-tagging-10302018/gtm-cloud-image:stable on both services |
| BigQuery / Firestore | Service account key → base64 -w0 key.json → envs.sgtm.SGTM_GCP_SA_JSON_B64 → redeploy → delete the file |
| Webhooks from n8n & co. | POST to http://sgtm_sgtm_tagging:8080/<client path> on network_public (no key, no Traefik). Real user IP goes in the payload |
Publishing in GTM needs nothing on the VPS: the tagging server polls for the published version.
SGTM_PROXY_KEY (inside a command, not by printing both).10.x): in proxy mode the proxy isn't
sending Forwarded; in direct mode something sits in front of Traefik
(Cloudflare orange cloud). Check in the server container's Tag Assistant →
request headers and event data ip_override.sgtm)./healthy and site-path checks.Upstream: Manual setup guide, sGTM APIs.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub felipefontoura/bento --plugin bento14 skills in this plugin
/authRegister an AI-provider API key on a VPS running bento, via SSH, and propagate it to every BENTO_MANAGED stack. Drives bento-auth (Anthropic, OpenAI, OpenRouter, z.ai, Gemini, and any OpenAI-compatible endpoint). Use when the user says "add my OpenAI key", "register an Anthropic key", "set up provider auth on my bento server". NOTE: subscriptions (Claude Pro/Max, ChatGPT Plus) are OUT OF SCOPE — those use each app's native sign-in./chatwootOperate the Chatwoot customer support platform via HTTP API on an already-deployed bento VPS — reply to a customer, send a support message, create a new conversation, list open conversations, assign a conversation to an agent, resolve or reopen a ticket, create or search a contact, list help desk inboxes, add a private note, filter conversations by status/inbox/team/label. Use when the user says "reply to a customer", "send a message to a contact", "create a support ticket", "list open chats", "assign this conversation", "resolve a ticket", "create a contact in chatwoot", "set up a help desk inbox", "check unassigned conversations", "list my inboxes", "add a note to a conversation", "search for a contact", "get chatwoot conversations", or any other day-2 support desk operation. Deploying Chatwoot itself is `/bento:deploy`./deployAdd or redeploy application stacks on a VPS that ALREADY runs bento, via SSH. Drives bento's unattended Step 3 (BENTO_APPS) for the chosen apps, reconciles state against Portainer, verifies each app, and reports URLs + bootstrap artifacts. Use when the user says "add n8n to my server", "deploy chatwoot on my bento box", "install another app". For a brand-new server use the install skill instead./evolution-apiOperate the Evolution API (WhatsApp gateway) on a bento VPS — create WhatsApp instances, get the QR code to connect a phone, check connection state, send WhatsApp messages (text and media), configure webhooks, list or delete instances, and manage the full lifecycle of a WhatsApp bot or integration. Use when the user says "send a WhatsApp message", "connect my WhatsApp", "get the QR code", "set up a WhatsApp bot", "configure a WhatsApp webhook", "create a WhatsApp instance", "disconnect WhatsApp", "check WhatsApp status", "link my phone number to the API", "scan the QR", "set up WhatsApp automation", or anything about getting WhatsApp to work on their server. Day-2 operation of the running app's HTTP API. Deploying the stack is `/bento:deploy`./hermesOperate the Hermes agent gateway on a bento VPS — chat with the agent over its OpenAI-compatible API, run the CLI (sessions, tools, config), and wire MCP servers so the agent gains new tools. Use when the user says "talk to my hermes agent", "call my agent from a script/bot", "add an MCP server to hermes", "give my agent the youtube/search tools", "list hermes sessions", "change the hermes model", or otherwise wants to drive a running hermes stack. Two surfaces: the HTTP API (:8642, Bearer) and the CLI (`docker exec ... hermes`). Deploying hermes itself is the deploy skill./installDrive an end-to-end bento install on a FRESH Ubuntu/Debian VPS via SSH — pre-flight checks, unattended one-liner, post-hardening reboot, infra + app deploys, recovery from the failure modes that historically required manual operator intervention, and a final report with URLs + invite links. Use for a brand-new server. For adding apps to a server that already runs bento, use the deploy skill instead.Other plugins' skills for the same job