lamngockhuong/termote
概要
Self-hosted PWA to control Claude Code, Codex, GitHub Copilot or any terminal from your phone or desktop. Single Go binary streaming tmux/psmux/Herdr sessions to xterm.js, native or in a container.
開発ツールできること
- Session switching: Multiple tmux sessions with create/edit/delete
- Session tabs: Horizontal tab bar for quick window switching
- Chat view: read and answer a pane running Claude Code, Codex (started with --no-daemon) or OpenCode 2 as a chat, with slash command suggestions, dialog answers, text quoted from the chat into the reply and running subagents, each subagent's own conversation one tap away — see Agent Chat
- Session history: list the Claude Code, Codex and OpenCode sessions that ran in a pane's folder, read one, resume it in a new tab or fork a running one — see Resuming an Old Session
計測したスター増加
- 24時間
- +1
- 7日間
- +2
- 15日間
- +3
- 1か月
- +9
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.ja.md
オリジナル
モバイル/デスクトップからPWA経由でCLIツール(Claude Code、Codex、OpenCode、あらゆるターミナル)をリモート操作。
[!NOTE] Termote 1.0は0.xのインストールをアップグレードしません。アーカイブされた0.xドキュメントの手順で0.xをアンインストールしてから、クイックスタートのコマンドで1.0をインストールしてください。
Termote = Terminal + Remote
🇬🇧 English | 🇻🇳 Tiếng Việt | 🇨🇳 简体中文 | 🇰🇷 한국어 | 🇪🇸 Español | 🇧🇷 Português (BR) | 🇫🇷 Français | 🇩🇪 Deutsch | 🇷🇺 Русский | 🇮🇩 Bahasa Indonesia
機能
- セッション切り替え: 作成/編集/削除が可能な複数のtmuxセッション
- セッションタブ: ウィンドウをすばやく切り替えるための水平タブバー
- Herdrバックエンド(ネイティブまたはコンテナ内): tmuxの代わりにHerdrのワークスペースを操作し、ペインごとにコーディングエージェントの状態バッジを表示 — ネイティブインストールを参照
- Chatビュー: Claude Code、Codex(
--no-daemonで起動)またはOpenCode 2を実行中のペインをチャットとして読み、返信できます。スラッシュコマンドの候補表示、ダイアログへの応答、チャットから選んだ文の返信への引用、実行中のサブエージェントの表示に対応。サブエージェントをタップするとその会話を読めます — Agent Chatを参照 - セッション履歴: ペインのフォルダで実行されたClaude Code、Codex、OpenCodeのセッションを一覧表示し、その内容を読む、新しいタブで再開する、実行中のセッションをフォークする — Resuming an Old Sessionを参照
- トークンとコスト: エージェントのセッションごとのトークン数と推定コスト、日ごとの合計 — Tokens and costを参照
- セッションが変更したファイル: エージェントのセッションが編集したファイルをChangesとセッション履歴に一覧表示し、それぞれのdiffを開ける — Changesを参照
- Files・Changesビュー: ペインのディレクトリとそのgitの変更を閲覧し、Markdownをプレビュー。Windowsのpsmuxを含むすべてのバックエンドに対応 — Files and Changesを参照
- Chatのメッセージキューとファイルリンク: エージェントの作業中にメッセージをキューに入れられます。エージェントが書いたファイルパスをタップすると、Filesでそのファイルを該当行で開きます
- レビューとステージ: ChangesとFilesで行にコメントし、レビューをエージェントに送信。変更をファイル単位またはhunk単位でステージ、アンステージ、破棄
- Filesでのプレビューと編集: PDF・.xlsx・.docxを読み取り専用でプレビュー。Shift-JIS・EUC-JP・UTF-16のファイルを開いて保存。Markdownをライブプレビューの横で編集
- Windowsで開く(WSL): サーバーがWSL上で動作しているとき、ファイルのWindowsパスをコピーしたり、ファイルやフォルダをWindowsのプログラムで開いたりできます
- Places:
termote start --allow-path <dir>でペイン外のフォルダをFilesに表示 — Placesを参照 - Tasks: ペインの
package.jsonスクリプトとMakefileターゲットを実行し、失敗した実行をエージェントに送信 — Tasksを参照 - Worktrees: gitのワークツリーを新規または既存のブランチから独立したグループとして開く(Herdr、tmux、Zellij、herdr-core、psmux) — Worktreesを参照
- 別ウィンドウ(デスクトップ): ファイル、diff、タブ、ペイン、概要を専用のウィンドウで開く
- 画像の添付: スマートフォンから画像をターミナルやChatビューのメッセージに送り、エージェントがパスから読み取れるようにします。Claude Code、Codex、OpenCodeに貼り付けた画像はChatビューから再び開けます
- Zellijバックエンド(Linux、macOS、またはコンテナ内): tmuxの代わりにZellijのセッション、タブ、ペインを操作(Zellij 0.45.0以降)、
--mux zellijで選択 — ネイティブインストールを参照 - herdr-coreバックエンド(ネイティブ、全OS): herdr-coreのクライアントの一つとして、herdrアプリが表示するスペース、タブ、ペインをそのまま表示(
hc0.1.16以降)、--mux hcで選択 — herdr-coreバックエンドを参照 - Machines: ほかのコンピューターのエージェントを1つのTermoteからSSH経由で見守り、操作します。使う鍵はそのコンピューターのTermoteにしか届きません(
termote machine add <alias>) — Machinesを参照 - オーケストレーター: 1つのClaude CodeまたはCodexのセッションが、ほかのペインのエージェントを取りまとめます。状態の確認、タスクの割り当て、その回答とダイアログ、専用worktreeでの新しいエージェントの起動(
termote agents) — Orchestratorを参照。スキルはTermoteに同梱(termote skills install)、またはtermote-pluginsのプラグインとして導入できます(Claude Codeでは/plugin marketplace add lamngockhuong/termote-plugins、Codexではcodex plugin marketplace add lamngockhuong/termote-plugins)。どちらか一方だけを入れてください - Planとジョブ: オーケストレーターが割り当てた作業を、優先度・待ち合わせるジョブ・ワークスペース付きのジョブとして表示。プルリクエストとCIのチェック(失敗したものはエージェントに送り返せます)、承認後にタブを閉じてworktreeを削除する完了処理も(
termote agents job ...) — Orchestratorを参照 - あなたへの質問: オーケストレーターは尋ねた質問を記録します(
termote agents ask add)。Planタブか、質問したオーケストレーターのチャットで、このTermoteでもMachinesの先でも回答・却下できます。ダイアログで止まっているエージェントのジョブはWaiting for youに並びます — Orchestratorを参照 - Herdrプラグイン: Herdrを離れずに、フォーカス中のHerdrペインをTermoteで開く、そのリンクをスマートフォン用のQRコードで表示する、サーバーを起動・停止する — Herdr Pluginを参照
- モバイル対応: 仮想キーボードツールバー(Tab/Ctrl/Shift/矢印キー、展開可能)
- ジェスチャー操作: スワイプでCtrl+C、Tab、スクロール
- コマンド履歴: 検索機能付きの送信済みコマンド呼び出し
- クイックアクション: モバイルのツールバー右端に固定された ⋯ キーで、よく使う操作(clear、cancel、exit)の Actions 行を表示
- インターフェーススタイル: Neutral、Terminal、Native から設定で選択。ライト/ダークのテーマとは独立。アクセントカラーは全スタイル共通
- 表示言語: 英語またはベトナム語を設定で選択。Auto はブラウザの言語に従う
- 設定の持ち出し: このブラウザの設定をファイルにエクスポートして別のブラウザでインポートする、またはコーディングエージェントが
termote settings proposeで提案した設定を確認する — Settingsを参照 - GPUターミナル: デバイスにGPUがあればターミナルをWebGL2で描画し、大量の出力でもなめらかに表示
- 接続インジケーター: リアルタイムのサーバー状態表示と切断自動検出
- アップデートチェック: GitHub releasesからの新バージョン自動通知
- PWA: ホーム画面にインストール可能、オフライン対応
- 永続セッション: tmuxがセッションを維持
- 折りたたみ可能なサイドバー: トグル式セッションサイドバー付きデスクトップUI
- デスクトップアプリ(Windows、macOS、Linux。コード署名はまだありません): Webポートを必要としない専用ウィンドウでTermoteを開きます(
termote start --web=false)。OSのネイティブ通知に対応し、WindowsではWSL内のTermoteも接続先にできます。詳しくはデスクトップアプリ - フルスクリーンモード: 没入型ターミナル体験
- サービスとして動作:
termote startがログイン時に起動するユーザーサービス(systemd、launchd、スケジュールタスク)を登録 - 設定の永続化:
termote startがオプションを保存し、パスワードは暗号化して保存
スクリーンショット
デモを試す: インストール不要で、スマートフォンやデスクトップのブラウザから本物のアプリを架空のデータで操作できます。
アーキテクチャ
flowchart TB
subgraph Client["クライアント (モバイル/デスクトップ)"]
PWA["PWA - React + xterm.js"]
Gestures["ジェスチャー操作"]
Keyboard["仮想キーボード"]
end
subgraph Server["Termote サーバー :7680"]
Static["静的ファイル"]
Stream["ターミナル WebSocket /api/mux/stream"]
API["REST API /api/mux/*"]
Guard["Host許可リスト + Origin/CSRFガード"]
Auth["Basic認証"]
end
subgraph Backend["Muxバックエンド(tmux/psmux、Herdr、Zellij または herdr-core)"]
Mux["Muxインターフェース"]
tmux["tmux/psmux (PTY)"]
herdr["Herdr"]
zellij["Zellij"]
hc["herdr-core (hc)"]
Shell["Shell"]
Tools["CLIツール"]
end
Gestures --> PWA
Keyboard --> PWA
PWA --> Static
PWA <--> Stream
PWA --> API
Guard -.-> Static & Stream & API
Auth -.-> Static & Stream & API
Stream --> Mux
API --> Mux
Mux --> tmux & herdr & zellij & hc
tmux --> Shell --> Tools
Termoteはターミナル自体を(UnixではPTY、WindowsではConPTYで)PWA内のxterm.jsへストリーミングします。プロキシ先となる別のターミナルプロセスはありません。リクエストガードの全体像はdocs/system-architecture.mdを参照してください。
クイックスタート
📖 Termote初めてですか? 詳しい手順と例についてははじめにガイドをご覧ください。
Linux / macOS:
curl -fsSL https://termote.ohnice.app/install.sh | sh
termote start
Homebrew (macOS, Linux):
brew install lamngockhuong/tap/termote
termote start
Homebrew でインストールした場合は termote update ではなく brew で更新します: brew upgrade termote && termote restart。削除は termote uninstall && brew uninstall termote です。
Windows (PowerShell):
irm https://termote.ohnice.app/install.ps1 | iex
termote start
コーディングエージェントで: Install with an agent のプロンプトを Claude Code、Codex などのエージェントに貼り付けてください。エージェントは agents.md に従い、サーバーの応答を確認し、パスワードの確認はあなたに任せます。
インストーラーに必要なのはcurl、tar、sha256sum/shasum(WindowsではPowerShell)だけで、sudoや管理者権限は不要です。アーカイブのチェックサムを検証してtermoteコマンドをインストールしますが、何も起動しません。termote startはオプションを保存し、初回はパスワードを作成して(ターミナルで実行したときに一度だけ表示され、あとでtermote show-passwordで再表示できます)、サービスを登録して起動します。http://127.0.0.1:7680(Windowsではhttp://127.0.0.1:7690)を開いてください。
先にターミナルバックエンドをインストールしておく必要があります: tmux(sudo apt install tmux、brew install tmux)、Windowsではpsmux(winget install psmux)、またはHerdr。どれを使うかは最初のstartが検出します。Zellij 0.45.0以降(Linux、macOS)は検出されないため、--mux zellijで選択します。herdr-core(hc 0.1.16以降、全OS、ネイティブのみ)も検出されないため、--mux hcで選択します。
よく使うオプション
termote start --lan # Listen on the LAN, not only this machine
termote start --tailscale myhost.ts.net # Publish over Tailscale HTTPS
termote start --mux herdr # Drive Herdr workspaces instead of tmux
termote start --mux zellij # Drive Zellij sessions instead of tmux (Linux, macOS)
termote start --mux hc # Show the herdr app's terminals through herdr-core
termote start --no-auth # Disable basic auth (local use only)
オプションは保存されます。指定しなかったフラグは保存済みの値を保ち、真偽値のオプションは=falseでオフにします(termote start --lan=false)。フラグはPowerShellを含むすべてのOSで共通です。
日常のコマンド
termote status # What the running server reports
termote stop # Stop (it starts again at the next login)
termote restart # Restart with the saved options
termote logs follow # Tail the logs
termote show-password # Print the saved username and password
termote url --qr # The link to open, as a QR code for a phone
termote pair # A one-time code that signs a new device in
termote devices # List the paired devices (devices revoke <id>)
termote machine add <ssh alias> # Reach another computer's Termote (Machines in the sidebar)
termote skills install # The orchestrator skill for Claude Code and Codex
termote update # Update to the latest release
termote uninstall # Remove the service, the command, the install and uploads
updateは新しいバージョンに切り替えてサービスを再起動し、新しいバージョンが起動しなければ元に戻します。uninstallは設定(~/.config/termote)とログ(~/.local/state/termote)を残し、両方のパスを表示します。uninstall --purgeはそれらも削除します。
インストール
バージョンを固定する
curl -fsSL https://termote.ohnice.app/install.sh | TERMOTE_VERSION=1.0.0 sh
termote update --version 1.0.0
$env:TERMOTE_VERSION='1.0.0'; irm https://termote.ohnice.app/install.ps1 | iex
TERMOTE_VERSIONを指定しない場合、インストーラーは最新の安定版リリース(1.0以降)を取得し、既存のインストールには手を触れません。指定した場合はそのバージョンを現在のバージョンと並べてインストールし、有効なバージョンに切り替えます。壊れたインストールの修復にも使えます。プレリリース(X.Y.Z-rc.N)は、このように名前を指定した場合(またはtermote update --version)に限り、公開後にのみインストールされます。詳しくはDeployment Guideを参照してください。
コンテナモード
termote container up # Run the published image (podman or docker)
termote container up --workspace ~/projects # Mount a directory at /workspace
termote container status
termote container logs -f
termote container down
container upはインストール済みのtermoteと同じバージョンのghcr.io/lamngockhuong/termoteをpodman(優先)またはdockerで実行し、ポート7680を使い、~/termote-workspaceを/workspaceにマウントします。--port、--lan、--tailscale、--cloudflare、--no-auth、--mux、--allow-host、--allow-path、--user、--fresh、--workspace、--build(チェックアウトのみ)を受け付け、これらはstartのオプションとは別に保存されます。ユーザー名とパスワードはネイティブサーバーと共有されます。Dockerは再起動後にコンテナを再開しますが、rootlessのPodmanにはそれを行うデーモンがないため、Quadletユニットとして実行してください。
セキュリティ注意:
$HOMEを直接マウントしないでください —.ssh、.gnupgなどの機密ディレクトリがコンテナからアクセス可能になります。代わりに特定のプロジェクトディレクトリをマウントしてください。
CLIを使わずにDockerで実行
# Generates a password: docker exec termote cat /home/termote/.config/termote/password
docker run -d --name termote -p 7680:7680 \
-v ~/projects:/workspace \
ghcr.io/lamngockhuong/termote:latest
# With your own credentials
docker run -d --name termote -p 7680:7680 \
-e TERMOTE_USER=admin -e TERMOTE_PASS=secret \
ghcr.io/lamngockhuong/termote:latest
| 環境変数 | 説明 |
|---|---|
TERMOTE_USER |
Basic認証のユーザー名(デフォルト: admin) |
TERMOTE_PASS |
Basic認証のパスワード(デフォルト: 自動生成、/home/termote/.config/termote/passwordに保存) |
NO_AUTH |
trueで認証を無効化 |
デスクトップアプリ
デスクトップアプリ(Windows、macOS、Linux)はリリースページから別途ダウンロードします。インストーラーやtermote updateがインストールや更新をすることはありません。同じコンピューター上のネイティブサーバーが必要で、ネットワークではなくtermote desktop-linkを通じて接続するため、Webポートはオフのままにできます。
termote start --web=false # No TCP port: only the CLI and the desktop app reach the server
termote pair --role full --name Desktop --expires never # A code for the app's sign-in page
まだコード署名がないため、初回起動時にmacOSのGatekeeperとWindowsのSmartScreenが警告を出します。先にファイルを.sha256で確認してから、システム設定 → プライバシーとセキュリティでOpen Anywayを、またはWindowsでMore info → Run anywayをクリックしてください。WindowsではWSLディストリビューション内のTermoteにも接続できます(Termote → Target → WSL: <distro>)。詳しくはデスクトップアプリを参照してください。
ソースからビルド
git clone https://github.com/lamngockhuong/termote.git
cd termote
make build
./scripts/termote.sh start
make buildはPWAをビルドしてserver/termoteに埋め込みます。Go、Node.js、pnpmが必要です。scripts/termote.sh(Windowsではscripts\termote.ps1)はチェックアウトを実行するためだけのもので、ソースのほうが新しければ開発用バイナリを再ビルドし、同じ引数で実行します。termote updateはチェックアウト内では実行を拒否するので、git pull && make buildを使ってください。
0.xからのアップグレード
0.xからのアップグレードはありません。1.0は別の場所にインストールされ、0.xの設定を読み込みません。アーカイブされた0.xドキュメントの手順で0.xをアンインストールしてから、上記のコマンドで1.0をインストールしてください。
デプロイモード
flowchart LR
subgraph Container["コンテナモード"]
direction TB
C1["Docker/Podman"] --> C2["Termote :7680 (ターミナルを直接ストリーミング)"] --> C3["tmux / Herdr / Zellij"]
end
subgraph Native["ネイティブモード"]
direction TB
N1["ホストシステム"] --> N2["Termote :7680 (ターミナルを直接ストリーミング)"] --> N3["tmux/psmux、Herdr、Zellij または herdr-core + ホストツール"]
end
User["ユーザー"] --> Container & Native
| モード | コマンド | ユースケース | プラットフォーム |
|---|---|---|---|
| ネイティブ | termote start |
ホストツール(claude、gh)へのアクセス | macOS, Linux, Windows |
| コンテナ | termote container up |
隔離された環境 | macOS, Linux, Windows |
ネイティブサーバーはユーザーサービスとして動作します: Linuxではsystemdのユーザーユニット(WSL2でsystemdがない場合など、ユーザーsystemdがなければ切り離されたプロセス)、macOSではlaunchdエージェント、Windowsではログオン時のスケジュールタスクです。
startのオプション
| フラグ | 説明 |
|---|---|
--port <port> |
ポート(デフォルト: 7680、Windows: 7690) |
--lan[=false] |
すべてのインターフェースで待ち受け(デフォルト: localhostのみ) |
--tailscale <host[:port]> |
Tailscale HTTPSで公開(デフォルトポート443) |
--no-tailscale |
Tailscaleでの公開を停止 |
--cloudflare <host> |
自分で運用するCloudflare Tunnelのホスト名。前段にCloudflare Accessがない場合は警告 |
--no-cloudflare |
Cloudflareのホスト名を破棄 |
--proxy-client-header <name> |
プロキシがクライアントのアドレスを設定するヘッダー(--cloudflare使用時のデフォルト: CF-Connecting-IP) |
--no-proxy-client-header |
このヘッダーを読まない |
--no-auth[=false] |
Basic認証を無効化 |
--mux <tmux|herdr|zellij|hc> |
ターミナルバックエンド(デフォルト: herdrが動作中ならherdr、なければtmux;zellij:Linux、macOS;hc:herdr-core) |
--allow-host <name> |
追加のHostヘッダー値を許可(複数指定可。ワイルドカードなし、セキュリティ注意を参照) |
--remove-host <name> |
許可済みのHost名を削除(複数指定可) |
--allow-local-user <name> |
このマシンの別のOSユーザー(リバースプロキシなど)の接続を許可(複数指定可、Linux・Windows) |
--remove-local-user <name> |
そのユーザーの接続許可を取り消す(複数指定可) |
--allow-path <dir> |
フォルダをFilesのPlacesに表示(複数指定可) |
--remove-path <dir> |
許可済みのフォルダを削除(複数指定可) |
--allow-herdr-no-auth |
--mux herdr --no-authと併用する場合に必須 |
--allow-hc-no-auth |
--mux hc --no-authと併用する場合に必須 |
--user <name> |
ログインユーザー名(デフォルト: admin、コンテナと共有) |
--fresh |
新しいパスワードを設定 |
Tailscale HTTPS付き
自動HTTPSのためにtailscale serveを使用します(手動の証明書管理は不要):
termote start --tailscale myhost.ts.net # Default port 443
termote start --tailscale myhost.ts.net:8765 # Custom port
termote container up --tailscale myhost.ts.net # Container mode
sudo tailscale set --operator=$USER # Linux, once: let Termote run tailscale serve
マッピングはサーバーが起動するたびに適用されます。stop、start --no-tailscale、uninstallはTermote自身のマッピングだけを削除します。
プラットフォームサポート
| プラットフォーム | コンテナ | ネイティブ | インストーラー |
|---|---|---|---|
| Linux | ✓ | ✓ | install.sh |
| macOS | ✓ | ✓ | install.sh |
| Windows | ✓ | ✓ | install.ps1 |
Windowsサポート: コンテナモードにはDocker DesktopまたはPodman Desktopが必要です。ネイティブモードにはpsmux(Windows用のtmux互換ターミナルマルチプレクサー)が必要で、
winget install psmuxでインストールします。代わりにHerdrのサーバーを起動しておいても使えます。
モバイルでの使い方
| 操作 | ジェスチャー |
|---|---|
| キャンセル/中断 | 左スワイプ (Ctrl+C) |
| Tab補完 | 右スワイプ |
| 下へスクロール | 上スワイプ |
| 上へスクロール | 下スワイプ |
| ペースト | 長押し |
| フォントサイズ | ピンチイン/アウト |
仮想ツールバーが提供するキー: Tab、Esc、Ctrl、Shift、矢印キー、よく使うキーの組み合わせ。Ctrl+Shiftの組み合わせ(ペースト、コピー)に対応。最小モードと展開モードの切り替えで追加キー(Home、End、Deleteなど)が利用可能。
プロジェクト構成
termote/
├── Makefile # Build/test/run commands
├── Dockerfile # Container image (Termote + tmux + herdr + zellij)
├── docker-compose.yml # Development from a checkout only
├── entrypoint.sh # Container entrypoint
├── docs/ # Documentation
│ └── images/screenshots/ # App screenshots
├── desktop/ # Desktop app (Wails v3), reaches the server through `termote desktop-link`
├── pwa/ # React PWA
│ └── src/
│ ├── components/
│ ├── contexts/
│ ├── hooks/
│ ├── types/
│ └── utils/
├── server/ # Go server + CLI (single binary)
│ ├── main.go # Entry point (no args = menu, `serve` = server, else CLI)
│ ├── serve.go # Server (PWA, auth, guards)
│ ├── mux.go # Mux interface + /api/mux/* routes
│ ├── mux_tmux.go # tmux/psmux backend
│ ├── mux_herdr.go # Herdr backend
│ ├── mux_zellij*.go # Zellij backend (commands, Chat view and Files)
│ ├── zellij_*.go # Termote's Zellij clients, view-only stream, a pane's shell
│ ├── mux_hc*.go, hc_*.go # herdr-core backend (hc connect client, herdr-app document)
│ ├── stream.go # Terminal WebSocket (xterm.js stream)
│ ├── agent_*.go # Chat view, session history, tokens and cost (Claude Code, Codex, OpenCode)
│ ├── job_*.go, ask_*.go # The orchestrator's job ledger and its questions for the user
│ ├── skills/ # The orchestrator skill (`termote skills install`, termote-plugins)
│ ├── cli*.go # start/stop/update/container/logs/menu subcommands
│ └── webui/ # PWA embedded in the binary (filled by make build)
├── scripts/
│ ├── install.sh # Unix online installer (curl | sh)
│ ├── install.ps1 # Windows online installer (irm | iex)
│ ├── termote.sh # Unix shim: builds and runs a checkout
│ ├── termote.ps1 # Windows PowerShell shim: builds and runs a checkout
│ ├── termote-plugins.sh # Writes the termote-plugins marketplace at each stable release
│ └── package-desktop.sh # Builds and packages the desktop app for one platform
├── tests/ # Test suite
│ ├── test-termote.sh # Unix shim tests
│ ├── test-termote.ps1 # Windows shim tests
│ ├── test-install.sh # Unix installer tests
│ ├── test-install.ps1 # Windows installer tests
│ └── test-entrypoints.sh # Container entrypoint tests
├── herdr-plugin/ # Herdr plugin (open a pane in Termote, QR code, start/stop)
├── video/ # Remotion intro video
└── website/ # Astro Starlight docs site
└── src/content/docs/ # MDX documentation
開発
make build # Build the PWA and embed it in server/termote
make test # Run all tests
make health # Check service health
make clean # Stop containers
make build-desktop # The desktop app (needs the system libraries in desktop/README.md)
make test-desktop # Its tests (not part of make test, same libraries)
# E2E tests (requires running server)
./scripts/termote.sh start # Start server first
pnpm --filter termote test:e2e # Run Playwright tests
pnpm --filter termote test:e2e:ui # Run with UI debugger
手動テスト: セルフテストチェックリストを参照
トラブルシューティング
セッションが永続化されない
- tmuxを確認:
tmux ls - Termoteは
tmux new-session -A(attach-or-create)でアタッチします
WebSocketエラー
- Termoteのログを確認:
termote container logs(コンテナ)またはtermote logs server(ネイティブ) - ターミナルのWebSocketは
/api/mux/streamで、Termote自身が提供します。別途確認すべきターミナルプロセスはありません
モバイルキーボードの問題
- viewportメタタグが存在するか確認
- エミュレーターではなく実機でテスト
ネイティブモード: サーバーが起動しない
termote status # What the running server reports
termote logs server # Or: termote logs follow
lsof -i :7680 # Check what holds the port
termote start --fresh # If the saved password can no longer be read
セキュリティに関する注意
- デフォルト: localhostのみ -
--lanフラグを使用しない限りLANに公開されません - Basic認証はデフォルトで有効 - ローカル開発では
--no-authで無効化。パスワードは最初のtermote startで作成され、暗号化して保存されます - Host許可リスト - 認識できない
Hostヘッダーのリクエストを拒否します(DNSリバインディング対策)。信頼する名前は--allow-hostで追加でき、チェックを無効にするワイルドカードはありません - Origin/CSRFガード - 状態を変更する
/api/mux/*リクエストと/api/mux/streamのWebSocketは、クロスサイトのSec-Fetch-Site/Originを拒否し、同一オリジンで一度だけ使えるストリームトークンを要求します - ブルートフォース攻撃防止機能内蔵 - レート制限(IPあたり失敗5回/分、IPv6 /64あたり20回/分)
- Herdrバックエンド - ホスト上のすべてのHerdrワークスペースを公開するため、
--allow-herdr-no-authも指定しない限り--mux herdr --no-authは拒否されます - Zellijバックエンド - tmuxと同様に、ユーザーの実行中のすべてのZellijセッションを公開します(
--no-authへの追加の保護はありません)。キー入力とChatメッセージは、TermoteのZellijクライアントのターミナルを通じてのみペインに届き、他のローカルユーザーが読めるプロセス引数は使いません - herdr-coreバックエンド - herdr-coreには独自のログインがないため、
--allow-hc-no-authも指定しない限り--mux hc --no-authは拒否され、container up --mux hcも拒否されます - サービスファイルに秘密情報なし - systemdユニット、launchdエージェント、スケジュールタスクにパスワードは含まれません
- 本番環境ではHTTPS(Tailscale)を使用
- 信頼できるネットワーク/VPNに制限
- サインイン済みまたはペアリング済みのデバイスにできること、紛失したときの対処: セキュリティモデル
その他のプロジェクト
| プロジェクト | 説明 |
|---|---|
| GitHub Flex | GitHubのインターフェースを生産性向上機能で強化するクロスブラウザ拡張機能(Chrome & Firefox) |
| TabRest | 非アクティブなタブを自動的にアンロードしてメモリを解放するChrome拡張機能 |
| Specpin | 実行中のWeb UIの要素に、Gitでバージョン管理された生きた業務仕様をピン留め(ブラウザ拡張機能 + Go sidecar) |
ライセンス
MIT
関連プロジェクトを探す
読み込み中…
