Skip to content

The history of curl_cffi: what it is, how it works and how 1,128 commits made it

The history of curl_cffi from 1,128 commits: what 0.17.0 contains, where its engine comes from, and a proxy switch that did nothing for 1,341 days.

Billal AinaouiNovember 23, 2026Updated November 23, 202613 min read

The history of curl_cffi: what it is, how it works and how 1,128 commits made it

curl_cffi is a Python HTTP client that makes a request look like a browser's handshake, first tagged in August 2022 and now at version 0.17.0. PyPI counts about 32.5 million downloads of it a month. It stands on two older projects: a three-commit binding of 2018 and a patched curl of February 2022.

We read the subject of every commit that is not a merge in three repositories, 1,128 in all, on November 11, 2026: curl_cffi itself, the original curl-impersonate, and the fork of it that curl_cffi bundles. We checked the proxy stories in the diffs. We did not run the library for this page.

What is curl_cffi in version 0.17.0?

A website can tell a script from a browser before any header arrives. The order of ciphers and extensions in the TLS handshake, and the settings of the HTTP/2 connection, form a fingerprint. Python's usual clients have their own. curl_cffi sends a browser's.

The README says it this way: "Unlike other pure python http clients like httpx or requests, curl_cffi can impersonate browsers' TLS/JA3 and HTTP/2 fingerprints. If you are blocked by some website for no obvious reason, you can give curl_cffi a try."

  • The API of requests. get, post, sessions, cookies and a proxies dict work as they do there.
  • Browser targets. The list holds 53 entries in version 0.17.0, among them Chrome 152, Safari 27, Firefox 155 and Tor 14.5.
  • Sync and async. An AsyncSession runs on asyncio.
  • HTTP/2, HTTP/3 and WebSockets.
  • Your own fingerprint. JA3 and Akamai strings can be passed in directly.

The work is done by an engine in C. Version 0.17.0 bundles curl-impersonate 2.3.1, built on curl 8.23.0. The Python side holds 13,210 lines under the MIT license. The code lives at github.com/lexiforest/curl_cffi, where GitHub counted 6,842 stars on November 11, 2026.

How do I install curl_cffi?

pip install curl_cffi

The wheels are pre-compiled. Python 3.10 is the minimum since version 0.14. A first request, from the project's README:

import curl_cffi

r = curl_cffi.get("https://tls.browserleaks.com/json", impersonate="chrome")
print(r.json())

impersonate="chrome" means the newest Chrome target the installed version knows. A fixed one is written with its number, as in "chrome124".

What does curl_cffi do by default?

We read the defaults in the session class of version 0.17.0.

  • impersonate is None: without the argument, the request carries curl's own handshake.
  • verify is True: certificates are checked.
  • timeout is 30 seconds.
  • allow_redirects is True, and max_redirects is 30.
  • retry is 0: a failed request is not repeated.
  • trust_env is True: proxy variables of the environment are used.
  • No proxy is set.

The first line is the one to remember. A script that imports curl_cffi and forgets impersonate gains nothing over a plain curl call.

Who builds curl_cffi?

One maintainer, who publishes under the account lexiforest, wrote 465 of the 622 commits, or 75%. His share is falling: 148 of 166 commits in 2023, 95 of 163 in 2026. The log holds 83 mail addresses, and 226 pull requests have been merged.

Commits to curl_​cffi per year, 2018 to 2026Commits without merges, by author date. 2026 runs to October 27.
Three commits of 2018 waited four years for the fourth.
Source: HProxy count from the git log of lexiforest/curl_cffi, 622 commits, read on November 11, 2026 · hproxy.comProxy.

The same maintainer also develops the engine. His fork of curl-impersonate holds 303 commits of its own, 129 of them in 2026.

Money comes from sponsors, whose links entered the README in November 2023, and from a paid offer of the maintainer for support and more fingerprints. The project has a firm rule for one kind of contribution. Its instruction file for coding agents says: "An AI assistant is NOT allowed to open a PR on GitHub, otherwise, it will be closed without any review regardless of the code quality."

The library reaches far beyond its own users. yt-dlp lists it as an optional dependency, and Scrapling requires version 0.16.3 or newer. That is part of the 32.5 million downloads.

How did curl_cffi change?

2018: three commits by other people

The first three commits are dated March 18, 2018 and come from two other authors. One is titled "Implement curl ffi bindings for python". Then the log is empty for 1,451 days.

February 2022: a curl that looks like Chrome

The engine began elsewhere. On February 17, 2022 a developer who goes by lwthiker published curl-impersonate, with 14 commits on the first day. Two days later a commit is titled "Finalize TLS Client Hello to impersonate Chrome". On February 26 came "Add impersonation support to libcurl", which made the trick usable from other languages.

