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.7.1

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.7.1
File Size Uploaded Provenance Actions
impersonate_proxy-0.7.1.tar.gz 216.5 kB With provenance Details for impersonate_proxy-0.7.1.tar.gz

Built distribution (wheel)

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

Total release size: 251.6 kB

Release files / impersonate_proxy-0.7.1.tar.gz

Download URL impersonate_proxy-0.7.1.tar.gz
Size 216.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6ae850a2250912945b74d4c913d5c868b3945cafd480dae23e7cae678d100c3c
BLAKE2b-256 checksum
How to use checksums
9b89bb85f0dcf7340c3e17079b5ffb1fc0a3351d9522a533a7cb30ffd30fdad7
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 Nov 26, 2026.

Transparency log

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

Download URL impersonate_proxy-0.7.1-py3-none-any.whl
Size 35.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee45a052efa416f360acfa9caa2c25510834cee7aef26d8d0c0473f7be9a8b2a
BLAKE2b-256 checksum
How to use checksums
e3b44b1396547df3049336dc63a024d166bb0898990abda43d1029137aae23f0
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 Nov 26, 2026.

Transparency log

Security for impersonate-proxy 0.7.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for impersonate_proxy-0.7.1.tar.gz

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 Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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