Communitygithub.com

aiagentwithdhruv/skills

在本地运行 Claude 编排器并通过 Cloudflare 隧道实现外部访问。当用户要求本地运行、启动本地服务器或本地测试 webhook 时使用。

skills 是什么?

该技能提供了一种在本地执行 Claude 编排器的方法,同时利用 Cloudflare 隧道实现外部 webhook 访问。它启动一个运行 FastAPI 的 Python 服务器,默认监听端口 8000,并暴露与 Modal 部署相同的端点(如 `/directive`、`/list-webhooks` 和 `/general-agent`)。与 Modal 部署相比,本地运行的主要优势包括更快的迭代速度、对本地文件和凭证的完全访问以及通过 print 语句进行实时调试。该技能使用本地的 `.env` 文件(而非 Modal 使用的 secrets),并支持通过 `cloudflared` 隧道轻松暴露本地服务器。对于开发测试,它还可以与 `add-webhook` 等技能组合使用。支持自定义端口,且完全免费运行。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/aiagentwithdhruv/skills/tree/HEAD/local-server

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

本地服务器执行

目标

在本地运行 Claude 编排器,并通过 Cloudflare 隧道提供外部 webhook 访问。

启动服务器

python3 execution/local_server.py

启动 FastAPI 服务器,监听端口 8000。

Cloudflare 隧道

如需外部访问(webhook),请使用 Cloudflare 隧道:

cloudflared tunnel --url http://localhost:8000

端点

与 Modal 部署相同:

  • /directive?slug={slug} - 执行指令
  • /list-webhooks - 列出 webhook
  • /general-agent - 通用代理任务

开发用途

  • 比 Modal 部署迭代更快
  • 完全访问本地文件和凭证
  • 通过 print 语句进行实时调试

环境

直接使用本地的 .env 文件(与 Modal 使用 secrets 不同)。


模式

输入

名称类型必填描述
portinteger否服务器端口(默认:8000)

输出

名称类型描述
server_urlstring本地服务器地址(http://localhost:8000)
tunnel_urlstringCloudflare 隧道地址(如果启用)

可组合的技能

与此技能配合良好的技能:add-webhook

成本

免费(本地执行)

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

aiagentwithdhruv/skills

Add new Modal webhooks for event-driven execution. Use when user asks to create a webhook, add an endpoint, or set up event triggers.

aiagentwithdhruv/skills

Answer Euron Gen AI Bootcamp doubts instantly. Covers Euri API setup across all frameworks (Python, LangChain, OpenAI SDK, TypeScript, n8n, curl), MCP server setup, common errors, model recommendations, and token limits. Use when someone in the bootcamp asks a question.

aiagentwithdhruv/skills

Manage emails across multiple Gmail accounts with unified tooling. Use when user asks to check email, read inbox, label emails, archive messages, or manage Gmail across accounts.

aiagentwithdhruv/skills

Auto-label Gmail emails into Action Required, Waiting On, and Reference categories. Use when user asks to label emails, triage inbox, categorize emails, or organize Gmail.

aiagentwithdhruv/skills

Scrape Google Maps for B2B leads with deep website enrichment and contact extraction. Use when user asks to find local businesses, scrape Google Maps, generate contractor lists, or build local service business databases.

aiagentwithdhruv/skills

MCP server for AI-powered macOS control — apps, display, audio, files, screenshots, clipboard

aiagentwithdhruv/skills

Deploy execution scripts to Modal cloud. Use when user asks to deploy to Modal, push code to cloud, or update Modal functions.

aiagentwithdhruv/skills

Scrape and verify business leads using Apify, classify with LLM, enrich emails, and save to Google Sheets. Use when user asks to find leads, scrape businesses, generate prospect lists, or build lead databases for any industry or location.

aiagentwithdhruv/skills

Query Skool community content using RAG pipeline with vector search. Use when user asks to search Skool knowledge, find community answers, or query Skool content.

aiagentwithdhruv/skills

Scrape Upwork jobs and generate personalized proposals with cover letters. Use when user asks to find Upwork jobs, create Upwork proposals, or apply to Upwork listings.

相关技能