# Todoist launchd Agent
The launchd agent that keeps the Todoist sync daemon running. Save as `local.obsidian-todoist-sync.plist` (see [[09 Todoist Integration]]).
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.obsidian-todoist-sync</string>
<key>ProgramArguments</key>
<array>
<string>/Users/YOUR_USERNAME/.venvs/todoist-sync/bin/python</string>
<string>/Users/YOUR_USERNAME/Library/Mobile Documents/iCloud~md~obsidian/Documents/YOUR_VAULT/Scripts/todoist_sync.py</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>ThrottleInterval</key>
<integer>10</integer>
<key>StandardOutPath</key>
<string>/Users/YOUR_USERNAME/.config/obsidian-todoist-sync/stdout.log</string>
<key>StandardErrorPath</key>
<string>/Users/YOUR_USERNAME/.config/obsidian-todoist-sync/stderr.log</string>
</dict>
</plist>
```