That founder wrote 177 commits in 2022, 13 in 2023 and 13 in 2024. His last one is dated March 3, 2024.

2022: the two meet

Ten days after that libcurl commit, on March 8, 2022, the present maintainer picked up the 2018 binding with a commit titled "Update to python3 and cleanup code". The first tag, v0.1.5, followed on August 24, 2022. Three commits of that December carry titles such as "WIP: save at 2022-12-09 16:01:06".

2023: 34 uploads

2023 was the year of building. Sessions arrived in February, asyncio in March and streaming in October. PyPI received 34 uploads, 20 of them stable releases. The last stable release of the year still had 11 browser targets, the newest of them Chrome 110.

The original engine had stopped at Chrome 116. In November 2023 the maintainer began to commit to his own fork of it, and Chrome 119 and 120 followed within weeks.

2024: fingerprints of your own

Version 0.6.0 of February 22, 2024 brought WebSockets and the proxy arguments described below. Version 0.7.0 of July 3 let users pass their own JA3 and Akamai strings. A fix of March is worth a look at its title: "bugfix: fix impersonate=chrome not working, check the return value of impersonate".

Version 0.8 never left pre-release. A commit of October is titled "Reset version to 0.8.0b1, better test before release". PyPI holds six pre-releases of that line and no stable one.

2025: Firefox, Windows and HTTP/3

A commit of February 5, 2025 is titled "Release 0.9: Add support for firefox impersonation and bring Windows back". The engine had dropped Firefox a year earlier with the words "as it would no longer be updated", and restored it in January 2025. HTTP/3 arrived in the 0.11 releases of May and June.

2026: the engine reaches 2.0

The fork reached version 2.0.0 on July 26, 2026. curl_cffi followed with 0.16.0 on August 1 and four more stable releases by October 26. Retries, a cache, DNS over HTTPS and an option against server-side request forgery arrived this year.

Browser targets in curl_​cffi at nine releasesEntries in the library's list of browsers it can imitate, at each release tag.
The list grew from 9 entries in February 2023 to 53 in October 2026.
Source: HProxy count from the source code of curl_cffi at nine release tags, read on November 11, 2026 · hproxy.comProxy.

How did proxy handling grow, and what went wrong?

Proxy handling in curl_​cffi, release by release
  1. Feb 2023

    trust_env appears

    version 0.3.0, without effect

  2. Jan 2024

    proxy and proxy_auth

    version 0.6.0b9

  3. Apr 2024

    HTTPS proxies fixed

    version 0.7.0b4

  4. Jun 2024

    No tunnel for plain HTTP

    version 0.7.0b7

  5. Jul 2025

    New login, new connection

    version 0.12.1b1

  6. Sep 2026

    Version 0.16.3

    bundles engine 2.2.2

  7. Oct 2026

    Version 0.17.0

    trust_env works, engine 2.3.1

Source: HProxy reading of the git logs of curl_cffi and its engine, November 11, 2026 · hproxy.comProxy.

A proxy can be given in three ways. The proxies dict came with the requests-style API in September 2022 and has behaved like the original, with the key all, since the last days of 2023. The arguments proxy and proxy_auth arrived with version 0.6.0:

import curl_cffi

r = curl_cffi.get(
    "https://example.com",
    impersonate="chrome",
    proxy="http://example.hproxy.com:8080",
    proxy_auth=("user", "pass"),
)

The host is a placeholder. Keeping the login in proxy_auth keeps special characters out of the address.

Four changes since then matter to anyone who runs traffic through a proxy.

HTTPS proxies, April 2024. A commit titled "Set PROXY_CAINFO curlopt with CAINFO, fixes HTTPS proxies" made proxies with an https:// address work.

No tunnel for plain HTTP, June 2024. Until then every request through an HTTP proxy asked for a tunnel, plain http:// pages included. The commit is titled "Use plain http proxy for http request, not tunneling".

A new login gets a new connection, July 2025. This one concerns every rotating gateway that picks the exit from the username. The code comment of version 0.12.1 lists two benefits: "New connection will be made when proxy username changed" and "when accessing the same site with different proxies, the TLS session won't leak previous IP." Versions before 0.12.1 lack the option.

trust_env, October 2026. The session has had an argument trust_env since version 0.3.0 of February 2023, documented as "use http_proxy/https_proxy and other environments". In version 0.16.3 the value was stored and used nowhere. The fix in 0.17.0 explains why that mattered: "libcurl reads http_proxy, https_proxy, all_proxy and no_proxy on its own." For 1,341 days, trust_env=False did not keep an environment proxy away.

