Here's how to use it with DNS-over-HTTPS on OS X / MacOS:
brew install dnscrypt-proxy
Change line 25 in /usr/local/etc/dnscrypt-proxy.toml to server_names = ['cloudflare']
sudo brew services restart dnscrypt-proxy
Then change your DNS server to 127.0.0.1 (run Network pref panel, unlock, Advanced, DNS) replies(2):