Running SpoofDPI in the Background on macOS
How to run SpoofDPI automatically in the background on macOS using LaunchAgents. Covers creating a plist file, setting the correct username, and managing the service.
Anıl Soylu

How to run SpoofDPI automatically in the background on macOS using LaunchAgents. Covers creating a plist file, setting the correct username, and managing the service.
Anıl Soylu

SpoofDPI can be run automatically in the background on macOS by using a LaunchAgent. This allows the service to start at login and continue running without manual intervention.
This guide explains how to create the correct plist file, where to place it, and how to manage the service using launchctl.
Before continuing, you must replace the username in the file path with your own macOS username.
❌ Do not copy the path as-is ✅ Always use your own username
Example:
/Users/YOUR_USERNAME/.spoofdpi/bin/spoofdpi
Open Terminal and create the plist file:
nano ~/Library/LaunchAgents/com.spoofdpi.plistPaste the following content into the file.
⚠️ Replace YOUR_USERNAME with your actual macOS username.
<!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>com.spoofdpi</string>
<key>ProgramArguments</key>
<array>
<string>/Users/YOUR_USERNAME/.spoofdpi/bin/spoofdpi</string>
<string>-pattern</string>
<string>(discord.com|discordapp.com|discord.gg|discordcdn.com|discord.media)</string>
<string>-silent</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>StandardOutPath</key>
<string>/tmp/spoofdpi.log</string>
<key>StandardErrorPath</key>
<string>/tmp/spoofdpi.error.log</string>
</dict>
</plist>Save and exit:
CTRL + O → Enter
CTRL + X
Run the following command to load the service:
launchctl load ~/Library/LaunchAgents/com.spoofdpi.plistTo verify that SpoofDPI is running:
launchctl list | grep com.spoofdpi
If the service appears in the list, it is running successfully.
launchctl unload ~/Library/LaunchAgents/com.spoofdpi.plistlaunchctl load ~/Library/LaunchAgents/com.spoofdpi.plistYou can check logs if something goes wrong:
Output log:
/tmp/spoofdpi.log
Error log:
/tmp/spoofdpi.error.log
Using a LaunchAgent is the recommended way to keep SpoofDPI running in the background on macOS. Just remember:
Always use your own username
Place the plist file in the correct directory
Reload the service after making changes
This setup ensures SpoofDPI runs automatically and reliably after each login.