Skip to main content

impersonate-proxy

pypi python build tests license impersonate-proxy logo

HTTP/HTTPS proxy that impersonates browser TLS fingerprints using curl_cffi that can be effective in avoiding blocks against non-browser clients.

Design Philosophy

impersonate-proxy does not attempt to manually re-implement browser headers or replicate curl-impersonate in Python. Instead, it acts as a lightweight adapter:

  • Strips conflicting non-browser client headers (e.g. User-Agent: python-httpx) so native curl-impersonate defaults shine through.
  • Preserves request payload, auth, and shape semantics (Cookie, Authorization, Host, Sec-Fetch-* for XHR).
  • Delegates all browser TLS fingerprinting and header generation directly to curl-impersonate via curl_cffi.
  • Overrides curl_cffi's residual tells with a curated, platform-coherent fingerprint — full-build User-Agent, complete Sec-CH-UA family, and canonical HTTP/2 header order for Chrome targets, UA-only for Firefox targets — enabled by default (--no-fingerprint-real to disable).

Pypi: pypi.org/project/impersonate-proxy

GHCR: github.com/psaintelligence/impersonate-proxy/pkgs/container


Quick Start (Docker)

Spin up the proxy container:

docker run --rm -p 8899:8899 \
  -v /tmp/impersonate-certs:/home/impersonate/.config/impersonate-proxy \
  ghcr.io/psaintelligence/impersonate-proxy:latest

Once started, configure your client to trust the CA and use the proxy:

# Export the generated CA cert to trust the proxy
export SSL_CERT_FILE=/tmp/impersonate-certs/ca.crt

# Issue request through the proxy
curl --silent -x http://127.0.0.1:8899 https://tls.browserleaks.com/json

Quick Start (pip / uv)

Install and start the proxy locally:

# Install via pipx from pypi
pipx install impersonate-proxy

# Or install via uv from source
uv pip install git+https://github.com/psaintelligence/impersonate-proxy.git

# Start the proxy (default: 127.0.0.1:8899)
impersonate-proxy

Documentation

Full guides and configuration details are available at psaintelligence.github.io/impersonate-proxy.

Metadata

Release files for impersonate-proxy 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for impersonate-proxy 0.6.2
File Size Uploaded
impersonate_proxy-0.6.2.tar.gz 194.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for impersonate-proxy 0.6.2
File Interpreter ABI Platform
impersonate_proxy-0.6.2-py3-none-any.whl Python 3 none any Details

Total release size: 223.6 kB

Release files / impersonate_proxy-0.6.2.tar.gz

Download URL impersonate_proxy-0.6.2.tar.gz
Size 194.8 kB
Tags Source
SHA-256 checksum
How to use checksums
88e708dfd7c9aa25ddd92b3c8d0c8ed0ab6b148bc8297bf39c2306b4e9326ddd
BLAKE2b-256 checksum
How to use checksums
81c3a7a45122ce72ad90337b1d6b04f76b9e3c76bb40a2c7ca7fee50c2bd5591
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / impersonate_proxy-0.6.2-py3-none-any.whl

Download URL impersonate_proxy-0.6.2-py3-none-any.whl
Size 28.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e20e1b4ce5c26185fbcccf41d8d6dfd745c44a2029fdbe6ee51133e42859463b
BLAKE2b-256 checksum
How to use checksums
f693d3b85a097fc5bf73e699dff803544c2fae8dfde07ccafb865916cf4f21ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.6.2 This release

2 release files

0.5.1

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page