diff --git a/README.md b/README.md
index 57f01a40b76d4189e9a717494d4e9e9e2b900ec3..254bc8560ca2e0c6b688dc19ac30fdab43e40ea9 100644
--- a/README.md
+++ b/README.md
@@ -7,6 +7,22 @@ * List timelines
 * Switch instance from public list in config.json or manual input. Also recent used instance list.
 * All others futures maybe working 50/50
 
+Note about proxy:  
+Proxy by default autodetect i2p and onion (not tested) instances address.  
+If provided main_proxy in config.json is disable i2p and onion instances autodetection.  
+Also: don't forget change connect_protocol_via_main_proxy if set http proxy or any proxy without support https.  
+
+Note about auth:  
+i2p and onion instances may no support (or disabled) OAuth2.  
+Workaround: if instance have clearweb address, make auth and copy-paste token in .auth.json, example:
+```
+{
+  "your.authorized.instance": "xxx",
+  "abc123instance.i2p": "xxx",
+  "abc123instance.onion": "xxx"
+}
+```
+
 Depends:  
 * [jj](http://gitea.phreedom.club/localhost_frssoft/jj)
 * [curl](https://curl.se/)
diff --git a/config.json b/config.json
index 78985ae6116e10516e251bcff417759ecac7fc7b..d68f71dc28d4135f3d4ac9d55d2f7b9319d5ca3e 100644
--- a/config.json
+++ b/config.json
@@ -1,5 +1,7 @@
 {
   "instance": "soc.phreedom.club",
+  "main_proxy": "",
+  "connect_protocol_via_main_proxy": "https",
   "i2p_http_proxy_addr": "http://127.0.0.1:4444",
   "tor_proxy_addr": "socks5://127.0.0.1:9050",
   "max_statuses": 40,
diff --git a/pleroma-cli.sh b/pleroma-cli.sh
index e6c1b7fdff59de7f1f5bdba199666602760c2f09..dcb5339df8a4be73ab0cb36ac9472d3e775ef3ee 100755
--- a/pleroma-cli.sh
+++ b/pleroma-cli.sh
@@ -5,18 +5,22 @@ alias default_auth_browser=links
 
 proxy_init() 
 {
-	if [ $(echo "$instance" | grep -q 'i2p$' ; echo $?) -eq 0 ]; then
+	main_proxy=$(jj -i config.json main_proxy)
+	if [ -n "$main_proxy" ]; then
+		default_connect_protocol=$(jj -i config.json connect_protocol_via_main_proxy)
+		ALL_PROXY="$main_proxy"
+	elif [ $(echo "$instance" | grep -q 'i2p$' ; echo $?) -eq 0 ]; then
 		default_connect_protocol='http'
-		proxy=$(jj -i config.json i2p_http_proxy_addr)
+		ALL_PROXY=$(jj -i config.json i2p_http_proxy_addr)
 	elif [ $(echo "$instance" | grep -q 'onion$'; echo $?) -eq 0 ]; then
 		default_connect_protocol='https'
-		proxy=$(jj -i config.json tor_proxy_addr)
+		ALL_PROXY=$(jj -i config.json tor_proxy_addr)
 	else
 		default_connect_protocol='https'
-		proxy=''
+		ALL_PROXY=''
 	fi
 	export default_connect_protocol
-	export proxy
+	export ALL_PROXY
 }
 proxy_init
 
@@ -48,11 +52,11 @@ 	echo "Instance: $instance"
 	if [ -n "$auth" ]; then
 		default_curl_opt()
 		{
-			curl --proxy "$proxy" -s --compressed -H "Authorization: Bearer $auth" "$@"
+			curl -s --compressed -H "Authorization: Bearer $auth" "$@"
 		}
 		post_request()
 		{
-			curl --proxy "$proxy" -s --compressed -X POST -H "Authorization: Bearer $auth" "$@"
+			curl -s --compressed -X POST -H "Authorization: Bearer $auth" "$@"
 		}
 		echo '+Authorized account+'
 		export default_curl_opt
@@ -60,7 +64,7 @@ 		export post_request
 	else
 		default_curl_opt()
 		{
-			curl --proxy "$proxy" -s --compressed "$1"
+			curl -s --compressed "$1"
 		}
 		export default_curl_opt
 		export post_request=
