Skip to main content
WebChat is profClaw’s built-in browser interface. It requires no third-party accounts or webhooks - just start profClaw and open a browser.

Overview

WebChat uses Server-Sent Events (SSE) for real-time streaming responses. Sessions are managed server-side with configurable timeouts.
  • Streaming responses in real time
  • Anonymous access optional
  • Rate limiting per IP
  • Session-based (30 min timeout by default)
  • No JavaScript framework dependency

Setup

WebChat is enabled automatically when profClaw starts. No configuration required.

Environment Variables

boolean
Allow unauthenticated sessions. Defaults to false. Set to true for open access.
number
Maximum concurrent sessions per IP address. Defaults to 5.
number
Session expiry in milliseconds. Defaults to 1800000 (30 minutes).

Configuration Example

Embedding the Widget

You can embed the WebChat widget in your own web application:

API Endpoints

WebChat exposes these HTTP endpoints:

Capabilities

Notes

  • WebChat sessions auto-expire after inactivity to free server resources.
  • Sessions run cleanup every 5 minutes.
  • The SSE stream format is compatible with standard EventSource API.
  • WebChat is always available on port 3000 (configurable via PORT).