fastly-cli

A command-line tool for managing Fastly, a service that delivers websites and runs code near users at the network edge. It covers CDN services, edge applications, domains, caching, security, logging, and related settings.

In plain words
What is it for?
Use it to create and configure Fastly services, deploy Fastly Compute applications, manage domains and backends, purge cached content, configure logs and security, and inspect statistics or alerts.
Why use it?
It avoids memorising Fastly’s command structure and helps you perform platform tasks from a terminal or automation script.

Skill for Claude CodeCodex

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

Made for: Claude Code, Codex.

Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,201 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00156 $0.03201
Opus 5 $0.00078 $0.01600
Sonnet 5 $0.00031 $0.00640
Haiku 4.5 $0.00016 $0.00320

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

Security

Grade A, and why

fastly-cli 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 2d 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.

Makes network callslowCapability

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

curl -sI -H "Host: DESIRED_HOST" https://ORIGIN_ADDRESS/
skills/fastly-cli/SKILL.md · 241 lines

How it starts

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

Trigger and scope

CRITICAL: many subcommands have unintuitive paths (e.g. fastly domain create fails with 403, correct is fastly service domain create; logging is under fastly service logging; alerts under fastly service alert; rate limits under fastly service rate-limit).

Covers: services, backends, domains, VCL snippets, cache purging, Compute/WASM deploys, log streaming (S3/Datadog/Splunk/Kafka/25+ providers), NGWAF/WAF, TLS/mTLS, KV/config/secret stores, stats, alerts, rate limiting, ACLs, and auth tokens.

Fastly CLI Overview

References

Topic File Use when...
Authentication auth.md Login, stored tokens, service auth, CI/CD auth setup
Compute compute.md Building/deploying edge applications, local dev server
Services services.md Service CRUD, backends, domains, ACLs, dictionaries, VCL, purging, rate limiting
Logging logging.md Log streaming to S3, GCS, Datadog, Splunk, Kafka, 25+ providers
NGWAF ngwaf.md Next-Gen WAF workspaces, IP/country lists, rules, signals, thresholds, alerts
Notifications notifications.md Slack/PagerDuty/webhook integrations, audit log event mappings
Stats stats.md Which fastly stats subcommand takes which flag, and where the two flag sets diverge
Stores stores.md KV Stores, Config Stores, Secret Stores, resource links
TLS tls.md Platform TLS, Let's Encrypt subscriptions, custom certs, mutual TLS

Read the full file on GitHub · 241 lines

Files

What ships with it

10 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. 2d ago First seen · 241 lines · 156 tokens per session scan A 7bdf2f9d3022

Subscribe to this mod's changes

fastly-cli is a skill published in the GitHub repository fastly/fastly-agent-toolkit (32 stars, last pushed 7d ago), licensed MIT. It adds 156 tokens to every session and 3,201 once invoked, about $0.0008 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-08-30.

Related

Other skills, from other repositories

shipping-and-launch

Prepares production launches. Use when preparing to deploy to production. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.

addyosmani/agent-skills · 45 tokens

agent-platform-deploy

Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up resources by undeploying models and deleting endpoints. Use when asked to actively deploy a model, list the Model Garden CATALOG of available models, check if a…

google/skills · 193 tokens

agent-platform-alert-configuration

Configures best-practice alerting policies for AI agents using OpenTelemetry (OTel) metrics, generating output as Terraform (.tf) configuration files. Use when analyzing, writing, or deploying alerting policies to monitor agent latency, error rates, token usage, and quality metrics. Don't use for standard…

google/skills · 143 tokens

application-design-center-design-deploy

Processes GCP infrastructure design and deployment workflows within Application Design Center (ADC). Use when: - Designing GCP infrastructure with Terraform. - Validating local HCL. - Performing best-practice plan scans. - Importing templates to Application Design Center (ADC). - Deploying templates. - Troubleshooting…

google/skills · 94 tokens

cloud-logging-cross-project-configuration

Configure and troubleshoot Google Cloud cross-project centralized logging and read-time aggregation. Use when: - Setting up log routing from multiple projects/folders/organizations to a central log bucket. - Creating cross-project log sinks and configuring central log buckets. - Troubleshooting cross-project routing.…

google/skills · 70 tokens

cloud-run-basics

Manages Cloud Run services, jobs, and worker pools. Use when you need to deploy applications responding to HTTP requests (services), run event-triggered or scheduled tasks (jobs), or handle always-on pull-based background processing (worker pools).

google/skills · 53 tokens