---
title: "terminal-browser"
url: "https://claudemods.dev/ja/builds/terminal-browser-432408"
source: "https://github.com/zenbu-labs/terminal-browser/tree/main/claude-code-plugin"
source_type: "github"
repo: "https://github.com/zenbu-labs/terminal-browser/tree/main/claude-code-plugin"
author: "zenbu-labs"
author_handle: "zenbu-labs"
stars: 4604
category: "ツール・連携"
categories: ["tools"]
tags: ["Claude Code", "mod"]
permission_level: 3
scan_complete: false
install: "claude plugin marketplace add zenbu-labs/terminal-browser\nclaude plugin install terminal-browser@terminal-browser"
added: "2026-10-04T10:40:34.110Z"
updated: "2026-11-12T02:14:15Z"
locale: "ja"
content_locale: "ja"
---

# terminal-browser

ターミナルブラウザ：Claude Code内で直接実行されるブラウザ。 Web サイトをプレビューし、HTML ドキュメントを表示し、エージェントに制御させます

## Description

# ターミナルブラウザClaude Codeプラグイン

> このプラグインは実験的なものであり、いくつかの[既知の制限](#警告)があります。




https://github.com/user-attachments/assets/a79e7667-6fcb-49a4-9967-44d0f942102c



## インストール

ターミナルブラウザをインストールする
```
curl -fsSL https://terminal-browser.sh/install | bash # or brew install terminal-browser
```Claude
 Codeの最新バージョンを使用していることを確認してください
```
claude update
```
これを `~/.claude/settings.json` に追加して、Claude Code UI プラグインを有効にします。
```jso
n
{
  "env": { "CLAUDE_CODE_ENABLE_FUNCTION_HOOKS": "1" }
}
```
ターミナルブラウザプラグインをインストールする
```
# set the marketplace
claude plugin marketplace add zenbu-labs/terminal-browser

# install the plugin
claude plugin install terminal-browser@terminal-browser
```
これで、Claude Code内で「/browser」を実行してブラウザを開くことができます。

### 更新中

Claude Codeプラグインを更新する
```
claude plugin update terminal-browser@terminal-browser
```
端末ブラウザを更新する
```
terminal-browser upgrade
```
### 構成

Claudeがブラウザを開くために使用できるツールを含めるようにターミナル ブラウザ プラグインを構成できます。Claudeはすでに `terminal-browser` CLI を使用して、分割ペインを通じて端末内でブラウザを開くことができるため、これはデフォルトでオフになっています。このツールを有効にするには、` ~/.claude/settings.json` に以下を追加します。
```jso
n
{
  "pluginConfigs": {
    "terminal-browser@terminal-browser": {
      "options": {
        "agentTool": true
      }
    }
  }
}
```
## ターミナルブラウザプラグイン API

ターミナル ブラウザ プラグインには、別のClaude Code プラグイン内でプログラム的にブラウザを開いて URL をロードするために使用できる API が付属しています。これを使用して構築できる便利なプラグインの例をいくつか示します。
- Claude Code分割ペインで tldraw を開く `/tldraw` スラッシュ コマンド
- `/open-pr` スラッシュ コマンド。作業中のブランチに関連付けられた PR を開きます。
```typescrip
t
export type BrowserOpenInput = { url?: string }

export type BrowserOpenResult =
  | { ok: true; url: string }
  | { ok: false; error: string }

export type Browser = {
  open: (input: BrowserOpenInput) => Promise<BrowserOpenResult>
  close: (input?: Record<string, never>) => Promise<boolean>
}

// usage: in your plugin's hooks module
on('command.run', { command: 'tldraw' }, async ($) => {
  const result = await $.browser.open({ url: 'https://www.tldraw.com/' })
  return { text: result.ok ? 'Opened tldraw' : result.error }
})
```
## どのように機能するのでしょうか?

ターミナルブラウザはtを使用します

## Install

```
claude plugin marketplace add zenbu-labs/terminal-browser
claude plugin install terminal-browser@terminal-browser
```

## Original README

# terminal-browser claude code plugin

> This plugin is experimental and does have some [known limitations](#caveats)




https://github.com/user-attachments/assets/a79e7667-6fcb-49a4-9967-44d0f942102c



## Installation

Install terminal-browser
```
curl -fsSL https://terminal-browser.sh/install | bash # or brew install terminal-browser
```

Ensure you are on the latest version of claude code
```
claude update
```

Enable claude code UI plugins by adding this to `~/.claude/settings.json`:
```json
{
  "env": { "CLAUDE_CODE_ENABLE_FUNCTION_HOOKS": "1" }
}
```




Install the terminal-browser plugin
```
# set the marketplace
claude plugin marketplace add zenbu-labs/terminal-browser

# install the plugin
claude plugin install terminal-browser@terminal-browser
```

Now you can run "/browser" inside claude code to open the browser

### Updating

Update the claude code plugin
```
claude plugin update terminal-browser@terminal-browser
```

Update terminal-browser
```
terminal-browser upgrade
```

### Configuration

You can configure the terminal-browser plugin to include a tool that claude can use to open the browser. This is by default off, since claude can already use the `terminal-browser` CLI to open the browser inside the terminal through a split pane. You can enable the tool by adding the following to your ` ~/.claude/settings.json`:

```json
{
  "pluginConfigs": {
    "terminal-browser@terminal-browser": {
      "options": {
        "agentTool": true
      }
    }
  }
}
```


## terminal-browser plugin API

The terminal-browser plugin comes with an API you can use within another claude code plugin to programatically open the browser and load a URL. Some examples of useful plugins you can build with this are:
- `/tldraw` slash command that opens tldraw in the claude code split pane
- `/open-pr` slash command that opens the PR associated with the branch you are working on

```typescript
export type BrowserOpenInput = { url?: string }

export type BrowserOpenResult =
  | { ok: true; url: string }
  | { ok: false; error: string }

export type Browser = {
  open: (input: BrowserOpenInput) => Promise<BrowserOpenResult>
  close: (input?: Record<string, never>) => Promise<boolean>
}

// usage: in your plugin's hooks module
on('command.run', { command: 'tldraw' }, async ($) => {
  const result = await $.browser.open({ url: 'https://www.tldraw.com/' })
  return { text: result.ok ? 'Opened tldraw' : result.error }
})
```

## How does it work?

terminal-browser uses the [kitty graphics protocol] to display pixels generated by a real browser inside the terminal. To display the browser inside claude code, we use claude codes new [function hooks API](https://github.com/anthropics/claude-code/issues/91870).

terminal-browser's internals have been extracted to a javascript library - https://github.com/zenbu-labs/terminal-browser/tree/main/pixel - if you would like to build your own graphical application inside claude code/the terminal


## Supported terminals

The terminal-browser claude code plugin will only work in terminals that support the [kitty graphics protocol], and implement [kitty unicode placeholders](https://sw.kovidgoyal.net/kitty/graphics-protocol/#unicode-placeholders). The most popular terminals that support this feature are:
- [ghostty](https://ghostty.org)
- [kitty](https://sw.kovidgoyal.net/kitty/)

If your terminal does not support the required features, trying to open the browser inside claude code may garble the TUI

In addition any terminals that are built on libghostty will support this feature, some examples are:
- [cmux](https://cmux.com/)
- [supacode](https://supacode.sh/)

You can find more libghostty based terminals here: [awesome-libghostty](https://github.com/Uzaaft/awesome-libghostty)

Even if your terminal supports the required graphics feature, if you are running a multiplexer, the plugin may not work. This is because multiplexers rewrite the output of terminal programs and breaks terminal graphics commands. tmux support will be arriving soon (terminal-browser currently works in tmux, just not through the claude code plugin yet), and within herdr performance is very bad when running through the claude code plugin, but will likely improve soon. Other multiplexers I have not tested, so if it does not work please file an issue and I will see if we can support this.




## Caveats:
- depends on your terminal supporting the [kitty graphics protocol]
- the mouse position will sometimes be slightly off, since claude code does not enable pixel coordinate mouse reporting
- the plugin needs to make fetch requests to a local http server to communicate with the terminal-browser CLI, which may cause a prompt to show in your OS that your terminal wants to access the local network
- claude code sets a very high min width for the chat area, so its sometimes not possible to resize the browser to the size you want
- the plugin depends on the experimental function hooks claude code API, which is unstable, so the plugin may break between releases

[kitty graphics protocol]: https://sw.kovidgoyal.net/kitty/graphics-protocol/
