Overview
Every chat provider in profClaw implements the sameChatProvider interface. Custom providers have the same capabilities as built-in ones:
- Inbound message handling
- Outbound message sending
- Status and health checks
- Multi-account support
Interface
A chat provider consists of four adapters:Building a Provider
1
Create the provider file
2
Implement the outbound adapter
3
Implement the inbound adapter
4
Register the provider
Account Configuration
Define a typed config for your provider’s credentials:Webhook Registration
Register your provider’s webhook route with Hono:Plugin Distribution
Wrap your custom provider as a profClaw plugin for easy distribution:Notes
- Custom providers have the same capabilities as built-in providers.
- The
idfield must be unique across all registered providers. - Account configuration is stored in profClaw’s settings and can include multiple accounts.
- For distributing providers to others, use the Plugin SDK and publish to ClawHub.
Related
- Chat Providers Overview - Compare all 27 built-in supported channels
- Plugins Overview - Package and publish your custom provider as a plugin
- Plugin SDK - TypeScript SDK for building profClaw plugins
- profclaw channels - Enable and test chat provider connections from the CLI