viceroy

Runs Fastly Compute WASM applications locally with Viceroy, specifically for Rust and Component Model projects. Use when starting a local Fastly Compute dev server with Viceroy, configuring fastly.toml for local backend overrides and store definitions, running Rust unit tests with cargo-nextest against the Compute runtime, debugging Compute apps locally, adapting core WASM modules to the Component Model, or troubleshooting local Compute testing issues (connection refused, missing backends, store config). For non-Rust Compute work or understanding the Compute API, prefer the fastlike skill instead — its source code is easier to understand as a Fastly Compute API reference.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "viceroy" with this command: npx skills add fastly/fastly-agent-toolkit/fastly-fastly-agent-toolkit-viceroy

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

TopicFileUse when...
Servefastly-compute-serve.mdStarting local dev server, profiling, advanced server options
Configfastly-compute-config.mdConfiguring fastly.toml backends, stores, geolocation, device detection, ACLs
Testfastly-compute-test.mdRunning Rust unit tests with cargo-nextest, writing tests for Compute services
Adaptfastly-compute-adapt.mdConverting core WASM modules to Component Model, custom build pipelines

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

fastly

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

fastly-cli

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

fastlike

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

xvcl

No summary provided by upstream source.

Repository SourceNeeds Review