HTTP API for Claude CLI Headless Mode

Claude CLI: Available
Auth: Open
LINE: Configured
Eko: Configured

Bot Endpoints (all under /bot)

LINE Channel (under /bot/channel/line)

Eko Channel (under /bot/channel/eko)

Example Usage

# Simple prompt
curl -X POST http://localhost:8788/bot/prompt \
  -H "Content-Type: application/json" \
  -d '{"prompt": "What is 2+2?"}'

# With model selection
curl -X POST http://localhost:8788/bot/prompt \
  -H "Content-Type: application/json" \
  -d '{"prompt": "Explain quantum computing", "model": "opus"}'

# With system prompt
curl -X POST http://localhost:8788/bot/prompt \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Hello!",
    "system_prompt": "You are a helpful coding assistant."
  }'

# Trigger message to tagged channels
curl -X POST http://localhost:8788/bot/channel/line/trigger \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Summarize today's tech news",
    "tag": "morning-news",
    "model": "opus"
  }'