preview-gateway

preview-gateway is a command for Claude Code from gotempsh/temps. It costs 0 tokens per session (905 once invoked), scanned A, original, Apache-2.0.

A command-line tool for managing the container that serves workspace preview URLs. A container is an isolated package used to run an application and its dependencies.

In plain words
What is it for?
Use it to view gateway status and settings, read recent logs, configure the gateway, restart it, or replace its container image.
Why use it?
It gives you one place to check preview health, inspect logs, change settings, restart the service, or upgrade its image. This helps diagnose or maintain unavailable workspace previews.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the temps plugin — 11 skills, 103 commands shipped together

Good fit Use it to view gateway status and settings, read recent logs, configure the gateway, restart it, or replace its container image.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/gotempsh/temps/preview-gateway
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/gotempsh/temps

Made for: Claude Code.

Or install temps, the plugin that ships this one along with the rest of its 11 skills, 103 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for preview-gateway

README.md
[![agentmods](https://agentmods.dev/badge/commands/gotempsh/temps/preview-gateway/github.svg)](https://agentmods.dev/commands/gotempsh/temps/preview-gateway)
Your own site
<a href="https://agentmods.dev/commands/gotempsh/temps/preview-gateway"><img src="https://agentmods.dev/badge/commands/gotempsh/temps/preview-gateway/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for preview-gateway

Your own site · 80×15
<a href="https://agentmods.dev/commands/gotempsh/temps/preview-gateway"><img src="https://agentmods.dev/badge/commands/gotempsh/temps/preview-gateway.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 905 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00905
Opus 5.5 $0.00000 $0.00362
Sonnet 5.5 $0.00000 $0.00181
Haiku 4.5 $0.00000 $0.00090

Measured 3d ago against content hash f8dc7d8710c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

preview-gateway scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/temps/references/commands/preview-gateway.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

preview-gateway command reference

Apply the CLI runtime and safety contract before executing a command. Runtime --help is authoritative.

preview-gateway (alias: pgw)

Manage the preview gateway that serves workspace preview URLs (status, settings, logs, restart, upgrade)

Subcommands:

  • status - Show the gateway container's health, image and last setup error
  • settings (show) - Show the gateway settings: enabled, image, host port, auto-upgrade, container name, and their defaults
  • configure (set) - Change gateway settings; only the flags you pass are changed
  • logs - Print the latest gateway container log lines
  • restart - Restart the gateway container (previews are briefly unavailable)
  • upgrade - Pull an image and recreate the gateway with it (previews are briefly unavailable)

preview-gateway status

Show the gateway container's health, image and last setup error

Options:

Flag Description Default Required
--json Output in JSON format - No

preview-gateway settings (alias: show)

Show the gateway settings: enabled, image, host port, auto-upgrade, container name, and their defaults

Options:

Flag Description Default Required
--json Output in JSON format - No

preview-gateway configure (alias: set)

Change gateway settings; only the flags you pass are changed

Options:

Flag Description Default Required
--enable Run the gateway (creates its containers) - No
--disable Stop running the gateway (removes its containers; preview URLs stop being served) - No
--image <ref> Gateway image to run, ideally an immutable @sha256 reference - No
--reset-image Go back to the image pinned in this Temps build - No
--host-port <port> Host port the ingress relay's :8080 is published on - No
--auto-upgrade Apply the pinned image on every Temps startup (default) - No
--no-auto-upgrade Leave the running image alone on startup; upgrade by hand - No
--container-name <name> Docker container name; change only when several Temps instances share one Docker daemon - No
--reset-container-name Go back to the default container name - No
-y, --yes Do not ask before a change that interrupts previews (--disable, a new container name) - No
--json Print the saved settings as JSON - No

Read the full file on GitHub · 92 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 92 lines · 0 tokens per session scan A f8dc7d8710c8

Subscribe to this mod's changes

preview-gateway is a command published in the GitHub repository gotempsh/temps (951 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 905 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.

Related

preview-gateway compared with commands from other repositories

preview-gateway next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
preview-gatewaygotempsh/tempsCommand951todayApache-2.0A0Claude Code
secrets-auditCooperUncouple/r03-anthropics-skills-devopsCommand527mo agononeA0Claude Code
cost-optimizeChipSpiderWarm/r15-shanraisshan-claude-code-best-practice-devopsCommand487mo agononeA0Claude Code
incident-runbookmixedkindweave/r05-jqueryscript-awesome-claude-code-devopsCommand427mo agononeA0Claude Code
cost-optimizecentiofficermultiply/r17-behisecc-awesome-claude-skills-devopsCommand437mo agononeA0Claude Code
sparc-devopsshyftlabs/continuumCommand863d agoApache-2.0A26Claude Code
sdlc-deploysaitarrun/Sdlc-ai-workflowCommand82mo agononeA30Claude Code