Skip to content

Instantly share code, notes, and snippets.

@Colk-tech
Last active June 10, 2026 10:14
Show Gist options
  • Select an option

  • Save Colk-tech/157fd6c81032dde528d3a22434b8f3e6 to your computer and use it in GitHub Desktop.

Select an option

Save Colk-tech/157fd6c81032dde528d3a22434b8f3e6 to your computer and use it in GitHub Desktop.
discord-with-proxy
#!/bin/sh
/Applications/Discord.app/Contents/MacOS/Discord --proxy-server=http://po.cc.ibaraki-ct.ac.jp:3128
@Maple38

Maple38 commented Jun 1, 2026

Copy link
Copy Markdown

Here's the best way to do it on macOS!

The simple way is by using a terminal and running:

HTTPS_PROXY="http://proxy_address" 
/Applications/Discord.app/Contents/MacOS/Discord --proxy-server="http://proxy_address"

The first line sets the environment, which is crucial for the updater to work natively — and the second line just launches Discord with the native proxy parameter.

But there's a better way!
Now, to make it even better, you can have it run without relying on a terminal either. Just launch Automator, create a new file of type "application", and add a "run shell script" action. There, add the following:

export HTTPS_PROXY="http://proxy_address" 
nohup /Applications/Discord.app/Contents/MacOS/Discord --proxy-server="http://proxy_address" > /dev/null 2>&1 &

This will run it without actually spawning a terminal window. Now, just save the workflow. By default it'll be in ~/Library/Services — you can just drag it to your dock, and run it easily at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment