layero-deployment

A deployment procedure for publishing static websites and single-page applications (SPAs) to Layero from a local project directory. It uses the Layero command-line tool and reads its JSON-lines output.

In plain words
What is it for?
For initializing a Layero project when needed and deploying or publishing a static site or SPA with the Layero CLI.
Why use it?
It explains how to deploy without first creating a Git repository, opening a dashboard, or installing the command-line tool globally.

Cursor rule

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.

agentmods
npx agentmods add rules/layeroinfra/layero-claude/layero-deployment
Clone the repo
git clone --depth 1 https://github.com/LayeroInfra/layero-claude
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,219 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01219
Opus 5 $0.00000 $0.00609
Sonnet 5 $0.00000 $0.00244
Haiku 4.5 $0.00000 $0.00122

Measured yesterday against content hash 7b549d9ccef8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

layero-deployment 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 yesterday.

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.

plugins/layero-cursor/rules/layero-deployment.mdc · 109 lines

How it starts

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

Layero Deployment

Layero is a deployment platform for static sites and SPAs with build servers and CDN located inside Russia. It ships a local directory — a git repository is not required.

Trigger this procedure when the user asks to deploy, publish or ship the project and mentions Layero.

Deploy

Run from the project root:

npx layero@latest deploy --json

--json switches the CLI to JSON-lines output — one JSON object per line on stdout. Parse the stream rather than scraping human-readable text.

If the directory has no .layero/project.json, run npx layero init first. It detects the framework, writes the config, and appends a rules block to AGENTS.md so later sessions follow the same procedure.

What not to do

  • Do not run git init or push to GitHub first. Git is optional here; the unit of deployment is a directory.
  • Do not run npm install -g layero. Global installs fail in sandboxed agent terminals. Use npx layero@latest, or npm install -D layero.
  • Do not open the dashboard to "finish setup". The CLI does everything inline; there has been no browser setup wizard since v0.5.0.
  • Do not pass --provider to layero login. The flag was removed in v0.5.x; the provider is chosen in the browser.
  • Do not assume a plain layero deploy is a safe preview. For a project created from the CLI it is not: direct uploads auto-promote, so every deploy replaces what visitors see at the project's public address — the same ready.url the previous deploy printed. --prod matters only for projects with a connected git repository, where it targets the production environment.
  • Do not offer --branch as a way to publish somewhere isolated. The flag is accepted and silently ignored for direct uploads — the backend files every archive deploy under the reserved cli environment. Isolated previews come from pushing to a branch of a connected repository, nothing else. If the user wants a version "just to look at", say that it needs a repository.

Read the full file on GitHub · 109 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. yesterday First seen · 109 lines · 0 tokens per session scan A 7b549d9ccef8

Subscribe to this mod's changes

layero-deployment is a cursor rule published in the GitHub repository LayeroInfra/layero-claude (0 stars, last pushed 26d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,219 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-08-31.