Connections
apfelclaw runs as a local backend on your Mac, but it can also expose controlled remote entry points through connection providers.
Current connection providers
- Telegram — private bot access with one approved Telegram account and one linked private chat
Design goals
Connections are intended to keep the same core behavior as the local TUI:
- The backend still owns sessions, routing, tools, and persistence
- Remote messages still flow through the same
IntentRouterand tool execution path - The configured
assistantNameis reused across clients - The local TUI is used for onboarding and status, but the backend keeps running after setup
Security model
Remote connections should stay narrow and explicit.
For the current Telegram integration, apfelclaw only accepts:
- a single approved private chat
- a single approved Telegram user ID
Other Telegram chats and other Telegram accounts are ignored.
Local setup flow
Remote providers are configured from the TUI with /remotecontrol commands.
Typical flow:
- Start the backend with
./apfelclaw - Open the TUI with
bun run dev - Run
/remotecontrol setup telegram <botToken> - Send a private message to the Telegram bot
- Run
/remotecontrol status telegramto confirm the approved chat and user
What’s next
- Read the Telegram guide for the full setup flow
- See the API Reference for the local endpoints that back the TUI onboarding flow