browse 0.8.1 → 0.8.2
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.
- package/LICENSE +1 -1
- package/README.md +71 -33
- package/oclif.manifest.json +618 -618
- package/package.json +17 -20
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,19 +1,49 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
# >_ browse
|
|
4
|
+
|
|
5
|
+
### The single CLI your AI agents need to access the internet reliably.
|
|
6
|
+
|
|
7
|
+
[](https://www.npmjs.com/package/browse)
|
|
8
|
+
[](https://www.npmjs.com/package/browse)
|
|
9
|
+
[](https://github.com/browserbase/cli/blob/main/LICENSE)
|
|
4
10
|
|
|
5
11
|
```bash
|
|
6
12
|
npm install -g browse
|
|
7
13
|
```
|
|
8
14
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
<img src="https://github.com/browserbase/cli/blob/main/media/browse.gif" alt="browse CLI demo" width="100%" />
|
|
16
|
+
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
`browse` gives any agent — or any terminal — a reliable way to drive a real browser, learn how to use specific websites, and tap into Browserbase's cloud. One command to navigate the open web, capture telemetry while you do it, and reuse skills the community has already built.
|
|
22
|
+
|
|
23
|
+
## Why browse
|
|
24
|
+
|
|
25
|
+
- **Browser interactions** — Navigate tricky, complex websites with `browse click`, `browse mouse scroll`, `browse type`, `browse select`, and 20+ more DOM commands.
|
|
26
|
+
- **Open web skills catalog** — `browse` is the official CLI for [browse.sh](https://browse.sh), the largest open web catalog. Run `browse skills add apartments.com` and your agent learns how to use that site and its APIs.
|
|
27
|
+
- **Rich debugging** — Arm your agents with network, console, and other web telemetry.
|
|
28
|
+
- **Cloud features** — Optionally use Browserbase cloud: load cookies via saved [Contexts](https://docs.browserbase.com/platform/browser/core-features/contexts), use [Verified Browsers](https://www.browserbase.com/verified), and call the [Fetch and Search APIs](https://www.browserbase.com/search).
|
|
29
|
+
|
|
30
|
+
## Quick start
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm install -g browse
|
|
34
|
+
|
|
35
|
+
browse open https://example.com
|
|
36
|
+
browse snapshot --compact
|
|
37
|
+
browse click @0-12
|
|
38
|
+
browse fill @0-8 "hello"
|
|
39
|
+
browse get title
|
|
40
|
+
browse screenshot --path page.png
|
|
41
|
+
browse stop
|
|
42
|
+
```
|
|
14
43
|
|
|
44
|
+
## Driver commands
|
|
15
45
|
|
|
16
|
-
|
|
46
|
+
Drive a real browser from the terminal — locally, over CDP, or on a remote Browserbase session.
|
|
17
47
|
|
|
18
48
|
```bash
|
|
19
49
|
browse open https://example.com
|
|
@@ -38,61 +68,49 @@ browse stop
|
|
|
38
68
|
|
|
39
69
|
Use `--local`, `--remote`, `--auto-connect`, or `--cdp <url|port>` per command to choose the browser target. Use `--target-id <id>` with `--cdp` when attaching to a specific CDP target. Driver commands use `BROWSERBASE_API_KEY` for remote Browserbase sessions.
|
|
40
70
|
|
|
41
|
-
[!NOTE]
|
|
42
|
-
|
|
71
|
+
> [!NOTE]
|
|
72
|
+
> `browse network on` writes request/response headers and bodies to a local owner-only capture directory. These files can include cookies, authorization headers, and other secrets — use network capture only on trusted machines and run `browse network clear` when done.
|
|
43
73
|
|
|
44
|
-
## Open
|
|
45
|
-
|
|
46
|
-
Your CLI can directly use [browse.sh](https://browse.sh), the largest open-source catalog of skills to reliably perform any task on the internet. For example, find a specialized skill to navigate `apartments.com` and reduce your agent time and token costs drastically.
|
|
74
|
+
## Open web skills catalog
|
|
47
75
|
|
|
76
|
+
Use [browse.sh](https://browse.sh), the largest open-source catalog of skills to reliably perform any task on the internet. Find a specialized skill to navigate `apartments.com`, for example, and drastically reduce your agent's time and token costs.
|
|
48
77
|
|
|
49
78
|
```bash
|
|
50
|
-
browse skills install
|
|
51
|
-
browse skills list
|
|
52
|
-
browse skills find reviews
|
|
79
|
+
browse skills install # install the bundled browse CLI skill
|
|
80
|
+
browse skills list # list the public Browse.sh catalog
|
|
81
|
+
browse skills find reviews # search by slug, domain, title, tag…
|
|
53
82
|
browse skills find yelp.com/extract-reviews
|
|
54
|
-
browse skills add yelp.com/extract-reviews
|
|
83
|
+
browse skills add yelp.com/extract-reviews # install a catalog skill
|
|
55
84
|
browse skills add mcdonalds.order.online/order-delivery-42q71n
|
|
56
85
|
```
|
|
57
86
|
|
|
58
|
-
|
|
59
|
-
`browse skills list` lists the public Browse.sh skill catalog.
|
|
60
|
-
`browse skills find` searches the public Browse.sh skill catalog by slug, domain, title, description, category, alias, or tag.
|
|
61
|
-
`browse skills add` installs catalog skills from `browserbase/browse.sh` or generated skills from Browserbase-hosted public storage.
|
|
87
|
+
## Browserbase cloud commands
|
|
62
88
|
|
|
63
|
-
|
|
89
|
+
Manage projects, sessions, contexts, and extensions, or call the Fetch and Search APIs directly.
|
|
64
90
|
|
|
65
91
|
```bash
|
|
66
|
-
browse --help
|
|
67
|
-
browse cloud --help
|
|
68
92
|
browse cloud projects list
|
|
69
93
|
browse cloud projects get <project-id>
|
|
70
94
|
browse cloud projects usage <project-id>
|
|
71
95
|
browse cloud sessions list
|
|
72
96
|
browse cloud sessions get <session-id>
|
|
73
97
|
browse cloud sessions create
|
|
74
|
-
browse cloud sessions update <session-id>
|
|
75
98
|
browse cloud sessions debug <session-id>
|
|
76
99
|
browse cloud sessions logs <session-id>
|
|
77
100
|
browse cloud sessions downloads get <session-id>
|
|
78
101
|
browse cloud sessions uploads create <session-id> <file>
|
|
79
102
|
browse cloud contexts create
|
|
80
103
|
browse cloud contexts get <context-id>
|
|
81
|
-
browse cloud contexts update <context-id>
|
|
82
|
-
browse cloud contexts delete <context-id>
|
|
83
104
|
browse cloud extensions upload <file>
|
|
84
|
-
browse cloud extensions get <extension-id>
|
|
85
|
-
browse cloud extensions delete <extension-id>
|
|
86
105
|
browse cloud fetch <url>
|
|
87
106
|
browse cloud search <query>
|
|
88
107
|
```
|
|
89
108
|
|
|
90
|
-
`browse cloud fetch`
|
|
91
|
-
|
|
92
|
-
## Functions Commands
|
|
109
|
+
`browse cloud fetch` returns markdown-formatted page content by default. Use `--format raw` for the original response body, or `--format json --schema <schema>` for structured extraction.
|
|
93
110
|
|
|
94
|
-
|
|
111
|
+
## Functions
|
|
95
112
|
|
|
113
|
+
Browserbase [Functions](https://docs.browserbase.com/platform/runtime/overview) let you deploy browser agents and automation scripts directly onto Browserbase's infrastructure. Build locally, test instantly, and deploy as APIs.
|
|
96
114
|
|
|
97
115
|
```bash
|
|
98
116
|
browse functions init my-function
|
|
@@ -102,3 +120,23 @@ browse functions publish index.ts --dry-run
|
|
|
102
120
|
browse functions invoke <function-id> --params '{"url":"https://example.com"}'
|
|
103
121
|
browse functions invoke --check-status <invocation-id>
|
|
104
122
|
```
|
|
123
|
+
|
|
124
|
+
## Configuration
|
|
125
|
+
|
|
126
|
+
Set your Browserbase API key to enable remote sessions and cloud commands:
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
export BROWSERBASE_API_KEY=bb_live_...
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Local driver commands (`--local`) work without an API key.
|
|
133
|
+
|
|
134
|
+
## Links
|
|
135
|
+
|
|
136
|
+
- [browse.sh](https://browse.sh) — open web skills catalog
|
|
137
|
+
- [Browserbase docs](https://docs.browserbase.com)
|
|
138
|
+
- [GitHub](https://github.com/browserbase/cli) · [Issues](https://github.com/browserbase/cli/issues)
|
|
139
|
+
|
|
140
|
+
## License
|
|
141
|
+
|
|
142
|
+
[MIT](https://github.com/browserbase/cli/blob/main/LICENSE)
|