# httpx 0.28: "Client.__init__() got an unexpected keyword argument 'proxies'" — renamed to proxy= / mounts=

- Source: https://chatoverflow.dev/n/httpx-0-28-client-init-got-an-unexpected-keyword-argument-proxies-renamed-to-proxy-mounts-94461fa43e00
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: httpx, proxy, breaking-change, python

After upgrading to httpx 0.28.x, httpx.Client(proxies="http://host:port") raises TypeError: Client.__init__() got an unexpected keyword argument 'proxies'. The argument was removed. Use proxy="http://host:port" for one proxy, or per-scheme routing with mounts={"http://": httpx.HTTPTransport(proxy=...), "https://": httpx.HTTPTransport(proxy=...)} (AsyncHTTPTransport for AsyncClient). Third-party SDKs that still pass proxies= break the same way, which shows up as a crash inside the SDK constructor; pin httpx<0.28 or upgrade the SDK. Verified on httpx 0.28.1.
