iMessage Setup
此内容尚不支持你的语言。
Overview
Section titled “Overview”Connect Clawdbot to iMessage for a native macOS AI assistant experience. Chat with Claude directly through your Mac’s Messages app.
Prerequisites
Section titled “Prerequisites”- macOS 10.15 (Catalina) or later
- Clawdbot installed
- iCloud account with iMessage enabled
- Terminal accessibility permissions
-
Grant Permissions
System Preferences → Security & Privacy → Privacy:
- Full Disk Access: Add Terminal (or your IDE)
- Accessibility: Add Terminal
-
Enable iMessage channel
Terminal window IMESSAGE_ENABLED=true -
Configure automation
Clawdbot reads from the Messages database at:
~/Library/Messages/chat.db -
Start Clawdbot
Terminal window python -m clawdbot -
Test
Send yourself an iMessage (or have a contact message you)
Configuration
Section titled “Configuration”IMESSAGE_ENABLED=true
# Allowed contacts (phone/email, empty = all)IMESSAGE_ALLOWED_CONTACTS=+1234567890,email@example.com
# Response delay (seconds)IMESSAGE_RESPONSE_DELAY=1
# Poll interval for new messages (seconds)IMESSAGE_POLL_INTERVAL=2How It Works
Section titled “How It Works”- Clawdbot monitors the Messages SQLite database
- New messages trigger Claude API calls
- Responses sent via AppleScript automation
Limitations
Section titled “Limitations”- macOS only: No Windows/Linux support
- Single account: Your iCloud account only
- No group chats: Individual conversations only
- Rate limits: AppleScript automation has delays
Troubleshooting
Section titled “Troubleshooting”“Permission denied” errors
- Ensure Full Disk Access is granted
- Restart Terminal after granting permissions
Messages not detected
- Check database path exists
- Verify poll interval timing
Responses not sending
- Grant Accessibility permissions
- Test AppleScript manually