patchright-cli 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,71 @@
1
+ name: Build & Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ permissions:
9
+ contents: write
10
+
11
+ jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - name: Install uv
18
+ uses: astral-sh/setup-uv@v4
19
+
20
+ - name: Set up Python
21
+ run: uv python install 3.12
22
+
23
+ - name: Build package
24
+ run: uv build
25
+
26
+ - name: Upload artifacts
27
+ uses: actions/upload-artifact@v4
28
+ with:
29
+ name: dist
30
+ path: dist/
31
+
32
+ publish:
33
+ needs: build
34
+ runs-on: ubuntu-latest
35
+ environment: pypi
36
+ permissions:
37
+ id-token: write
38
+ steps:
39
+ - name: Download artifacts
40
+ uses: actions/download-artifact@v4
41
+ with:
42
+ name: dist
43
+ path: dist/
44
+
45
+ - name: Install uv
46
+ uses: astral-sh/setup-uv@v4
47
+
48
+ - name: Publish to PyPI
49
+ run: uv publish
50
+ env:
51
+ UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
52
+
53
+ release:
54
+ needs: build
55
+ runs-on: ubuntu-latest
56
+ permissions:
57
+ contents: write
58
+ steps:
59
+ - uses: actions/checkout@v4
60
+
61
+ - name: Download artifacts
62
+ uses: actions/download-artifact@v4
63
+ with:
64
+ name: dist
65
+ path: dist/
66
+
67
+ - name: Create GitHub Release
68
+ uses: softprops/action-gh-release@v2
69
+ with:
70
+ files: dist/*
71
+ generate_release_notes: true
@@ -0,0 +1,7 @@
1
+ __pycache__/
2
+ *.pyc
3
+ .venv/
4
+ .patchright-cli/
5
+ *.egg-info/
6
+ dist/
7
+ build/
@@ -0,0 +1,7 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.11.12
4
+ hooks:
5
+ - id: ruff
6
+ args: [--fix]
7
+ - id: ruff-format
@@ -0,0 +1,191 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by the Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ Copyright 2026 AhaiMk01
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
@@ -0,0 +1,311 @@
1
+ Metadata-Version: 2.4
2
+ Name: patchright-cli
3
+ Version: 0.1.0
4
+ Summary: Anti-detect browser automation CLI using Patchright (undetected Playwright fork)
5
+ Project-URL: Homepage, https://github.com/AhaiMk01/patchright-cli
6
+ Project-URL: Repository, https://github.com/AhaiMk01/patchright-cli
7
+ Project-URL: Issues, https://github.com/AhaiMk01/patchright-cli/issues
8
+ Author: zpahai
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: anti-detect,automation,browser,cli,patchright,playwright,scraping
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Internet :: WWW/HTTP :: Browsers
22
+ Classifier: Topic :: Software Development :: Testing
23
+ Requires-Python: >=3.10
24
+ Requires-Dist: click
25
+ Requires-Dist: patchright
26
+ Requires-Dist: pyyaml
27
+ Description-Content-Type: text/markdown
28
+
29
+ # patchright-cli
30
+
31
+ <!-- badges (hidden until PyPI publish)
32
+ [![PyPI version](https://img.shields.io/pypi/v/patchright-cli?color=blue&label=PyPI)](https://pypi.org/project/patchright-cli/)
33
+ [![Python](https://img.shields.io/pypi/pyversions/patchright-cli?label=Python)](https://pypi.org/project/patchright-cli/)
34
+ [![License](https://img.shields.io/github/license/AhaiMk01/patchright-cli?color=green)](LICENSE)
35
+ [![Downloads](https://img.shields.io/pypi/dm/patchright-cli?color=orange&label=Downloads)](https://pypi.org/project/patchright-cli/)
36
+ -->
37
+
38
+ Anti-detect browser automation CLI. Same command interface as [Microsoft's playwright-cli](https://github.com/microsoft/playwright-cli) but using [Patchright](https://github.com/kaliiiiiiiiii/patchright-python) (undetected Playwright fork) to bypass bot detection.
39
+
40
+ ## Why
41
+
42
+ Regular Playwright and Chrome DevTools get blocked by Akamai, Cloudflare, and other anti-bot systems. Patchright patches Chromium's detection vectors (`navigator.webdriver`, WebGL fingerprints, etc.) so automated browsers look like real users.
43
+
44
+ This CLI wraps Patchright in the same command interface as playwright-cli, so AI agents (Claude Code, etc.) can automate anti-bot-protected sites with the same workflow they'd use for regular Playwright.
45
+
46
+ ## Install
47
+
48
+ ### For Humans
49
+
50
+ Just tell your AI agent:
51
+
52
+ > Install and set up patchright-cli by following the instructions here:
53
+ > https://raw.githubusercontent.com/AhaiMk01/patchright-cli/main/docs/installation.md
54
+
55
+ Seriously — let the agent do it. It handles configs better than you.
56
+
57
+ ### For LLM Agents
58
+
59
+ ```bash
60
+ curl -s https://raw.githubusercontent.com/AhaiMk01/patchright-cli/main/docs/installation.md
61
+ ```
62
+
63
+ ### Manual Install
64
+
65
+ ```bash
66
+ # With pip
67
+ pip install patchright-cli
68
+
69
+ # With uv (recommended)
70
+ uv tool install patchright-cli
71
+
72
+ # Run without installing (like npx)
73
+ uvx patchright-cli open https://example.com
74
+ ```
75
+
76
+ ### From Source
77
+
78
+ ```bash
79
+ git clone https://github.com/AhaiMk01/patchright-cli.git
80
+ cd patchright-cli
81
+ uv venv && uv pip install -e .
82
+ ```
83
+
84
+ ## Quick Start
85
+
86
+ ```bash
87
+ # Launch undetected Chrome and navigate
88
+ patchright-cli open https://example.com
89
+
90
+ # Take a snapshot to see interactive elements with refs
91
+ patchright-cli snapshot
92
+
93
+ # Interact using refs from the snapshot
94
+ patchright-cli click e2
95
+ patchright-cli fill e5 "search query"
96
+ patchright-cli press Enter
97
+
98
+ # Take a screenshot
99
+ patchright-cli screenshot
100
+
101
+ # Close the browser
102
+ patchright-cli close
103
+ ```
104
+
105
+ ## Architecture
106
+
107
+ ```mermaid
108
+ graph LR
109
+ A[CLI Client<br/>cli.py] -->|TCP/JSON<br/>localhost:9321| B[Daemon<br/>daemon.py]
110
+ B -->|Patchright<br/>CDP| C[Chrome<br/>stealth]
111
+ ```
112
+
113
+ - **Daemon** (`daemon.py`): Long-running Python process managing browser sessions via Patchright. Listens on `localhost:9321`. Auto-starts on first `open` command.
114
+ - **CLI** (`cli.py`): Thin client. Parses args, sends JSON to daemon, prints result. Each invocation connects and disconnects — the browser stays open between commands.
115
+ - **Snapshot** (`snapshot.py`): Walks the DOM with `TreeWalker` in document order, assigns `data-patchright-ref` attributes, outputs a flat YAML list of interactive elements.
116
+
117
+ ## Commands
118
+
119
+ ### Core
120
+ ```bash
121
+ patchright-cli open [url] # Launch browser
122
+ patchright-cli open --persistent # With persistent profile
123
+ patchright-cli goto <url> # Navigate
124
+ patchright-cli click <ref> # Click element
125
+ patchright-cli dblclick <ref> # Double-click
126
+ patchright-cli fill <ref> <value> # Fill text input
127
+ patchright-cli type <text> # Type via keyboard
128
+ patchright-cli hover <ref> # Hover over element
129
+ patchright-cli select <ref> <value> # Select dropdown option
130
+ patchright-cli check <ref> # Check checkbox
131
+ patchright-cli uncheck <ref> # Uncheck checkbox
132
+ patchright-cli drag <from> <to> # Drag and drop
133
+ patchright-cli snapshot # Accessibility snapshot
134
+ patchright-cli snapshot --filename=f # Save to custom path
135
+ patchright-cli eval <expr> # Run JavaScript
136
+ patchright-cli screenshot # Full page screenshot
137
+ patchright-cli screenshot <ref> # Element screenshot
138
+ patchright-cli screenshot --filename=f # Save to custom path
139
+ patchright-cli close # Close session
140
+ ```
141
+
142
+ ### Navigation
143
+ ```bash
144
+ patchright-cli go-back
145
+ patchright-cli go-forward
146
+ patchright-cli reload
147
+ ```
148
+
149
+ ### Keyboard / Mouse
150
+ ```bash
151
+ patchright-cli press Enter
152
+ patchright-cli keydown Shift
153
+ patchright-cli keyup Shift
154
+ patchright-cli mousemove 150 300
155
+ patchright-cli mousedown [button]
156
+ patchright-cli mouseup [button]
157
+ patchright-cli mousewheel 0 100
158
+ ```
159
+
160
+ ### Dialog
161
+ ```bash
162
+ patchright-cli dialog-accept [text] # Accept next alert/confirm/prompt
163
+ patchright-cli dialog-dismiss # Dismiss next dialog
164
+ ```
165
+
166
+ ### Upload / Resize
167
+ ```bash
168
+ patchright-cli upload ./file.pdf # Upload to first file input
169
+ patchright-cli upload ./file.pdf e5 # Upload to specific input
170
+ patchright-cli resize 1920 1080 # Resize viewport
171
+ ```
172
+
173
+ ### Tabs
174
+ ```bash
175
+ patchright-cli tab-list
176
+ patchright-cli tab-new [url]
177
+ patchright-cli tab-select <index>
178
+ patchright-cli tab-close [index]
179
+ ```
180
+
181
+ ### State Persistence
182
+ ```bash
183
+ patchright-cli state-save [file] # Save cookies + localStorage
184
+ patchright-cli state-load <file> # Restore saved state
185
+ ```
186
+
187
+ ### Storage
188
+ ```bash
189
+ # Cookies
190
+ patchright-cli cookie-list
191
+ patchright-cli cookie-list --domain=example.com
192
+ patchright-cli cookie-get <name>
193
+ patchright-cli cookie-set <name> <value>
194
+ patchright-cli cookie-set <name> <value> --domain=example.com --httpOnly --secure
195
+ patchright-cli cookie-delete <name>
196
+ patchright-cli cookie-clear
197
+
198
+ # localStorage
199
+ patchright-cli localstorage-list
200
+ patchright-cli localstorage-get <key>
201
+ patchright-cli localstorage-set <key> <value>
202
+ patchright-cli localstorage-delete <key>
203
+ patchright-cli localstorage-clear
204
+
205
+ # sessionStorage
206
+ patchright-cli sessionstorage-list
207
+ patchright-cli sessionstorage-get <key>
208
+ patchright-cli sessionstorage-set <key> <value>
209
+ patchright-cli sessionstorage-delete <key>
210
+ patchright-cli sessionstorage-clear
211
+ ```
212
+
213
+ ### Request Mocking
214
+ ```bash
215
+ patchright-cli route "**/*.jpg" --status=404
216
+ patchright-cli route "https://api.example.com/**" --body='{"mock":true}'
217
+ patchright-cli route-list
218
+ patchright-cli unroute "**/*.jpg"
219
+ patchright-cli unroute # Remove all routes
220
+ ```
221
+
222
+ ### Tracing / PDF
223
+ ```bash
224
+ patchright-cli tracing-start
225
+ patchright-cli tracing-stop # Saves .zip trace file
226
+ patchright-cli pdf --filename=page.pdf
227
+ ```
228
+
229
+ ### DevTools
230
+ ```bash
231
+ patchright-cli console # All console messages
232
+ patchright-cli console warning # Filter by level
233
+ patchright-cli network # Network request log
234
+ ```
235
+
236
+ ### Sessions
237
+ ```bash
238
+ patchright-cli -s=mysession open https://example.com --persistent
239
+ patchright-cli -s=mysession click e6
240
+ patchright-cli -s=mysession close
241
+ patchright-cli list # List all sessions
242
+ patchright-cli close-all
243
+ patchright-cli kill-all
244
+ patchright-cli delete-data # Delete persistent profile
245
+ ```
246
+
247
+ ## Snapshots
248
+
249
+ After each state-changing command, the CLI outputs page info and a YAML snapshot:
250
+
251
+ ```
252
+ ### Page
253
+ - Page URL: https://example.com/
254
+ - Page Title: Example Domain
255
+ ### Snapshot
256
+ [Snapshot](.patchright-cli/page-1774376207818.yml)
257
+ ```
258
+
259
+ The snapshot lists interactive elements with refs:
260
+
261
+ ```yaml
262
+ - ref: e1
263
+ role: heading
264
+ name: Example Domain
265
+ level: 1
266
+ - ref: e2
267
+ role: link
268
+ name: Learn more
269
+ url: "https://iana.org/domains/example"
270
+ ```
271
+
272
+ Use refs in commands: `patchright-cli click e2`, `patchright-cli fill e5 "text"`.
273
+
274
+ ## Anti-Detect Features
275
+
276
+ - Real Chrome browser (not Chromium)
277
+ - Patchright patches `navigator.webdriver` and other detection vectors
278
+ - Persistent profiles maintain cookies/sessions across runs
279
+ - No custom user-agent or headers (natural fingerprint)
280
+ - Headed by default (headless is more detectable)
281
+
282
+ ## Claude Code Integration
283
+
284
+ Add the skill to your project:
285
+
286
+ ```bash
287
+ cp -r skills/patchright-cli ~/.claude/skills/
288
+ ```
289
+
290
+ Then use in Claude Code:
291
+ ```
292
+ patchright-cli open https://protected-site.com
293
+ patchright-cli snapshot
294
+ patchright-cli fill e3 "username"
295
+ patchright-cli fill e4 "password"
296
+ patchright-cli click e5
297
+ ```
298
+
299
+ ## Star History
300
+
301
+ <a href="https://star-history.com/#AhaiMk01/patchright-cli&Date">
302
+ <picture>
303
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=AhaiMk01/patchright-cli&type=Date&theme=dark" />
304
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=AhaiMk01/patchright-cli&type=Date" />
305
+ <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=AhaiMk01/patchright-cli&type=Date" />
306
+ </picture>
307
+ </a>
308
+
309
+ ## License
310
+
311
+ Apache 2.0 — same as [playwright-cli](https://github.com/microsoft/playwright-cli)