Cloudflare (Wrangler CLI) for Openclaw

A comprehensive toolset to manage Cloudflare Workers, KV namespaces, D1 databases, and R2 storage using the Wrangler CLI.

asleep123
v1.1.0
Jan 21, 2026
7
3.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install wrangler

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install wrangler using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Cloudflare (Wrangler CLI)?

This skill empowers developers to control their entire Cloudflare ecosystem directly through an AI agent interface. By leveraging the Wrangler CLI, it provides a seamless bridge for deploying Workers, managing D1 SQL databases, interacting with R2 object storage, and handling KV namespaces. Utilizing Openclaw Skills with this integration ensures high productivity by automating repetitive infrastructure tasks and providing a unified command structure for edge computing.

Beyond basic deployments, this skill facilitates the entire serverless lifecycle. It allows for environment-specific configurations, secret management, and real-time log tailing, making it an indispensable part of the Openclaw Skills library for modern web development. Whether you are building a small API or a global-scale application, this skill streamlines the process of managing Cloudflare services.

Cloudflare (Wrangler CLI) Use Cases

  • Deploying and rolling back Cloudflare Workers across different environments like production and staging.
  • Managing edge databases such as D1 and Key-Value (KV) stores for high-performance data access.
  • Handling secrets and environment variables securely without manual intervention in the dashboard.
  • Tailing live logs in real-time to debug serverless functions during execution.
  • Provisioning and managing R2 buckets for scalable, S3-compatible object storage.

How Cloudflare (Wrangler CLI) Works

  1. The agent identifies the project structure and locates the necessary configuration files like wrangler.toml or wrangler.json.
  2. It utilizes the Wrangler CLI to authenticate the user session with Cloudflare via OAuth.
  3. Based on user requests, the skill triggers specific CLI commands to provision resources, update code, or query databases.
  4. The skill captures the CLI output, including deployment URLs and operation statuses, and presents them within the Openclaw Skills environment.
  5. Changes are reflected instantly on the Cloudflare global edge network.

Cloudflare (Wrangler CLI) Setup

Prerequisites

Ensure Node.js v20+ is installed on your local environment. This is required for the Wrangler CLI to function correctly.

Installation

npm install -g wrangler

Authentication

# Log in to your Cloudflare account
wrangler login

# Verify your identity and account access
wrangler whoami

Cloudflare (Wrangler CLI) Data Schema & Taxonomy

The skill organizes infrastructure resources through a structured configuration file and binding system:

Component Configuration Key Description
Workers main Specifies the entry point for the serverless function.
KV Store [[kv_namespaces]] Maps code variables to specific Key-Value storage IDs.
D1 Database [[d1_databases]] Defines the connection between the Worker and a SQL database.
R2 Buckets [[r2_buckets]] Configures access to object storage buckets.
Secrets wrangler secret Securely stores sensitive data like API keys outside of code.

Cloudflare (Wrangler CLI) Advanced Features

  • Multi-environment support using the -e flag to distinguish between staging and production pipelines.
  • Bulk management capabilities for secrets and KV pairs using JSON file imports for faster migrations.
  • Local development mode using the --local flag to simulate D1, KV, and R2 behavior without hitting the cloud.
  • Integrated versioning and rollback system to quickly revert Workers to a previous stable state.
  • Native support for JSONC configuration files providing schema validation and autocomplete within Openclaw Skills workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*