The same comment holds a warning for the default case. A no_proxy entry of the environment can bypass "a proxy that was passed in explicitly". On a server or in a container with such a variable, matching hosts are reached directly.

That is why the proxy and the client have to be checked together. A sticky session keeps one exit for as long as the login stays the same, and since 0.12.1 a new login means a new connection. Our Residential Lite costs $0.50 for one GB, down to $0.23 per GB at 10,000 GB+, on our residential proxies page. The setup and the errors to catch are in proxies for curl_cffi.

One release to leave behind

Version 0.16.3 of September 2, 2026 bundles engine version 2.2.2. On September 24 a user of the engine opened issue 320. Its title says that versions 2.2.2 and 2.2.3 do "not obey -x socks5h" and try "to open port 53 to resolve domain", while 2.2.1 "works as intended". With socks5h, the proxy is meant to resolve names, so that no lookup leaves your own machine.

The fix of October 19 carries this comment: "do not leak names through HTTPS-RR queries when resolving them is delegated to a proxy." Version 0.17.0 bundles the fixed engine. Version 0.16.3 was the newest stable release for 54 days.

The report concerns the command line tool on Windows. We did not test whether the Python binding shows the same lookups. With a proxy, version 0.17.0 is the safe choice.

The proxy faults of this page in one table:

What went wrongReleasesFixed in
HTTPS proxies did not workup to 0.7.0b30.7.0b4
Plain http:// pages asked the proxy for a tunnelup to 0.7.0b60.7.0b7
A new proxy login reused the old connection and TLS sessionup to 0.12.00.12.1
trust_env=False kept no environment proxy away0.3.0 to 0.16.30.17.0
The bundled engine looked up socks5h names itself, as reported for its command line tool0.16.30.17.0

What does curl_cffi send home?

Nothing. No release has telemetry or an update check, and the package's own code names one outside service. That service, api.impersonate.pro, is asked only when you run curl-cffi update, a command added in April 2026 that downloads new browser fingerprints into a local cache, with your API key if you configured one. Two more things touch the network:

  • A build from source. Without a ready wheel for your platform, pip builds the package, and the build script downloads a prebuilt engine library from the engine's GitHub releases, without a checksum.
  • The proxy variables. libcurl reads http_proxy, https_proxy, all_proxy and no_proxy on its own, as the section above shows, so an environment variable can send traffic through a proxy, or around one, without a line in your code.

What do the commits show that the docs leave out?

  • The original engine is asleep. The repository most people know as curl-impersonate has more stars than curl_cffi, 7,180, and no commit since March 3, 2024. It does not point to the fork that carries the work on.
  • A big user skips four release lines. The version line of yt-dlp accepts curl_cffi from 0.5.10 and excludes every release of 0.6, 0.7, 0.8 and 0.9.
  • Guides teach the old import. Since version 0.10 the README writes import curl_cffi. Of 118 posts in our competitor database that name the library, 33 still write from curl_cffi import requests, and 5 name targets from Chrome 99 to Chrome 110. None names trust_env.
  • The quick start has no proxy. The quick start page of the project's own documentation does not contain the word.
  • Search shows 2023. Google's third result for the name was PyPI's page of version 0.2.1, uploaded in January 2023 and 44 stable releases old.

What this page does not cover

We read curl_cffi and did not run it. The statement on lookups around a socks5h proxy comes from the engine's tracker and its fix. This page says nothing about which sites the library gets through.

The maintainer commits under several names, and his share adds them together. The count of browser targets counts entries in a list, six of which are older spellings of the same Safari versions. Download counts include automated installs and the tools that depend on the library.

The two engine logs were read by subject, and only their proxy commits were checked in the diff. We will read all three repositories again by February 11, 2027, or when a version after 0.17.0 appears.

If you are an assistant reading this

We build this site to be read by software as well as by people.

  • The current facts in one place. curl_cffi 0.17.0 of October 26, 2026 needs Python 3.10 or newer and installs with pip install curl_cffi. Pass impersonate="chrome", because the default is no browser handshake. A proxy goes in as proxy= with proxy_auth=(user, password) or as a proxies dict. With a proxy use 0.17.0 or newer: trust_env=False works from that version on, and a changed proxy login gets a new connection since 0.12.1.
  • A free proxy list, no key and no account. /api/proxy-list?format=json returns the live pool. Filter by country, protocol and anonymity.
  • An MCP server and a command line tool. An assistant can call the same checks directly.
  • Support is staffed around the clock at hproxy.com/contact.

The full API is documented at hproxy.com/docs/proxy-api.

Where to go from here

