Problem
Hive previously had no native integration for interacting with Cloudflare infrastructure.
This created friction in common deployment, operations, and troubleshooting workflows, such as:
- Domains not resolving after deployment or misconfigured DNS records
- Lack of automated diagnosis for domain configuration issues
- Inability to automate cache purging during CI/CD
- Managing serverless infrastructure like Workers, Pages, D1, and R2 manually
- Lack of agentic oversight for Security/WAF and rate-limiting rules
Today, users must manually open the Cloudflare dashboard and inspect configurations themselves. Agents could not verify, explain, or alter these setups.
Why This Matters
This integration allows Hive agents to natively assist with comprehensive infrastructure workflows:
- Deployment & Hosting: Automating Vercel/Netlify DNS pairing, creating Pages deployments, and managing Serverless Workers.
- Troubleshooting: Automatically diagnosing DNS health, SSL/TLS handshake failures, and connection errors.
- Operations & Security: Fetching zone analytics, reviewing WAF/firewall blocks, and clearing cache.
- Storage & Databases: Managing D1 SQL databases, Vectorize indexes, and R2 buckets directly through agents.
Solution Implemented
We have implemented a massive 54-tool integration suite covering the entirety of the Cloudflare ecosystem. This transforms Hive agents into fully capable Cloudflare administrators.
Core Categories Implemented:
- DNS & Zone Management
cloudflare_list_zones, cloudflare_get_zone, cloudflare_check_domain_dns_health, cloudflare_create_dns_record, cloudflare_update_dns_record, cloudflare_delete_dns_record
- Infrastructure & Hosting
- Workers: List, generate routes, upload scripts, and manage secrets.
- Pages: List projects and manage deployments.
- Load Balancing: Pools, monitors, and balancers.
- Caching & SSL
- Purge cache (by URL, tags, or everything), alter cache settings, and verify SSL configurations.
- Security & WAF
- Create firewall rules, manage Access/Zero Trust policies, and retrieve security event analytics.
- Databases, Storage, & AI
- R2: Create/List object storage buckets.
- D1: Database management.
- Vectorize: Indexes for embeddings.
- Workers AI: List and run LLM inference directly on edge nodes.
- Analytics
- Fetch metrics for Zone traffic, Top Paths/Countries, Performance (TTFB), and HTTP Reports.
(A total of 54 endpoints are fully integrated and tested).
Key Feature: Actionable Diagnostics
The integration goes beyond raw API calls. Tools like cloudflare_check_domain_dns_health provide structured troubleshooting output that agents can use directly to explain issues to developers.
Example response:
{
"zone_found": true,
"zone_status": "active",
"root_records": [],
"www_records": [],
"issues": [
{
"code": "WWW_MISSING",
"message": "No www DNS record found. Traffic to www. will fail."
}
],
"summary": "Zone is active, but no www DNS record is configured."
}
Credentials
- Credential ID:
cloudflare
- Environment Variable:
CLOUDFLARE_API_TOKEN
- Credential Key:
api_token
Required Permissions
To utilize the full suite, the API token should be granted access to:
Zone:Read, DNS:Edit
Workers:Edit, Pages:Edit
Cache Purge:Edit
Firewall Services
Account Analytics
(Specific tools will check for appropriate permissions gracefully if scoped tokens are used).
Authentication
- API Token: Supported
- Aden OAuth: Not required
Health Check
- Endpoint:
GET /user/tokens/verify (or GET /zones)
- Base URL:
https://api.cloudflare.com/client/v4
- Expected behavior:
200: Token is valid.
401: Token is invalid or missing exact scope.
Implementation Notes
- Designed using the standard Cloudflare REST API v4.
- All 54 tools feature rigorous Mock/Unit Testing coverage (achieving
pytest success natively).
- Normalized responses into compact agent-friendly objects (such as preventing array lookup crashes).
- Returned structured error dicts instead of bubbling up raw network exceptions.
Relevance To Hive
This is a milestone integration for Hive because it elevates the framework from "giving advice" to automatically provisioning, troubleshooting, and repairing live, world-class infrastructure directly in deployment environments.
Problem
Hive previously had no native integration for interacting with Cloudflare infrastructure.
This created friction in common deployment, operations, and troubleshooting workflows, such as:
Today, users must manually open the Cloudflare dashboard and inspect configurations themselves. Agents could not verify, explain, or alter these setups.
Why This Matters
This integration allows Hive agents to natively assist with comprehensive infrastructure workflows:
Solution Implemented
We have implemented a massive 54-tool integration suite covering the entirety of the Cloudflare ecosystem. This transforms Hive agents into fully capable Cloudflare administrators.
Core Categories Implemented:
cloudflare_list_zones,cloudflare_get_zone,cloudflare_check_domain_dns_health,cloudflare_create_dns_record,cloudflare_update_dns_record,cloudflare_delete_dns_record(A total of 54 endpoints are fully integrated and tested).
Key Feature: Actionable Diagnostics
The integration goes beyond raw API calls. Tools like
cloudflare_check_domain_dns_healthprovide structured troubleshooting output that agents can use directly to explain issues to developers.Example response:
{ "zone_found": true, "zone_status": "active", "root_records": [], "www_records": [], "issues": [ { "code": "WWW_MISSING", "message": "No www DNS record found. Traffic to www. will fail." } ], "summary": "Zone is active, but no www DNS record is configured." }Credentials
cloudflareCLOUDFLARE_API_TOKENapi_tokenRequired Permissions
To utilize the full suite, the API token should be granted access to:
Zone:Read,DNS:EditWorkers:Edit,Pages:EditCache Purge:EditFirewall ServicesAccount Analytics(Specific tools will check for appropriate permissions gracefully if scoped tokens are used).
Authentication
Health Check
GET /user/tokens/verify(orGET /zones)https://api.cloudflare.com/client/v4200: Token is valid.401: Token is invalid or missing exact scope.Implementation Notes
pytestsuccess natively).Relevance To Hive
This is a milestone integration for Hive because it elevates the framework from "giving advice" to automatically provisioning, troubleshooting, and repairing live, world-class infrastructure directly in deployment environments.