Local agentic workflow server
Run the Claude orchestrator and your workflows on a local server.
Tools featured in this playbook
This article was originally posted on Google Docs
Local Server Execution Framework
This document explains how to run the Claude orchestrator locally and expose it to external services via public URLs. Use this when you need webhooks accessible from the internet without deploying to Modal or other cloud platforms.
\---
\#\# Quick Start for Users
If you're setting this up for the first time, follow these steps:
\#\#\# 1\. Install Dependencies
\`\`\`bash
pip install fastapi uvicorn anthropic google-auth google-auth-oauthlib google-api-python-client python-dotenv
\`\`\`
\#\#\# 2\. Start the Local Server
\`\`\`bash
cd /Users/nicksaraev/Example\\ Workspace
python3 \-m uvicorn execution.local\_server:app \--host 0.0.0.0 \--port 8000
\`\`\`
\#\#\# 3\. Expose via Cloudflare Tunnel
\`\`\`bash
cloudflared tunnel \--url http\://localhost:8000
\`\`\`
This outputs a public URL like \`https\://random-words.trycloudflare.com\`.
\#\#\# 4\. Test the Endpoint
\`\`\`bash
curl https\://your-tunnel-url.trycloudflare.com/webhooks
\`\`\`
\---
\#\# Overview
The local server provides the same webhook interface as Modal but runs on your machine. This is useful for:
\- \*\*Development/testing\*\* \- Faster iteration than cloud deploys
\- \*\*Local resources\*\* \- Access to local files, databases, credentials
\- \*\*Cost savings\*\* \- No cloud compute costs
\- \*\*Privacy\*\* \- Data stays on your machine
\#\#\# Architecture
\`\`\`
┌─────────────────┐ HTTPS ┌─────────────────┐ HTTP ┌─────────────────┐
│ External │ ────────────────\> │ Cloudflared │ ──────────────\> │ Local FastAPI │
│ Service │ │ Tunnel │ │ Server :8000 │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│
│ Runs
▼
┌─────────────────┐
│ Directive or │
│ Script │
└─────────────────┘
\`\`\`
\---
\#\# File Structure
\`\`\`
execution/
├── local\_server.py \# FastAPI server (this framework)
├── webhooks.json \# Webhook slug → directive/script mapping
├── upwork\_apify\_scraper.py
├── upwork\_proposal\_generator.py
└── ... other scripts
directives/
├── upwork\_scrape\_apply.md
└── ... other directives
.env \# API keys and secrets
token.json \# Google OAuth credentials
\`\`\`
\---
\#\# The Local Server: \`execution/local\_server.py\`
\#\#\# Core Components
\`\`\`python
import os
import json
import logging
import subprocess
import sys
from pathlib import Path
from typing import Optional
from datetime import datetime
from fastapi import FastAPI, HTTPException
from fastapi.responses import JSONResponse
from anthropic import Anthropic
from dotenv import load\_dotenv
\# Load environment variables from .env
load\_dotenv()
\# Configure logging
logging.basicConfig(level=logging.INFO)
logger \= logging.getLogger("local-orchestrator")
app \= FastAPI(title="Claude Orchestrator (Local)", version="1.0")
\`\`\`
\#\#\# Two Types of Webhooks
The server supports two webhook types defined in \`webhooks.json\`:
1\. \*\*Directive-type\*\*: Uses Claude with scoped tools (send\_email, read\_sheet, update\_sheet)
2\. \*\*Script-type\*\*: Runs Python scripts directly via subprocess
\`\`\`json
{
"webhooks": {
"process-lead": {
"directive": "classify\_leads\_llm",
"description": "Classify and process incoming leads",
"tools": \["send\_email", "read\_sheet", "update\_sheet"\]
},
"upwork-scrape-apply": {
"script": "upwork\_scrape\_apply",
"description": "Scrape Upwork jobs and generate proposals"
}
}
}
\`\`\`
\---
\#\# Adding a New Webhook
\#\#\# Step 1: Decide Type (Directive vs Script)
\*\*Use Directive-type when:\*\*
\- Task requires Claude reasoning
\- Needs to use email, sheets, or other tools
\- Workflow is flexible/adaptive
\*\*Use Script-type when:\*\*
\- Task is deterministic
\- Runs existing Python scripts
\- Multi-step pipeline with subprocess calls
\#\#\# Step 2: Add Entry to \`webhooks.json\`
\`\`\`json
{
"webhooks": {
"my-new-webhook": {
"script": "my\_script\_name",
"description": "What this webhook does"
}
}
}
\`\`\`
Or for directive-type:
\`\`\`json
{
"webhooks": {
"my-new-webhook": {
"directive": "my\_directive\_name",
"description": "What this webhook does",
"tools": \["send\_email", "read\_sheet"\]
}
}
}
\`\`\`
\#\#\# Step 3: Create Script Handler (for Script-type)
If the script has a complex multi-step pipeline, add a handler to \`local\_server.py\`:
\`\`\`python
def run\_my\_script(input\_data: dict) \-\> dict:
"""Run my custom script pipeline."""
param1 \= input\_data.get("param1", "default")
results \= {"steps": \[\], "errors": \[\]}
\# Step 1: First script
logger.info("Step 1: Running first script")
cmd \= \[sys.executable, "execution/first\_script.py", "--param", param1\]
try:
result \= subprocess.run(
cmd,
capture\_output=True,
text=True,
timeout=300,
cwd=str(Path(\_\_file\_\_).parent.parent)
)
results\["steps"\].append({
"step": "first\_script",
"returncode": result.returncode,
"stdout": result.stdout\[-2000:\] if result.stdout else ""
})
except subprocess.TimeoutExpired:
results\["errors"\].append("First script timed out")
return results
\# Step 2: Second script (depends on step 1\)
\# ... similar pattern ...
results\["status"\] \= "success" if not results\["errors"\] else "failed"
return results
\# Register the handler
SCRIPT\_HANDLERS\["my\_script\_name"\] \= run\_my\_script
\`\`\`
\#\#\# Step 4: Restart Server
\`\`\`bash
\# Kill existing server
pkill \-f "uvicorn execution.local\_server"
\# Restart
python3 \-m uvicorn execution.local\_server:app \--host 0.0.0.0 \--port 8000
\`\`\`
\---
\#\# Script Execution Pattern
For script-type webhooks, the server executes Python scripts via subprocess:
\`\`\`python
SCRIPT\_HANDLERS \= {}
def run\_script(script\_name: str, input\_data: dict) \-\> dict:
"""Run a script by name with input data."""
\# Check for custom handler first
if script\_name in SCRIPT\_HANDLERS:
return SCRIPT\_HANDLERS\[script\_name\](input\_data)
\# Generic fallback: run script with \--input flag
script\_path \= Path(\_\_file\_\_).parent / f"{script\_name}.py"
if not script\_path.exists():
return {"error": f"Script not found: {script\_name}.py"}
\# Write input to temp file
input\_file \= Path(\_\_file\_\_).parent.parent / ".tmp" / f"{script\_name}\_input.json"
input\_file.parent.mkdir(exist\_ok=True)
with open(input\_file, "w") as f:
json.dump(input\_data, f)
try:
result \= subprocess.run(
\[sys.executable, str(script\_path), "--input", str(input\_file)\],
capture\_output=True,
text=True,
timeout=600,
cwd=str(Path(\_\_file\_\_).parent.parent)
)
return {
"status": "success" if result.returncode \== 0 else "failed",
"returncode": result.returncode,
"stdout": result.stdout\[-3000:\] if result.stdout else "",
"stderr": result.stderr\[-1000:\] if result.stderr else ""
}
except subprocess.TimeoutExpired:
return {"error": "Script timed out after 10 minutes"}
except Exception as e:
return {"error": str(e)}
\`\`\`
\#\#\# Example: Upwork Scrape & Apply Handler
\`\`\`python
def run\_upwork\_scrape\_apply(input\_data: dict) \-\> dict:
"""Run the Upwork scrape and apply pipeline."""
limit \= input\_data.get("limit", 50\)
days \= input\_data.get("days", 1\)
workers \= input\_data.get("workers", 5\)
keywords \= input\_data.get("keywords", None)
results \= {"steps": \[\], "errors": \[\]}
\# Step 1: Scrape jobs
logger.info(f"Scraping Upwork jobs (limit={limit}, days={days})")
scrape\_cmd \= \[
sys.executable, "execution/upwork\_apify\_scraper.py",
"--limit", str(limit),
"--days", str(days),
"-o", ".tmp/upwork\_jobs\_batch.json"
\]
if input\_data.get("verified\_payment"):
scrape\_cmd.append("--verified-payment")
try:
scrape\_result \= subprocess.run(
scrape\_cmd,
capture\_output=True,
text=True,
timeout=300, \# 5 min timeout
cwd=str(Path(\_\_file\_\_).parent.parent)
)
results\["steps"\].append({
"step": "scrape",
"returncode": scrape\_result.returncode,
"stdout": scrape\_result.stdout\[-2000:\] if scrape\_result.stdout else "",
"stderr": scrape\_result.stderr\[-1000:\] if scrape\_result.stderr else ""
})
if scrape\_result.returncode \!= 0:
results\["errors"\].append(f"Scrape failed: {scrape\_result.stderr}")
return results
except subprocess.TimeoutExpired:
results\["errors"\].append("Scrape timed out after 5 minutes")
return results
\# Step 2: Generate proposals
logger.info(f"Generating proposals (workers={workers})")
proposal\_cmd \= \[
sys.executable, "execution/upwork\_proposal\_generator.py",
"--input", ".tmp/upwork\_jobs\_batch.json",
"--workers", str(workers),
"--output", ".tmp/upwork\_jobs\_with\_proposals.json"
\]
if keywords:
proposal\_cmd.extend(\["--filter-keywords", keywords\])
try:
proposal\_result \= subprocess.run(
proposal\_cmd,
capture\_output=True,
text=True,
timeout=1800, \# 30 min for proposal generation
cwd=str(Path(\_\_file\_\_).parent.parent)
)
results\["steps"\].append({
"step": "proposals",
"returncode": proposal\_result.returncode,
"stdout": proposal\_result.stdout\[-2000:\] if proposal\_result.stdout else "",
"stderr": proposal\_result.stderr\[-1000:\] if proposal\_result.stderr else ""
})
if proposal\_result.returncode \!= 0:
results\["errors"\].append(f"Proposal generation failed")
except subprocess.TimeoutExpired:
results\["errors"\].append("Proposal generation timed out after 30 minutes")
\# Load output stats
output\_path \= Path(\_\_file\_\_).parent.parent / ".tmp/upwork\_jobs\_with\_proposals.json"
if output\_path.exists():
try:
with open(output\_path) as f:
output\_data \= json.load(f)
results\["jobs\_processed"\] \= len(output\_data) if isinstance(output\_data, list) else 0
results\["output\_file"\] \= str(output\_path)
except Exception:
pass
results\["status"\] \= "success" if not results\["errors"\] else "failed"
return results
SCRIPT\_HANDLERS\["upwork\_scrape\_apply"\] \= run\_upwork\_scrape\_apply
\`\`\`
\---
\#\# Directive Execution Pattern
For directive-type webhooks, Claude processes the directive with scoped tools:
\`\`\`python
def run\_directive(
slug: str,
directive\_content: str,
input\_data: dict,
allowed\_tools: list,
max\_turns: int \= 15
) \-\> dict:
"""Execute a directive with scoped tools."""
client \= Anthropic(api\_key=os.getenv("ANTHROPIC\_API\_KEY"))
prompt \= f"""You are executing a specific directive. Follow it precisely.
\#\# DIRECTIVE
{directive\_content}
\#\# INPUT DATA
{json.dumps(input\_data, indent=2) if input\_data else "No input data provided."}
\#\# INSTRUCTIONS
1\. Read and understand the directive above
2\. Use the available tools to accomplish the task
3\. Report your results clearly
Execute the directive now."""
\# Filter to only allowed tools
tools \= \[ALL\_TOOLS\[t\] for t in allowed\_tools if t in ALL\_TOOLS\]
messages \= \[{"role": "user", "content": prompt}\]
\# Agentic loop with tool use
response \= client.messages.create(
model="claude-opus-4-5-20251101",
max\_tokens=16000,
tools=tools,
messages=messages,
thinking={"type": "enabled", "budget\_tokens": 32000}
)
\# ... handle tool calls in loop until stop\_reason \!= "tool\_use" ...
return {
"response": final\_text,
"thinking": thinking\_log,
"conversation": conversation\_log,
"usage": usage
}
\`\`\`
\#\#\# Available Tools
\`\`\`python
ALL\_TOOLS \= {
"send\_email": {
"name": "send\_email",
"description": "Send an email via Gmail.",
"input\_schema": {
"type": "object",
"properties": {
"to": {"type": "string", "description": "Recipient email address"},
"subject": {"type": "string", "description": "Email subject line"},
"body": {"type": "string", "description": "Email body content"}
},
"required": \["to", "subject", "body"\]
}
},
"read\_sheet": {
"name": "read\_sheet",
"description": "Read data from a Google Sheet.",
"input\_schema": {
"type": "object",
"properties": {
"spreadsheet\_id": {"type": "string"},
"range": {"type": "string", "description": "A1 notation range"}
},
"required": \["spreadsheet\_id", "range"\]
}
},
"update\_sheet": {
"name": "update\_sheet",
"description": "Update cells in a Google Sheet.",
"input\_schema": {
"type": "object",
"properties": {
"spreadsheet\_id": {"type": "string"},
"range": {"type": "string"},
"values": {"type": "array", "description": "2D array of values"}
},
"required": \["spreadsheet\_id", "range", "values"\]
}
}
}
\`\`\`
\---
\#\# Exposing the Server Publicly
\#\#\# Option 1: Cloudflare Tunnel (Recommended)
\*\*Install cloudflared:\*\*
\`\`\`bash
\# macOS
brew install cloudflared
\# Linux
curl \-L https\://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 \-o cloudflared
chmod \+x cloudflared
sudo mv cloudflared /usr/local/bin/
\`\`\`
\*\*Run tunnel:\*\*
\`\`\`bash
cloudflared tunnel \--url http\://localhost:8000
\`\`\`
\*\*Output:\*\*
\`\`\`
Your quick Tunnel has been created\! Visit it at:
https\://random-words-here.trycloudflare.com
\`\`\`
\*\*Characteristics:\*\*
\- Free, no account required
\- URL changes on restart (use named tunnel for stable URL)
\- HTTPS included
\- No rate limits
\#\#\# Option 2: ngrok
\*\*Install:\*\*
\`\`\`bash
brew install ngrok
ngrok authtoken YOUR\_AUTH\_TOKEN \# From ngrok.com dashboard
\`\`\`
\*\*Run:\*\*
\`\`\`bash
ngrok http 8000
\`\`\`
\*\*Note:\*\* Requires email verification for account.
\#\#\# Option 3: localtunnel
\*\*Install:\*\*
\`\`\`bash
npm install \-g localtunnel
\`\`\`
\*\*Run:\*\*
\`\`\`bash
lt \--port 8000
\`\`\`
\#\#\# Named Cloudflare Tunnel (Stable URL)
For a permanent URL that persists across restarts:
\`\`\`bash
\# One-time setup
cloudflared tunnel login
cloudflared tunnel create my-orchestrator
cloudflared tunnel route dns my-orchestrator orchestrator.yourdomain.com
\# Run with stable URL
cloudflared tunnel run my-orchestrator
\`\`\`
\---
\#\# API Endpoints
\#\#\# GET /
Server info and status.
\`\`\`bash
curl http\://localhost:8000/
\`\`\`
Response:
\`\`\`json
{
"service": "Claude Orchestrator (Local)",
"status": "running",
"endpoints": {
"webhook": "POST /webhook/{slug}",
"list": "GET /webhooks"
}
}
\`\`\`
\#\#\# GET /webhooks
List all available webhooks.
\`\`\`bash
curl http\://localhost:8000/webhooks
\`\`\`
Response:
\`\`\`json
{
"webhooks": {
"upwork-scrape-apply": {
"directive": null,
"script": "upwork\_scrape\_apply",
"description": "Scrape Upwork jobs and generate proposals",
"tools": \[\]
},
"process-lead": {
"directive": "classify\_leads\_llm",
"script": null,
"description": "Classify and process incoming leads",
"tools": \["send\_email", "read\_sheet", "update\_sheet"\]
}
}
}
\`\`\`
\#\#\# POST /webhook/{slug}
Execute a webhook by slug.
\`\`\`bash
curl \-X POST http\://localhost:8000/webhook/upwork-scrape-apply \\
\-H "Content-Type: application/json" \\
\-d '{
"limit": 50,
"days": 1,
"workers": 5,
"verified\_payment": true
}'
\`\`\`
\*\*Script-type Response:\*\*
\`\`\`json
{
"status": "success",
"slug": "upwork-scrape-apply",
"mode": "local",
"type": "script",
"script": "upwork\_scrape\_apply",
"result": {
"status": "success",
"steps": \[...\],
"jobs\_processed": 42,
"output\_file": "/path/to/.tmp/upwork\_jobs\_with\_proposals.json"
},
"timestamp": "2025-12-04T18:30:00.000000"
}
\`\`\`
\*\*Directive-type Response:\*\*
\`\`\`json
{
"status": "success",
"slug": "process-lead",
"mode": "local",
"type": "directive",
"directive": "classify\_leads\_llm",
"response": "I've processed the lead and sent the follow-up email...",
"thinking": \[...\],
"conversation": \[...\],
"usage": {
"input\_tokens": 1234,
"output\_tokens": 567,
"turns": 3
},
"timestamp": "2025-12-04T18:30:00.000000"
}
\`\`\`
\---
\#\# Running in Production
\#\#\# As a Background Process
\`\`\`bash
\# Using nohup
nohup python3 \-m uvicorn execution.local\_server:app \--host 0.0.0.0 \--port 8000 \> server.log 2\>&1 &
\# Using screen
screen \-S orchestrator
python3 \-m uvicorn execution.local\_server:app \--host 0.0.0.0 \--port 8000
\# Ctrl+A, D to detach
\`\`\`
\#\#\# With Auto-Restart (launchd on macOS)
Create \`\~/Library/LaunchAgents/com.orchestrator.local.plist\`:
\`\`\`xml
\<?xml version="1.0" encoding="UTF-8"?\>
\<\!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http\://www\.apple.com/DTDs/PropertyList-1.0.dtd"\>
\<plist version="1.0"\>
\<dict\>
\<key\>Label\</key\>
\<string\>com.orchestrator.local\</string\>
\<key\>ProgramArguments\</key\>
\<array\>
\<string\>/usr/bin/python3\</string\>
\<string\>-m\</string\>
\<string\>uvicorn\</string\>
\<string\>execution.local\_server:app\</string\>
\<string\>--host\</string\>
\<string\>0.0.0.0\</string\>
\<string\>--port\</string\>
\<string\>8000\</string\>
\</array\>
\<key\>WorkingDirectory\</key\>
\<string\>/Users/nicksaraev/Example Workspace\</string\>
\<key\>RunAtLoad\</key\>
\<true/\>
\<key\>KeepAlive\</key\>
\<true/\>
\<key\>StandardOutPath\</key\>
\<string\>/tmp/orchestrator.log\</string\>
\<key\>StandardErrorPath\</key\>
\<string\>/tmp/orchestrator.err\</string\>
\</dict\>
\</plist\>
\`\`\`
Load it:
\`\`\`bash
launchctl load \~/Library/LaunchAgents/com.orchestrator.local.plist
\`\`\`
\#\#\# With systemd (Linux)
Create \`/etc/systemd/system/orchestrator.service\`:
\`\`\`ini
\[Unit\]
Description=Claude Orchestrator Local Server
After=network.target
\[Service\]
Type=simple
User=youruser
WorkingDirectory=/path/to/workspace
ExecStart=/usr/bin/python3 \-m uvicorn execution.local\_server:app \--host 0.0.0.0 \--port 8000
Restart=always
RestartSec=5
\[Install\]
WantedBy=multi-user.target
\`\`\`
Enable:
\`\`\`bash
sudo systemctl enable orchestrator
sudo systemctl start orchestrator
\`\`\`
\---
\#\# Environment Variables
Required in \`.env\`:
\`\`\`bash
\# Required for directive-type webhooks
ANTHROPIC\_API\_KEY=sk-ant-...
\# Required for email/sheet tools
\# (Contents of token.json as single-line JSON)
\# Alternatively, just have token.json present in workspace root
\`\`\`
The server loads \`.env\` automatically via \`python-dotenv\`.
\---
\#\# Troubleshooting
\#\#\# Server Won't Start
\*\*"Address already in use"\*\*
\`\`\`bash
\# Find what's using port 8000
lsof \-i :8000
\# Kill it
kill \-9 \<PID\>
\# Or use different port
python3 \-m uvicorn execution.local\_server:app \--port 8001
\`\`\`
\*\*"ModuleNotFoundError"\*\*
\`\`\`bash
pip install fastapi uvicorn anthropic python-dotenv google-auth google-api-python-client
\`\`\`
\#\#\# Tunnel Issues
\*\*Cloudflared "connection refused"\*\*
\- Ensure server is running on localhost:8000 first
\- Check firewall isn't blocking
\*\*ngrok "email not verified"\*\*
\- Go to https\://dashboard.ngrok.com/user/settings
\- Verify your email address
\#\#\# Script Execution Fails
\*\*"Script not found"\*\*
\- Check script exists in \`execution/\` directory
\- Check spelling in \`webhooks.json\` matches filename (without .py)
\*\*"Timeout expired"\*\*
\- Increase timeout in subprocess.run()
\- Check script for infinite loops
\*\*"Permission denied"\*\*
\`\`\`bash
chmod \+x execution/your\_script.py
\`\`\`
\#\#\# Webhook Returns 404
\- Check slug exists in \`webhooks.json\`
\- Restart server after modifying \`webhooks.json\`
\#\#\# Webhook Returns 500
\- Check server logs for stack trace
\- Verify all required environment variables are set
\- For directive-type: ensure \`token.json\` exists
\---
\#\# Comparison: Local vs Modal
| Aspect | Local Server | Modal |
|--------|--------------|-------|
| \*\*Startup time\*\* | Instant | 2-5 sec cold start |
| \*\*Cost\*\* | Free | Pay per use |
| \*\*Uptime\*\* | Requires your machine | 99.9% SLA |
| \*\*URL stability\*\* | Tunnel URL changes | Stable URLs |
| \*\*Secrets\*\* | .env file | Modal dashboard |
| \*\*Scaling\*\* | Single instance | Auto-scales |
| \*\*Local files\*\* | Full access | Must mount |
| \*\*Debugging\*\* | Easy (local) | Via logs |
\*\*Use Local when:\*\*
\- Developing and testing
\- Need local file access
\- Want to avoid costs
\- Running on always-on machine
\*\*Use Modal when:\*\*
\- Production workloads
\- Need reliability guarantees
\- Don't want to manage infrastructure
\- Need auto-scaling
\---
\#\# Complete Setup Walkthrough
\#\#\# From Scratch
1\. \*\*Clone/navigate to workspace:\*\*
\`\`\`bash
cd /Users/nicksaraev/Example\\ Workspace
\`\`\`
2\. \*\*Install Python dependencies:\*\*
\`\`\`bash
pip install fastapi uvicorn anthropic google-auth google-auth-oauthlib google-api-python-client python-dotenv apify-client gspread
\`\`\`
3\. \*\*Ensure .env exists with ANTHROPIC\_API\_KEY:\*\*
\`\`\`bash
echo "ANTHROPIC\_API\_KEY=sk-ant-..." \>\> .env
\`\`\`
4\. \*\*Ensure token.json exists\*\* (for Google tools):
Run OAuth flow if needed, or copy from existing setup.
5\. \*\*Add webhook to webhooks.json\*\* (if not already present):
\`\`\`json
{
"webhooks": {
"your-webhook": {
"script": "your\_script\_name",
"description": "What it does"
}
}
}
\`\`\`
6\. \*\*Add script handler\*\* to \`local\_server.py\` if multi-step pipeline.
7\. \*\*Start server:\*\*
\`\`\`bash
python3 \-m uvicorn execution.local\_server:app \--host 0.0.0.0 \--port 8000
\`\`\`
8\. \*\*Start tunnel:\*\*
\`\`\`bash
cloudflared tunnel \--url http\://localhost:8000
\`\`\`
9\. \*\*Note the public URL\*\* from cloudflared output.
10\. \*\*Test:\*\*
\`\`\`bash
curl https\://your-tunnel-url.trycloudflare.com/webhooks
\`\`\`
\---
\#\# Summary
1\. \*\*Two webhook types\*\*: directive (Claude \+ tools) and script (subprocess)
2\. \*\*Script handlers\*\* in \`SCRIPT\_HANDLERS\` dict for complex pipelines
3\. \*\*webhooks.json\*\* maps slugs to directives or scripts
4\. \*\*cloudflared\*\* provides free, easy public URLs
5\. \*\*Server runs locally\*\* \- full access to files, .env, token.json
6\. \*\*Restart server\*\* after modifying webhooks.json or local\_server.py
7\. \*\*Check logs\*\* for debugging \- server outputs to stdout
Comments
Login to leave a comment