viceroy

viceroy is a skill for Claude Code from fastly/fastly-agent-toolkit. It costs 132 tokens per session (643 once invoked), scanned A, original, MIT.

A local test server for Fastly Compute applications, which are WebAssembly programs that run at Fastly’s edge network. It uses Viceroy to run Rust and Component Model projects on your computer.

In plain words
What is it for?
Starting a local Fastly Compute server, configuring local backends, Dictionaries, and ConfigStores in fastly.toml, and running Rust unit tests with cargo-nextest.
Why use it?
It lets you develop and test these applications locally without deploying them to Fastly. It also provides local settings for backends and data stores.

Skill for Claude Code

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

Part of the fastly-agent-toolkit plugin — 10 skills shipped together

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 skills/fastly/fastly-agent-toolkit/viceroy
Any agent
npx skills add fastly/fastly-agent-toolkit --skill viceroy
Clone the repo
git clone --depth 1 https://github.com/fastly/fastly-agent-toolkit

Made for: Claude Code.

Or install fastly-agent-toolkit, the plugin that ships this one along with the rest of its 10 skills.

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 viceroy

README.md
[![agentmods](https://agentmods.dev/badge/skills/fastly/fastly-agent-toolkit/viceroy.svg)](https://agentmods.dev/skills/fastly/fastly-agent-toolkit/viceroy)
Your own site
<a href="https://agentmods.dev/skills/fastly/fastly-agent-toolkit/viceroy"><img src="https://agentmods.dev/badge/skills/fastly/fastly-agent-toolkit/viceroy.svg" alt="Measured on agentmods" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 643 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.1 $0.00132 $0.00643
Opus 5 $0.00066 $0.00321
Sonnet 5 $0.00026 $0.00129
Haiku 4.5 $0.00013 $0.00064

Measured 6d ago against content hash e4c0c988bbec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

viceroy 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 6d 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/viceroy/SKILL.md · 43 lines

How it starts

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

Viceroy — Local Fastly Compute Runtime

Viceroy is Fastly's official local testing environment for Compute applications. It emulates the Fastly Compute platform, allowing you to develop and test WASM services locally.

Viceroy documentation: https://github.com/fastly/Viceroy

Common Gotchas

  • Dictionaries and ConfigStores are both supported but configured differently in fastly.toml. Dictionaries go under [local_server.dictionaries] as inline key-value maps or JSON files. ConfigStores go under [local_server.config_stores].
  • fastly.toml must have a [local_server] section. Without it, Viceroy won't know about your backends, stores, or other local overrides. Every backend your app calls must be listed under [local_server.backends].
  • Default port is 7676, not 5000 (which is Fastlike's default). Access your app at http://127.0.0.1:7676.
  • Backends should point to local servers when developing locally. Avoid proxying to remote production origins to prevent accidentally leaking request data.

Quick Start

# Install Viceroy
cargo install --locked viceroy

# Build your Compute app
fastly compute build

# Start local server (default: 127.0.0.1:7676)
viceroy -C fastly.toml bin/main.wasm

# Or use the Fastly CLI wrapper
fastly compute serve

References

Topic File Use when...
Serve fastly-compute-serve.md Starting local dev server, profiling, advanced server options
Config fastly-compute-config.md Configuring fastly.toml backends, stores, geolocation, device detection, ACLs
Test fastly-compute-test.md Running Rust unit tests with cargo-nextest, writing tests for Compute services
Adapt fastly-compute-adapt.md Converting core WASM modules to Component Model, custom build pipelines

Read the full file on GitHub · 43 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 43 lines · 132 tokens per session scan A e4c0c988bbec

Subscribe to this mod's changes

viceroy is a skill published in the GitHub repository fastly/fastly-agent-toolkit (32 stars, last pushed 5d ago), licensed MIT. It adds 132 tokens to every session and 643 once invoked, about $0.0007 per session on Opus 5. 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-30.

Related

Other skills, from other repositories

azure-storage-blob-rust

Azure Blob Storage library for Rust. Upload, download, and manage blobs and containers. Triggers: "blob storage rust", "BlobClient rust", "upload blob rust", "download blob rust", "storage container rust", "BlobServiceClient rust".

microsoft/skills · 57 tokens

rust-learner

Learn Rust language features and crate updates. Use when user asks about Rust version changelog, what's new in Rust, crate updates, Cargo.toml dependencies, tokio/serde/axum features, or any Rust ecosystem questions.

actionbook/actionbook · 51 tokens

configuring-airflow-language-sdks

Configures Airflow to run language SDK tasks (Java, Go, and future native SDKs) — register a coordinator, map a queue to it, ensure the runtime/artifact on workers, and tune coordinator options. Use when the user wants Airflow to route a queue to a native-language coordinator, asks about the [sdk]…

astronomer/agents · 155 tokens

gcs-rust-download-object-api

Fix "DownloadObjectRequest not found" error in google-cloud-storage Rust crate. Use when: (1) Trying to download objects from GCS using the Rust SDK, (2) Looking for a download request type in http::objects::download module, (3) Compile error about missing type. The downloadobject method uses GetObjectRequest from the…

divinevideo/divine-mobile · 91 tokens

azure-storage-blob-rust

Client library for Azure Blob Storage — Microsoft's object storage solution for the cloud.

benjaminasterA/antigravity-awesome-skills · 0 tokens

loom-rust

Rust language expertise for idiomatic, production-quality code.

cosmix/loom · 15 tokens