Direct answer
Yes, provided the agent connects to the chat app by pulling messages outward itself. The machine can make outbound connections normally, but it has no public address for outside callbacks, so setups that depend on a webhook do not work by default.
Basis
- A chat bot can receive messages in two ways. Taking Telegram as an example, the official API documentation describes two mutually exclusive approaches: the program calls getUpdates to pull messages, or you set a webhook so the platform pushes messages to an HTTPS address (see the Bot API docs, checked 2026-11-12). The first only needs the machine to be able to reach out.
- OpenClaw's Telegram channel uses long polling by default, and webhook is optional (see the channel docs, checked the same day). With the default configuration, installing it on the remote Mac needs no inbound port at all.
- Our machines use residential broadband in the United States; the public exit may be shared with other machines and is not a fixed address, and you are not allowed to change the network configuration yourself. So having the platform push messages to this Mac is a route that does not work by default.
- Remote desktop (UU Remote, RustDesk) still has to stay: permission prompts, login verification and troubleshooting all require getting into the desktop, and a chat channel cannot replace it.
Boundaries: when the answer is different
If your tool or a particular channel only supports webhooks, do not install a tunnelling or port-mapping tool yourself to make a public entry point; that counts as changing the network configuration. Tell support what you need first and confirm whether there is a workable way. A safer alternative is to put the small piece that receives callbacks on your own cloud server and have the agent on the Mac fetch from it. Also, a chat channel is a remote control for this machine: whoever can message the bot may be able to make the agent run commands, so be sure to restrict which accounts can talk to it.
How to do it
- Check the agent tool's documentation to confirm that the chat channel you want supports a pull mode.
- Connect to the machine over remote desktop, enter the bot token as the documentation describes, and start it.
- Restrict the accounts allowed to talk to it to yourself, and turn off triggers from strangers' private messages and from group chats.
- Send a harmless command from your phone and confirm you get a reply.
- Disconnect remote desktop and send it again to confirm the agent does not depend on you being connected.
Related questions
- Mac mini for 24/7 AI agents? Only worth it when the agent needs a desktop or macOS apps
- Can I connect to a remote Mac mini from my phone to check on my agent?
- Coding on a remote Mac mini: remote desktop or terminal?
- Is the network exit on my rented Mac mini used only by me?
- How do I know my unattended agent is still running properly?
Use case
This question belongs to the use case: Mac mini for 24/7 AI agents? Only worth it when the agent needs a desktop or macOS apps
Other questions in the same use case:
- How can I check that I am the only one using my rented Mac mini?
- How do I check if my AI agent ran all night, or if the Mac restarted or slept?
- My AI agent is stuck on a macOS system dialog. What should I do?
- My AI agent keeps getting logged out of websites after a few days. How do I fix it?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support