When HttpTunnelPort is set in torrc (and restart), then this wrap works
clip-cli() {
HTTP_PROXY="http://127.0.0.1:8118" \
HTTPS_PROXY="http://127.0.0.1:8118" \
NO_PROXY="localhost,127.0.0.1" \
/path/to/cli "$@"
}
Maybe we can set the envs directliy in clip-cli using config param.