page-serve

page-serve is a command for Claude Code, Cursor from yonatangross/orchestkit. It costs 111 tokens per session (1,421 once invoked), scanned A, original, MIT.

A local web-page serving tool that gives a file or directory a stable HTTPS address ending in .localhost. It can optionally take a screenshot and can stop the server when it is no longer needed.

In plain words
What is it for?
Use it to hand someone a locally generated HTML page, preview a directory with its assets, check its status, or capture a screenshot.
Why use it?
It avoids manually starting a server, finding a port, and remembering to shut it down. The stable address also gives a human a simple link to open the page.

Command for Claude CodeCursor

Written for Claude Code and Cursor: allowed-tools in frontmatter, but also a Cursor plugin manifest.

Part of the ork plugin — 107 skills, 36 commands, 36 agents, 32 hooks shipped together

Good fit Use it to hand someone a locally generated HTML page, preview a directory with its assets, check its status, or capture a screenshot.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/yonatangross/orchestkit/page-serve
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/yonatangross/orchestkit

Made for: Claude Code, Cursor.

Or install ork, the plugin that ships this one along with the rest of its 107 skills, 36 commands, 36 agents, 32 hooks.

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 page-serve

README.md
[![agentmods](https://agentmods.dev/badge/commands/yonatangross/orchestkit/page-serve/github.svg)](https://agentmods.dev/commands/yonatangross/orchestkit/page-serve)
Your own site
<a href="https://agentmods.dev/commands/yonatangross/orchestkit/page-serve"><img src="https://agentmods.dev/badge/commands/yonatangross/orchestkit/page-serve/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 page-serve

Your own site · 80×15
<a href="https://agentmods.dev/commands/yonatangross/orchestkit/page-serve"><img src="https://agentmods.dev/badge/commands/yonatangross/orchestkit/page-serve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,421 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00111 $0.01421
Opus 5 $0.00056 $0.00711
Sonnet 5 $0.00022 $0.00284
Haiku 4.5 $0.00011 $0.00142

Measured today against content hash 7a67cda1aa28, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

page-serve scanned grade A with 1 finding 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 today.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| `<path> [flags]` | `scripts/serve.sh` | prerequisites, server, alias, state, curl check, optional screenshot |
plugins/ork/.cursor-plugin/commands/page-serve.md · 102 lines

How it starts

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

Auto-generated from skills/page-serve/SKILL.md

Source: https://github.com/yonatangross/orchestkit

/ork:page-serve, give a human a URL

An agent that renders a page for a human needs a way to hand it over. The pattern that grew in sessions was python3 -m http.server 8991 plus portless alias <name> 8991 typed by hand: no record of the process, no stop, servers outliving the session, and one measured night (2026-09-06) where the same session did it twice and the server was still up the next morning. This skill is that pattern with a state file, a stop, a status, and a loud failure when the URL contract cannot be met.

The contract

  • The URL is https://<name>.localhost/<file>. No port, ever. portless's 443 service owns the port; a :1355 or :8991 in the URL is the pre-service fallback and the skill refuses rather than emit one.
  • One static server per name, on a free loopback port, rooted at the file's directory (so sibling assets resolve) or at the directory you pass.
  • State in .claude/state/page-serve/<name>.json: root, file, port, pid, url, time. status re-measures pid, route, and HTTP on every call; it never trusts the file.
  • Idempotent per name: same name + same root reuses the live server; a different root replaces it; --force on the alias overrides a stale route with the same name.

Usage

/ork:page-serve docs/playgrounds/roadmap-2026-09-07.html
/ork:page-serve docs/playgrounds/ --name playgrounds
/ork:page-serve <path> --screenshot          # agent-browser, returns the png path
/ork:page-serve status [--json]
/ork:page-serve stop <name>
/ork:page-serve stop --all

serve.sh prints url=, name=, port=, pid=, http=, optional screenshot=, and the exact stop= line to paste. Put the url= line in your reply's Open section.

Modes

Invocation Script What happens
<path> [flags] scripts/serve.sh prerequisites, server, alias, state, curl check, optional screenshot
status [--json] scripts/status.sh one line per served page: server up/dead, route registered/missing, HTTP code
stop <name> or stop --all scripts/stop.sh alias removed, server killed, state and screenshot deleted; every step reports

Read the full file on GitHub · 102 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. today First seen · 102 lines · 111 tokens per session scan A 7a67cda1aa28

Subscribe to this mod's changes

page-serve is a command published in the GitHub repository yonatangross/orchestkit (231 stars, last pushed today), licensed MIT. It adds 111 tokens to every session and 1,421 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-08.