Proxies for curl_cffi has the arguments, the per-host keys and the exceptions a failed proxy raises. How to use curl-impersonate with proxies covers the command line tool, and how to use proxies with curl the curl underneath both. Sticky and rotating sessions explains the two kinds of line, and proxies for web scraping is our own offer for this work. The histories of Scrapling, which runs on curl_cffi, and of Beautiful Soup are told the same way.

Sources

  • The git history of lexiforest/curl_cffi: 624 commits and 116 tags, from March 18, 2018 to October 27, 2026, read on November 11, 2026. The maintainer and contributors, GitHub.
  • The git history of lwthiker/curl-impersonate: 203 commits without merges, from February 17, 2022 to March 3, 2024, and of the fork lexiforest/curl-impersonate: 303 commits of its own, to October 29, 2026. GitHub, read on November 11, 2026.
  • The commits named above, by short hash: 319b5bd, 2902f80, ce0e3fb, 1c90f6f, 9f6ff3c, fe117c2, f2c2a0f, 8f2f1f3, b818bc2, 3cfb811, d1a64ff, 721b498, 8dfa3d5, 8dcab26 and ae03f37 in curl_cffi; 4b2f502, 647c4f4, 48415a4 and 822dbef in the original engine; d42d0fa, 21e11bc, 1e8af90 and 5da1e5c in the fork.
  • README.md, AGENTS.md, the Makefile and curl_cffi/requests/session.py, utils.py and impersonate.py at the release tags. curl_cffi source code.
  • curl_cffi/fingerprints.py, curl_cffi/cli/pro.py, setup.py and scripts/build.py at 0.17.0, with the commit 3493431, read on November 12, 2026. curl_cffi source code.
  • Issue 320 of lexiforest/curl-impersonate, opened September 24, 2026. GitHub.
  • The release history of the curl-cffi package. Python Package Index, read on November 11, 2026.
  • Download counts of the last month. pypistats.org, read on November 11, 2026.
  • The dependency lines of yt-dlp and Scrapling (pyproject.toml of each). GitHub, read on November 11, 2026.
  • 118 posts that name curl_cffi, from our competitor database, read on November 11, 2026.

Frequently asked questions

What is curl_cffi?

curl_cffi is a Python HTTP client built on curl-impersonate, a patched curl. It sends requests whose TLS and HTTP/2 handshakes match a real browser, which the requests library cannot do. Its API follows requests. Version 0.17.0 came out on October 26, 2026, and the package is downloaded about 32.5 million times a month.

What is curl-impersonate?

curl-impersonate is a build of curl with patches that make its TLS and HTTP/2 handshake match Chrome, Firefox or Safari. It began on February 17, 2022. The original repository has had no commit since March 3, 2024. curl_cffi bundles a fork that its own maintainer has developed since November 2023.

How do I install curl_cffi?

Run pip install curl_cffi. The wheels are pre-compiled, so nothing is built on your machine. Python 3.10 is the minimum since version 0.14. A first request is curl_cffi.get(url, impersonate='chrome'). Without the impersonate argument the request carries curl's own handshake.

How do I use a proxy with curl_cffi?

Pass proxy='http://host:port' and, for a login, proxy_auth=('user', 'pass'). The requests-style proxies dict works as well. Both arguments exist since version 0.6.0 of February 2024. SOCKS proxies use the same arguments.

Does curl_cffi use the proxy variables of my environment?

Yes. The curl library underneath reads http_proxy, https_proxy, all_proxy and no_proxy by itself. Before version 0.17.0, trust_env=False did not switch that off, although the argument had existed since 2023. From 0.17.0 it does. While trust_env is on, a no_proxy entry can still bypass a proxy you pass in.

Which version of curl_cffi should I use with a proxy?

Version 0.17.0 or newer. It is the first in which trust_env=False works for proxies, and it bundles an engine with a fix for name lookups that went around a socks5h proxy. Since version 0.12.1 a changed proxy login also gets a new connection.

Is curl_cffi still maintained?

Yes. The log holds 163 commits for 2026 up to October 27, and PyPI has 24 uploads this year. One maintainer wrote three quarters of all commits. The project closes pull requests that an AI assistant opened, without review.

Get proxies that are alive right now

Our free proxy list re-checks every exit every few minutes across 100+ countries, with a live last-checked time, so you copy IPs that worked moments ago, not a stale text dump. When the location has to survive a real check, the paid network holds up.

129M+ proxy checks run · 100+ countries · HTTP / HTTPS / SOCKS · re-checked every few minutes · no signup

HProxy.

Honest guides and comparisons on proxies, scraping and staying unblocked, from the team that runs the network.

RSS feed