Proxy Configuration

PlatformIO Core uses Python’s underlying requests library for HTTP requests. You will need to define a standard environment variable (HTTP_PROXY, HTTPS_PROXY, or ALL_PROXY) depending on your proxy server, and disable the proxy server certificate verification setting enable_proxy_strict_ssl to false.

See other proxy and SSL configuration environment variables in the official Requests Proxies documentation.


# Disable proxy server certificate verification
$ pio settings set setting_enable_proxy_strict_ssl false

# or using global environment variable

# Configure proxy server

# Unix
$ export HTTP_PROXY="HTTP_PROXY=http://user:pass@"
# without authentication
$ export HTTPS_PROXY=""
$ export ALL_PROXY="socks5://"

# Windows
set HTTP_PROXY="HTTP_PROXY=http://user:pass@"