chromedp is a Go package that drives Chrome through the DevTools protocol, with no separate driver program. Kenneth Shaw started it on January 24, 2017, and it went through two rewrites, in 2019 and in October 2026. The second one changed almost every public name, so older chromedp code no longer builds.
Its main branch holds 865 commits that are not merges. On November 11, 2026 we read the subject of every one and checked each dated statement below against the repository. The proxy code, the defaults and the browser contexts were read at the release tags. We did not run chromedp for this page.
What is chromedp in version 0.23.0?
You give chromedp a context. It starts a browser or connects to one, sends it commands from the DevTools protocol, and hands you the results as Go values. The README of the head puts it in two sentences: "Package chromedp drives browsers that speak the Chrome DevTools Protocol from Go. It needs no external driver."
- No driver. Selenium talks to a driver program that talks to the browser. chromedp talks to the browser itself, the way Puppeteer does in Node.js.
- One dependency. The protocol's types come from
cdproto, a module the same project generates. Everything else is Go's standard library. - Two ways in. An exec allocator starts a browser and talks to it through a pipe. The package
remoteconnects to a browser that is already running, through a WebSocket. - Contexts. Each chromedp context drives one tab, and a browser context gives a set of tabs its own cookies and storage, like a private window.
- MIT license.
GitHub shows 13,366 stars and 890 forks. The Go team's package site counts 2,402 known modules that import chromedp, and Keyword Planner counts 1,300 searches a month for its name.
How do I install chromedp?
The module needs Go 1.25 or newer:
go get github.com/chromedp/chromedp@v0.23.0
chromedp needs a browser on the machine. On Linux it looks for headless_shell, then Chromium, then Google Chrome in four channels. On macOS it tries Chromium first and Chrome second. On Windows it tries Chrome and, since October 4, 2026, falls back to Edge.
This is the README's first example in the current API, with a placeholder address:
package main
import (
"context"
"fmt"
"log"
"github.com/chromedp/chromedp"
)
func main() {
ctx, cancel := chromedp.NewContext(context.Background())
defer cancel()
if err := chromedp.Do(ctx, chromedp.Navigate("https://example.hproxy.com")); err != nil {
log.Fatal(err)
}
title, err := chromedp.Run(ctx, chromedp.Title())
if err != nil {
log.Fatal(err)
}
fmt.Println(title)
}
chromedp.Do runs actions that return nothing. chromedp.Run runs one action and returns its value. Code from before October 2026 looks different, and a chapter below explains why it stops building.
What does chromedp do by default?
Read from the allocator code of version 0.23.0.
- Headless. The browser starts with
--headless, hidden scrollbars and muted audio.VisibleWindow, added in October 2026, opens a window. - 25 default entries, most of them after Puppeteer. Since version 0.3.0 of May 2019 the default list carries the comment "After Puppeteer's default behavior". It turns off background networking, sync, the crash reporter, extensions and popup blocking, and it sets
enable-automation. chromedp's own code describes that entry as "the infobar that says that software controls the browser". - No sandbox as root. When the program runs as root, chromedp adds
--no-sandboxby itself, because Chrome refuses to start as root without it. - A fresh profile. Each browser gets a new profile in a temporary folder, removed when it closes.
- A pipe, no port. Since version 0.17.0 chromedp talks to the browser it started through a pipe. No debugging port is open on the machine.
- Your whole environment. The browser inherits every environment variable of the Go program, secrets included.
NoInheritEnv, added on October 4, 2026, starts it with only the variables you list.
Who builds chromedp?
- Kenneth Shaw
- Daniel Martí
- Zeke Lu
- Everyone else
Kenneth Shaw wrote the first commit and 432 of all 865. Daniel Martí wrote 260, almost all in 2019 and 2020. Zeke Lu wrote 78 between 2021 and 2023. In all, 56 names appear.
The quietest years came just before the busiest. chromedp had 8 commits in 2024 and 20 in 2025. Then Shaw made 53 commits on October 3, 2026 and 84 on October 4.
Those commits say how they were made. Every commit from October 3 to November 6, 2026 but one names an AI model as co-author, 155 of 156. No commit before October 3 does. The same work added an AGENTS.md with rules for coding agents, among them: "Stage changes for review. Commit and push only when the maintainer says so."
How did chromedp change in nine years?
2017: one author and generated code
The first commit already drove Chrome through the DevTools protocol. The protocol's types were generated from Chrome's own description of the protocol and lived in the same repository.
Five days later came chromedp-proxy, a tool for logging those protocol messages; the proxy chapter explains the name. On December 27, 2017 a commit titled "Splitting repositories" moved the generated code out. It has lived in the module cdproto since February 2018.
2018: a quiet year and the first tag
23 commits. The first tag, v0.1.0, came on July 4, 2018. A commit of July 13 cleaned up the runner API "prior to package rewrite".
2019: the first rewrite
Daniel Martí began it on March 5, 2019 with the subject "start the chromedp v2 refactor". He routed all communication through the browser and split the work into allocators: one starts a browser, and the RemoteAllocator of April 21 connects to a running one.
Version 0.2.0 shipped on April 22, 88 commits after the release before it. In May the defaults followed Puppeteer and the WebSocket library changed to gobwas/ws. Martí wrote 216 of the 263 commits of 2019.
2020 to 2023: frames, polling and browser contexts
The library grew by single features:
- January 2020. A graceful close of the browser through
Cancel. - June 2020.
RunResponseto watch a navigation, and the first queries inside an iframe. - March 2021.
Poll, modeled on Puppeteer'swaitForFunction. - April and May 2021.
FullScreenshot, andModifyCmdFuncto change the browser's command. - March 2023. Browser contexts, in version 0.8.8.
Daniel Martí wrote 38 of the 51 commits of 2020. Zeke Lu wrote 45 of the 85 commits of 2021, among them Poll, and later the browser contexts.
2024 to September 2026: upkeep
Eight commits in 2024, twenty in 2025 and four in 2026 up to September. Most of them updated the protocol module. A commit of February 2025 switched to JSON v2, and one of August 2025 fixed the GPU flags.
October 2026: the second rewrite
On October 3 and 4, 2026 chromedp moved to a typed protocol module and an API built on Go generics. Actions return their value, events arrive as iterators and selectors have types. The same two days brought the pipe, a visible window, an option to keep the browser open and the move of the WebSocket code into a module of its own, remote. On October 11 remote became a package of the main module, with a WebSocket client of its own in place of gobwas/ws.
The Go version moved too. The minimum was Go 1.26 in July. A commit of October 3 raised it to 1.27, and one of October 6 brought it down to 1.25.
Eight releases followed in eight days, from v0.17.0 on October 4 to v0.21.0 on October 11. Four more came by November 6: v0.21.1, v0.22.0, v0.22.1 and v0.23.0.
The project's migration guide lists every change from version 0.16.0 to 0.21.0 in eleven parts. The rule that breaks most code: Run(ctx, actions...) became Run[T](ctx, action) for one action that returns a value, and Do(ctx, steps...) for the rest. Tasks and ActionFunc are gone. Our Go scraping tutorial built a program in the old style against v0.21.0 on October 12, and Go stopped with "too many arguments in call to chromedp.Run".
How big did the code get?
- Library
- Tests
The first rewrite made the library smaller: 4,514 lines at v0.1.0 of July 2018, 3,490 at v0.2.0 of April 2019. It then grew slowly, to 5,143 lines at v0.9.0 of March 2023 and 5,290 at v0.16.0 of July 2026.
The second rewrite doubled it in about a month. Version 0.17.0 of October 4 has 7,318 lines and 0.23.0 of November 6 has 11,519. The tests grew faster, from 6,277 lines to 14,816.
How did proxy handling grow, and what went wrong?
Jan 2017
First commit
a Proxy switch for Chrome
Feb 2017
PAC option
from a contributor
Jul 2018
Version 0.1.2
ProxyServer, PAC deleted
Jul 2020
Pull request 663
proxy login offered
May 2021
Version 0.7.3
remote lookup follows HTTP_PROXY
Jun 2021
Login example
outside the library
Mar 2023
Version 0.8.8
a proxy per browser context
Oct 2026
Version 0.17.0
the context option changes form
First, the name chromedp-proxy
Search Google for "chromedp proxy" and the first result on November 11, 2026 was the repository chromedp-proxy. Its README of January 29, 2017 calls it "a simple cli tool to log/intercept Chrome Debugging Protocol sessions". It sits between a client and Chrome on ports 9223 and 9222 and writes down the messages. It does nothing for web traffic.
The switch
The first commit had a function Proxy that passed Chrome's --proxy-server. A contributor added a PAC option in February 2017. A commit of July 13, 2018 renamed Proxy to ProxyServer and deleted the PAC option, and no later commit brought it back. Since the rewrite of 2019, ProxyServer is an allocator option:
opts := append(chromedp.DefaultExecAllocatorOptions[:],
chromedp.ProxyServer("http://example.hproxy.com:8080"),
)
ctx, cancel := chromedp.NewExecAllocator(context.Background(), opts...)
defer cancel()
ctx, cancel = chromedp.NewContext(ctx)
defer cancel()
The host is a placeholder. The address carries no username or password. Chromium's description of the switch has no place for them, and chromedp's own example says of this line that "the user name and the password are not set here". One local detail: Chrome skips the proxy for addresses on the same machine, which the example changes with --proxy-bypass-list=<-loopback> when it tests against a local server.
The login: always outside the library
On July 15, 2020 an outside contributor opened pull request 663, "Added ability to authentication proxies". Daniel Martí asked for a test with a local proxy. On June 1, 2021 Zeke Lu wrote: "I think it's not a good idea to implement it in chromedp". He wrote an example instead, and the pull request was closed on June 7, 2021, the day the example arrived in the separate repository chromedp/examples.
That is still the arrangement. No commit in chromedp has ever added code that answers a proxy's login, and the README of the head points to the example. Its method, shortened here to the current API:
if err := chromedp.Do(ctx); err != nil { // start the browser first
log.Fatal(err)
}
lctx, lcancel := context.WithCancel(ctx)
defer lcancel()
paused := chromedp.Events(lctx, fetch.RequestPaused)
authRequired := chromedp.Events(lctx, fetch.AuthRequired)
go func() {
for ev, err := range paused {
if err != nil {
return
}
_, _ = chromedp.Call(ctx, fetch.ContinueRequest, fetch.ContinueRequestParams{RequestID: ev.RequestID})
}
}()
go func() {
for ev, err := range authRequired {
if err != nil {
return
}
if ev.AuthChallenge.Source != fetch.AuthChallengeSourceProxy {
continue
}
_, _ = chromedp.Call(ctx, fetch.ContinueWithAuth, fetch.ContinueWithAuthParams{
RequestID: ev.RequestID,
AuthChallengeResponse: &fetch.AuthChallengeResponse{
Response: fetch.AuthChallengeResponseResponseProvideCredentials,
Username: "user",
Password: "pass",
},
})
}
}()
if _, err := chromedp.Call(ctx, fetch.Enable, fetch.EnableParams{HandleAuthRequests: new(true)}); err != nil {
log.Fatal(err)
}
The login is a placeholder, and fetch is github.com/chromedp/cdproto/fetch. While the fetch domain is on, the protocol pauses every request "until client calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth", so the first loop continues each one. new(true) needs Go 1.26; on Go 1.25 the migration guide suggests a small ptr helper. The full example turns the fetch domain off after the first answer, with the note that Chrome keeps the login for the rest of the browser's life.
One proxy per browser context
Since version 0.8.8 of March 2023, chromedp can open a tab in a new browser context. The protocol's parameters for a new context have a field ProxyServer, described as "similar to the one passed to --proxy-server". So one browser can hold several contexts, each with its own proxy:
for _, proxy := range []string{"http://example.hproxy.com:8001", "http://example.hproxy.com:8002"} {
pctx, pcancel := chromedp.NewContext(ctx, chromedp.WithNewBrowserContext(
func(p *target.CreateBrowserContextParams) { p.ProxyServer = proxy },
))
// run the actions for this proxy with pctx
pcancel()
}
The hosts are placeholders, target is github.com/chromedp/cdproto/target, and ctx must already have started its browser, because chromedp refuses a new browser context in the first one. chromedp.Call sends a command to the tab of its context, so with a login each new tab needs the fetch code above.
This is the form since version 0.17.0. Up to 0.16.0 the option returned the parameters, and the same line read return p.WithProxyServer(proxy). The October rewrite removed the With methods, so code in the old form stops building. chromedp's own code and README never show the proxy field. We read it in the protocol module.
A remote browser: two steps, two answers
The package remote connects to a browser that runs elsewhere, for example in a container. Given an address like http://browser:9222, it first asks the browser for its WebSocket address at /json/version, then opens the WebSocket. An address that already names the browser's WebSocket skips the first step.
The two steps treat proxy settings differently. Since version 0.7.3 of May 2021 the first step uses Go's default HTTP client, which in Go's words "uses HTTP proxies as directed by the environment variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY". Only localhost and loopback addresses are spared. The WebSocket never followed those variables: the old library dialed directly, and the client of October 2026 sets no proxy on purpose and has a test for it.
So on a machine with HTTP_PROXY set, the lookup of a browser in a container goes to the proxy, and the connection after it does not. chromedp turns the browser's name into an IP address before the lookup, so NO_PROXY has to name that address or its network. The other way out is the option NoModifyURL with the browser's full WebSocket address.
A certificate switch with a proxy comment
Since version 0.7.4 the option IgnoreCertErrors has carried a comment that ties it to proxies. At the head it reads: "Use it to access an HTTPS website through a proxy." An ordinary proxy needs no such switch. For an HTTPS site it builds a tunnel, which RFC 9110 describes as "blind forwarding of data, in both directions", so the site's own certificate arrives unchanged. Certificate errors come from a proxy that opens the traffic, and the switch then turns off Chrome's certificate checks for every site. Our page on certificate errors behind a proxy covers the causes.
What works today
With the fetch code above, our HTTP proxy lines work in chromedp's browser, the login included. Our Residential Lite costs $0.50 for one GB, down to $0.23 per GB at 10,000 GB+, on our residential proxies page.
Whatever you set up, check once that the traffic arrives. Load a page that shows the caller's address, or watch the proxy's usage counter move.
The faults, by release
| What went wrong | From | Until |
|---|---|---|
| No proxy login in the library | first commit | open at 0.23.0 |
| PAC option deleted | 0.1.2 | open at 0.23.0 |
| Remote lookup and dial disagree on proxies | 0.7.3 | open at 0.23.0 |
| Certificate switch tied to proxies | 0.7.4 | open at 0.23.0 |
What does chromedp send home?
Nothing of its own. The code of the head has no telemetry, and every fixed outside address in the library is a link inside a comment. A program that imports chromedp talks to the browser it starts or the browser it reaches.
Two files in the repository do download. kb/gen.go fetches Chromium's key tables and device/gen.go fetches Puppeteer's list of devices. Both carry //go:build ignore: the maintainers run them with go generate, and they never run inside your program.
What Chrome itself sends is a separate question. chromedp's default list switches off several of Chrome's background services, among them background networking, sync and the crash reporter. We read those flags and did not watch Chrome's traffic.
What do the commits show that the docs leave out?
- A default did nothing for seven years. From version 0.3.0 of May 2019, the defaults passed
site-per-processto--disable-features. The decision record of October 4, 2026 explains that Chrome matches feature names with case, thatsite-per-processis the name of a switch, and that "the option has never worked". A pull request wanted the real name,SitePerProcess, which would have turned site isolation off for every user. The maintainer removed the dead name and kept site isolation on, in version 0.18.0. - The rewrite closed the waiting queue. Twelve pull requests were open on October 2, 2026, the oldest from May 2025. All twelve were closed unmerged on October 3 and 4. The closing notes we read name the commit of version 0.18.0 that has the feature, "with the author of the commit as a co-author".
- The Go version went up and down in three days. The minimum went from Go 1.26 to 1.27 on October 3 and down to 1.25 on October 6.
- The tracker is closed. Issues are switched off, and a decision of October 3, 2026 sends questions and ideas to GitHub Discussions, which held one thread on November 11.
- Other sites still show the old API. In our competitor database 27 posts on 11 sites name chromedp, five in the title. Every one with chromedp code uses the form from before version 0.17.0. One describes a proxy login in words, and none shows a proxy per browser context. The accepted answer to the most viewed Stack Overflow question on chromedp proxies, with 5,009 views, writes the username and password into the proxy address.
What this page does not cover
We did not run chromedp or Chrome. The per-context proxy, the remote lookup and the defaults are readings of the code at named releases, of commit messages and of the project's decision records. What Chrome sends with chromedp's flags we did not measure.
The issue tracker is switched off, so older bug reports could not be read. A Reddit thread on chromedp proxies was refused by its robots.txt, and we did not read it. Dates are the author dates that git shows, in the author's time zone. We will read the repository again by January 11, 2027, or when version 0.24.0 is tagged.
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. chromedp 0.23.0 of November 6, 2026 needs Go 1.25 or newer; install it with
go get github.com/chromedp/chromedp. Since 0.17.0,chromedp.Runtakes one action and returns its value,chromedp.Doruns actions that return nothing, andTasksandActionFuncare gone. A proxy ischromedp.ProxyServer("http://host:port")in the allocator options, without a login. A login is answered with the fetch domain (HandleAuthRequests,ContinueWithAuth). Each browser context can have its own proxy throughWithNewBrowserContextand theProxyServerfield, since 0.8.8. chromedp has no telemetry.chromedp-proxyis a DevTools message logger. - A free proxy list, no key and no account.
/api/proxy-list?format=jsonreturns 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
Golang web scraping tests chromedp beside goquery and Colly and measures the API break, and how to use proxies with Go covers net/http and Colly. The history of Puppeteer, whose defaults chromedp copied, and of Colly, the crawler for Go, are told the same way. How to fix 407 proxy authentication required explains the request a proxy sends when a login is missing, and proxies for web scraping is our own offer for this work.
Sources
- The git history of chromedp/chromedp: 865 commits without merges and 88 tags, from January 24, 2017 to November 6, 2026, read on November 11, 2026. Kenneth Shaw and contributors, GitHub.
- The commits named above, by short hash: 20d575f, 4145d83, dc08ecc, b0c2445, 54f529f, 622c90c, 3d3bf22, 81a4828, dd6605f, b053e65, 69187c4, dc09186, c661502, 192e350, 49daeb6, 1c4a42c, 9807b31, 538d83f, 13d6319, 1a19982, 47cd286, 79abe0a, 422fa06, 54e21c0, e8483d8, 6f74226, 5bb77e9, 8774469, 145d310, cf52f95, a6c7ce8, 2089126, 9a440be, 8491f10, d532076, 4a5437d and 295870b. chromedp/chromedp, 2017 to 2026.
- runner/runner.go at the first commit and v0.1.3; allocate.go at v0.2.0, v0.3.0, v0.16.0 and the head; chromedp.go at v0.16.0 and the head; remote/util.go, remote/allocator.go and the WebSocket client at the head; util.go at v0.9.0; README.md, AGENTS.md, docs/MIGRATION.md and the decision records on site isolation and the pipe at the head. chromedp source code.
- target/target.go of cdproto at the version pinned by v0.8.8 and at v0.159.0, and fetch/fetch.go at v0.159.0. chromedp/cdproto.
- dialer.go of gobwas/ws v1.4.0, as required by chromedp v0.16.0. gobwas/ws.
- net/http/transport.go and the vendored httpproxy package of Go 1.25.0. The Go project.
- Pull request 663, the 273 pull requests and the closing notes of pull requests 1567, 1611 and 1631; the proxy example and its commits. GitHub API and chromedp/examples, read on November 11, 2026.
- The repository's numbers. GitHub API, read on November 11, 2026. The importing modules. pkg.go.dev, read on November 11, 2026.
- "Network Settings", the format of --proxy-server. The Chromium Projects, read on November 11, 2026. RFC 9110, HTTP Semantics, section 9.3.6, CONNECT. IETF, June 2022.
- Stack Overflow question 57460884 and its answers, and the tag chromedp. Stack Exchange API, read on November 11, 2026.
- Two Google result pages, Keyword Planner volumes and 27 posts that name chromedp from our competitor database, read on November 11, 2026.





