# Bunny

Integrate Bunny.net services (CDN, Storage, Stream, DNS, Edge Scripting, Shield, Magic...

- Repository: https://github.com/mrgoonie/claudekit-skills (2229 stars)
- Category: Data and ML
- License: see repository
- Last updated: 2026-04-03
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add mrgoonie/claudekit-skills --skill bunny -g -a claude-code -y`
Codex: `npx skills add mrgoonie/claudekit-skills --skill bunny -g -a codex -y`
Cursor: `npx skills add mrgoonie/claudekit-skills --skill bunny -g -a cursor -y`
Gemini CLI: `npx skills add mrgoonie/claudekit-skills --skill bunny -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add mrgoonie/claudekit-skills`

## Description

Integrate Bunny.net services (CDN, Storage, Stream, DNS, Edge Scripting, Shield, Magic Containers, Optimizer, Database). Use when building with Bunny.net APIs, deploying to Bunny CDN, uploading files to Edge Storage, managing video streaming, configuring DNS zones, writing edge scripts, setting up WAF/DDoS protection, deploying containers, or optimizing images. Triggers on "bunny", "bunnycdn", "b-cdn", "pull zone", "edge storage", "bunny stream".

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Bunny.net Integration

Integrate with Bunny.net's cloud platform: CDN, Storage, Stream, DNS, Edge Scripting, Shield (WAF/DDoS), Magic Containers, Optimizer, and Database.

**Scope:** This skill handles Bunny.net API integration, configuration, and deployment. Does NOT handle other CDN providers (Cloudflare, Fastly, AWS CloudFront).

## Authentication

Three credential types, each API uses its own key via `AccessKey` header:

| Credential | Used For | Where to Find |
|-----------|----------|---------------|
| Account API Key | Core API (Pull Zones, DNS, Statistics) | Dashboard → Account Settings |
| Storage Zone Password | Edge Storage API | Dashboard → Storage Zone → FTP & API Access |
| Stream Library API Key | Stream API | Dashboard → Stream → API |

```bash
# All APIs use the same header format
curl -H "AccessKey: YOUR_KEY" -H "Content-Type: application/json" https://api.bunny.net/...
```

## API Base URLs

| Service | Base URL |
|---------|----------|
| Core (CDN, DNS, Zones) | `https://api.bunny.net` |
| Edge Storage | `https://{region}.bunnycdn.com` |
| Stream | `https://video.bunnycdn.com` |
| Shield | `https://api.bunny.net` (via Core) |
| Edge Scripting | `https://api.bunny.net` (via Core) |

Storage regions: `storage` (Falkenstein), `uk`, `ny`, `la`, `sg`, `se`, `br`, `jh`, `syd`

## Quick Reference, Common Workflows

### 1. CDN Pull Zone Setup

```bash
# Create pull zone
curl -X POST https://api.bunny.net/pullzone \
  -H "AccessKey: $BUNNY_API_KEY" -H "Content-Type: application/json" \
  -d '{"Name":"my-cdn","OriginUrl":"https://origin.example.com"}'

# Add custom hostname
curl -X POST https://api.bunny.net/pullzone/{id}/addHostname \
  -H "AccessKey: $BUNNY_API_KEY" -H "Content-Type: application/json" \
  -d '{"Hostname":"cdn.example.com"}'

# Purge cache
curl -X POST https://api.bunny.net/pullzone/{id}/purgeCache \
  -H "AccessKey: $BUNNY_API_KEY"

The rest: https://github.com/mrgoonie/claudekit-skills/blob/HEAD/.claude/skills/bunny/SKILL.md
