From dispatch-http
Start the Claude Agent HTTP API server that exposes Claude Code via REST endpoints
npx claudepluginhub runbear-io/skills --plugin dispatch-httpThis skill uses the workspace's default tool permissions.
- [ ] Step 1: Install dependencies (if `node_modules/` is missing)
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Analyzes BMad project state from catalog CSV, configs, artifacts, and query to recommend next skills or answer questions. Useful for help requests, 'what next', or starting BMad.
node_modules/ is missing)cd "$SKILL_DIR" && npm install
PROJECT_DIR="/private/tmp/claude-$(id -u)/$(echo "$PROJECT_ROOT" | tr '/' '-')" && SESSION_ID="$(find "$PROJECT_DIR"/*/tasks -name "*.output" -maxdepth 1 2>/dev/null | xargs ls -t 2>/dev/null | head -1 | sed "s|$PROJECT_DIR/||;s|/tasks/.*||")" && cd "$SKILL_DIR" && npm start -- --cwd "$PROJECT_ROOT" --session-id "$SESSION_ID" $ARGUMENTS
Where SKILL_DIR is the base directory shown above and PROJECT_ROOT is the Claude Code session's working directory.
Run this in the background so the conversation can continue.
Pass -- --port <number> to override the default port (3000), -- --cwd <path> to set the working directory, or -- --session-id <id> to set the default Claude session ID.
curl -s http://localhost:3000/health
Expect {"ok":true}.
POST /api/query — run a prompt, return full JSON response. POST /api/query/stream — run a prompt, stream via SSE.
Request body: prompt (required), cwd, sessionId, allowedTools, systemPrompt.
0.0.0.0, not 127.0.0.1. It accepts connections from any interface.DISPATCH_HTTP_API_KEY env var to enable Bearer token auth.ANTHROPIC_API_KEY needed if Claude Code is already authenticated on the machine.