tech/cloudflare/ai

Run LLM inference, unified proxying, and vector databases on Cloudflare Workers.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/2nth-ai/skills --skill tech-cloudflare-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tech/cloudflare/ai
Source: https://github.com/2nth-ai/skills/tree/main/tech/cloudflare/ai
Command: npx skills add https://github.com/2nth-ai/skills --skill tech-cloudflare-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires cloudflare workers, cloudflare ai gateway, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill Unit provides advanced AI services for edge inference, unified proxying, and vector databases, addressing the need for efficient and scalable AI solutions at the edge.

Core Features & Use Cases

  • Edge Inference: Perform LLM inference at the edge with zero cold starts, classifying intent or routing requests before calling Claude.
  • AI Gateway: Serve as a unified proxy for Claude, OpenAI, and Workers AI, enabling token metering, caching, and rate limiting.
  • Vector Database: Implement semantic search and RAG (Retrieval-Augmented Generation) for efficient knowledge retrieval and skill discovery.
  • Use Case: Imagine a scenario where you need to classify user queries at the edge, retrieve relevant context from a vast knowledge base, and generate responses using Claude. This Skill Unit provides the tools to do all of this seamlessly.

Quick Start

Use the tech/cloudflare/ai skill to classify user queries and retrieve relevant context for a response.

Frequently Asked Questions about tech/cloudflare/ai

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform edge inference and route user queries before calling Claude?

Edge inference performs LLM inference at the edge with zero cold starts to classify user intent or route requests before calling Claude. This allows you to efficiently process queries locally before executing heavier model calls.

Can I use Cloudflare AI Gateway as a unified proxy for OpenAI and Workers AI?

Yes, the AI Gateway serves as a unified proxy for Claude, OpenAI, and Workers AI. It enables token metering, caching, and rate limiting across these providers to manage your API usage efficiently.

How do I implement semantic search and RAG using a vector database at the edge?

You can implement semantic search and RAG by using the vector database capabilities provided. This allows efficient knowledge retrieval and skill discovery to supply relevant context when generating responses.

Do I need Cloudflare Workers to use AI Gateway for token metering and caching?

Yes, you need Cloudflare Workers and Cloudflare AI Gateway for full functionality. These dependencies are required to enable unified proxying, edge inference, and vector database features seamlessly.

What is the best way to classify user queries at the edge with zero cold starts?

The best way to classify queries with zero cold starts is leveraging edge inference through Cloudflare Workers. This approach performs local LLM inference to route requests and retrieve context before invoking Claude.