AgentSkillsCN

local-server

在本地运行Claude编排器,并通过Cloudflare隧道进行部署。当用户希望在本地运行、启动本地服务器,或在本地测试Webhook时使用此功能。

SKILL.md
--- frontmatter
name: local-server
description: Run Claude orchestrator locally with Cloudflare tunneling. Use when user asks to run locally, start local server, or test webhooks locally.
allowed-tools: Bash, Read, Write, Edit, Glob, Grep

Local Server Execution

Goal

Run the Claude orchestrator locally with Cloudflare tunnel for external webhook access.

Start Server

bash
python3 execution/local_server.py

Starts FastAPI server on port 8000.

Cloudflare Tunnel

For external access (webhooks), use Cloudflare tunnel:

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

Endpoints

Same as Modal deployment:

  • /directive?slug={slug} - Execute directive
  • /list-webhooks - List webhooks
  • /general-agent - General agent tasks

Development Use

  • Faster iteration than Modal deploys
  • Full access to local files and credentials
  • Real-time debugging with print statements

Environment

Uses local .env file directly (unlike Modal which uses secrets).