Loading...
Loading...
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.
npx skill4agent add fastly/fastly-agent-toolkit viceroyfastly.toml[local_server.dictionaries][local_server.config_stores]fastly.toml[local_server][local_server.backends]http://127.0.0.1:7676# 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| 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 |