zenbu-labs/terminal-browser

▲ 26 stars today★ 3,784⑂ 180

A browser inside your terminal

About zenbu-labs/terminal-browser

zenbu-labs/terminal-browser is an open-source project on GitHub, mainly written in TypeScript. A browser inside your terminal It currently holds 3,784 stars and 180 forks with 91 open issues, and was last pushed on 2026-10-07 (repository created 2026-07-06).

Project Overview

Git Homed tracks it on the Today's Trending board, currently at rank #100 with 26 new stars today.

GitHub Repository Details

Repository zenbu-labs/terminal-browser · default branch main · size 3168 KB · watchers 17 · source: GitHub REST API and repository README

README

terminal-browser

A real browser that runs inside your terminal

Installation

curl (macOS & Linux):

curl -fsSL https://terminal-browser.sh/install | bash
Note: Run terminal-browser upgrade to upgrade versions

Homebrew (macOS & Linux):

brew install terminal-browser

Windows

To install on Windows you must be using WSL. Terminals with kitty graphics support are also very limited on Windows, the following are terminals I have tested that terminal-browser will work on inside Windows:
curl -fsSL https://terminal-browser.sh/install | bash

Claude code plugin

Install instructions here

Usage

terminal-browser # launches the browser
terminal-browser open  # opens the browser at a url
terminal-browser --split right # opens the browser in a split pane to the right
terminal-browser open --ssh   # performs all network requests through a remote server
terminal-browser open --transparent  # the terminal background will show through pages without a background color
terminal-browser ls # lists open browsers
terminal-browser action # an agent-browser compatible cli for interacting with open terminal-browsers
terminal-browser upgrade # upgrade to the latest version

Use cases:

Shortcuts

| Action | macOS | Linux | | --- | --- | --- | | Quit | ctrl+q or ctrl+c | ctrl+q | | New tab | cmd+t | ctrl+t | | Edit URL | cmd+l | ctrl+l | | Command palette | cmd+p | ctrl+k or alt+k | | Find in page | cmd+shift+f | ctrl+shift+f | | Next / previous match | enter / shift+enter | enter / shift+enter | | Reload | cmd+r | ctrl+r | | Back / forward | cmd+[ / cmd+] or ctrl+[ / ctrl+] | ctrl+[ / ctrl+] | | Zoom in / out / reset | your terminal's zoom keybind | your terminal's zoom keybind | | Devtools | cmd+shift+i or f12 | ctrl+shift+i or f12 | | Devtools console | cmd+alt+j | ctrl+alt+j | | Copy / paste / cut | cmd+c / cmd+v / cmd+x | ctrl+c / ctrl+v / ctrl+x | | Record page (start/stop) | ctrl+r | ctrl+shift+r | | Complete recording review | ctrl+enter | ctrl+enter | | Start element selection (send to agent) | ctrl+g | ctrl+g | | Close popup / overlay | escape | escape |

How does it work?

Terminals that support the kitty graphics protocol, including ghostty, kitty, cmux, vscode and many more, allow a program running in a terminal to display pixels in your terminal. We use this capability to display pixels generated by chromium.

We use electrons offscreen rendering API to read pixels generated by chromium directly from the GPU. Any time a website visually changes, terminal-browser only sends small patches to the terminal that cover changed regions. These choices allows terminal-browser to render smoothly without dropping any frames.

After the browser engine starts and is displaying pixels in the terminal, it needs to be able to read user input for websites to actually work. terminal-browser listens to mouse clicks, mouse position, and keyboard events from the terminal, and then sends synthetic events to chromium based on that data. For any user input events that are not retrievable from the terminal, we read directly from the operating system using a background swift app to listen for input events (non intrusively). This is what allows terminal-browser to implement smooth scrolling, and listen to trackpad events (websites with infinite canvases work great inside terminal-browser!)

The outer UI of the browser is implemented using a graphics engine built on top of rust. The actual UI is defined inside react with a custom react renderer, which allows us to build the UI for the browser using typescript. The UI of the outer browser and the browser content itself is all drawn to the same shared canvas inside the rust engine, which allows us to layer UI on top of the browser.

The underlying logic described here has been abstracted into a javascript library that you can use to build your own graphical applications in the terminal - pixel

SSH

The recommended way to use terminal-browser over ssh is running terminal-browser --ssh .

The alternative is running terminal-browser directly on the machine you are shh'd into. This will work, but:

terminal-browser --ssh improves on this by running the website on your local device, and simply proxying all network requests made by the browser via the remote machine over ssh. This means you can load any website running on localhost of the remote machine on your local device.

Embedded mode

terminal-browser supports embedding inside of existing TUIs. See examples/embedded for a reference implementation

Telemetry

terminal-browser collects psuedo-anonymous usage events that gives me the ability to see how many people are using the project, which is extremely helpful information for improving the project.

telemetry can be disabled by any of the following:

All data that is sent is appended to ~/.local/state/terminal-browser-*/logs/telemetry.jsonl, which allows you to audit no sensitive or identifying information is leaving your machine.

terminal-browser also collects crash reports if terminal-browser fails to start or unexpected errors occur internally. This can be disabled by any of the following:

If you are using pixel/, no telemetry is ever active and there is nothing to disable.

Roadmap

Contributing

To get a local development setup of terminal-browser, the recommended way is to ask a coding agent.

Adding enhanced support for a new terminal

terminal-browser's cli includes sub commands that rely on terminal/multiplexer scripting features. To implement support for a terminal/multiplexer not yet supported, reference existing implementations located here https://github.com/zenbu-labs/terminal-browser/tree/main/terminals/src/terminals

Discord

Acknowledgments

GitHub Stars & Activity

3,784Stars
180Forks
91Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars3,784
Forks180
Open issues91
Primary languageTypeScript
LicenseMIT
Stars gained today26
Created2026-07-06
Last pushed2026-10-07

Trending History

Daily boardrank #100 · ▲ 26 stars

Related GitHub Projects

1

microsoft / vscode

TypeScript★ 193,524⑂ 44,983▲ 43 stars
→
2

anthropics / claude-code

TypeScript★ 150,043⑂ 26,080▲ 195 stars
→
3

immich-app / immich

TypeScript★ 115,959⑂ 7,177▲ 97 stars
→
4

morluto / rea

TypeScript★ 68,905⑂ 14,506▲ 25,784 stars
→
5

remotion-dev / remotion

TypeScript★ 63,050⑂ 4,952▲ 288 stars
→
6

Yeachan-Heo / oh-my-claudecode

TypeScript★ 39,772⑂ 3,561▲ 44 stars
→
7

mksglu / context-mode

TypeScript★ 26,240⑂ 1,889▲ 178 stars
→
8

Vincentwei1021 / video-shotcraft

TypeScript★ 11,166⑂ 994▲ 143 stars
→

More Trending Repositories