borg-commander

mcp
Guvenlik Denetimi
Gecti
Health Gecti
  • License — License: Apache-2.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 13 GitHub stars
Code Gecti
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Midnight Commander + Yazi + Terminal multiplexer

README.md

The Borg Commander badge glitching and settling

██████╗  ██████╗ ██████╗  ██████╗
██╔══██╗██╔═══██╗██╔══██╗██╔════╝
██████╔╝██║   ██║██████╔╝██║  ███╗
██╔══██╗██║   ██║██╔══██╗██║   ██║
██████╔╝╚██████╔╝██║  ██║╚██████╔╝
╚═════╝  ╚═════╝ ╚═╝  ╚═╝ ╚═════╝
c o m m a n d e r

A two-panel file manager with your shell built in.
macOS & Linux · Bash, zsh & fish

Download · Install · Website & guide · Development

Borg Commander starting with its glitching logo, then browsing files, previewing code, inspecting a Git diff, and switching to the shell

Resistance is futile.

Why Borg

There have always been good terminals and good file managers. Programs that are both are rare:
two file panels with your shell running underneath, one Ctrl-O away. Norton Commander made that
layout famous on DOS. Volkov Commander, DOS Navigator, FAR Manager and Midnight Commander kept it
going, but most of them stayed in the DOS and Windows console era.

Borg Commander is a direct continuation of those projects for current macOS and Linux. It keeps
the keys you remember: F3 views, F4 edits, F5 copies, F6 moves, and Ctrl-O switches between the
panels and your bash, zsh or fish. On top of that it brings Git, Docker, remote sessions and
access for Claude and other agents into the same two panels.

Install

curl -fsSL https://raw.githubusercontent.com/0xcd21h/borg-commander/main/scripts/install.sh | sh

The installer verifies the checksum, puts borg in ~/.local/bin (or /usr/local/bin as
root), adds it to your PATH if needed, and starts it. In a terminal it also asks whether borg
should start at boot as a service, which keeps sessions running with no terminal open. That is
optional and the default answer is n; BORG_SERVICE=1 sets it up without the question, and
F9 → Remote → Background service… sets it up later. Update with borg update: open sessions move to the new version and keep their shells. Binaries for
macOS (Apple Silicon or Intel) and Linux (ARM64 or x86-64) are on
Releases.

Controls, settings, and source installation → ·
Build, test, and contribute →

What you can do with it

  • Work in two panels with your own shell below. Bash, zsh or fish keep their history and completion, and Ctrl-O shows the whole console.
  • Free up disk space. Alt-I sizes folders while you browse, Alt-Shift-D shows the largest branches first, and Alt-D finds every heavy folder such as node_modules.
  • Find files and the text inside them. Ctrl-F searches names and contents below a folder, and F4 opens a hit in the editor at the match.
  • Read and edit in place. F3 shows code, Markdown, images and hex, and F4 edits with highlighting, find and replace.
  • Copy and move large trees. Jobs run in the background with progress, pause and conflict handling, and a cancelled copy run again skips what is already there.
  • See what a process is doing. Alt-M sorts processes by CPU, memory or disk, K signals one, and Enter opens its memory map.
  • See what talks to the network. Alt-N lists listening ports and who can reach them, traffic per process, and R captures packets.
  • Check what starts on its own. Alt-U lists launch agents, systemd units, cron jobs, shell startup files and SSH keys, newest change first.
  • Catch a suspicious process on Linux. The watcher flags a shell started by a web server or a program run from /tmp, and can freeze it until you decide.
  • Manage containers. Alt-C lists Compose projects with live CPU and memory, and opens a container's files in a panel or a shell inside it.
  • Let Claude work on any machine with you. Pair once, and Claude on your computer reaches your borg over MCP and asks before every change.
  • Reach your machines without an open port. Remote panels and live mirrors of paired machines go through an end-to-end encrypted relay.

Borg and a plain shell

The same jobs, done once in a plain shell and once in Borg. Shell keys count every character of
the commands an experienced admin types, plus Enter.

Job Plain shell Borg Shell keys Borg keys
Free disk space taken by core dumps and old ISOs du -d1 | sort -h folder by folder, ls, rm Alt-Shift-D, mark, F8 223 33
Find a launch agent and an SSH key that should not be there ls, plutil -p, crontab -l, cat, sed -i Alt-U, F3 to read, delete from the panel 302 16
Stop a runaway process and delete the log it fills ps | grep, lsof -p, kill, rm Alt-M, filter, its open files, F8, K 88 26
Finish a copy you cancelled halfway rsync -a with the same paths again F5 again, skip what is already there 101 62

Claude in any terminal

Open borg on a server, in a container, or in a terminal in your browser, and Claude on your
computer works there with you. Borg connects out to borg cloud, a relay, so the machine needs
no open port, no SSH key and no public address. Firewalls and NAT stay as they are.

  • Pair once. F1 then C shows a link. Run borg pair with it on your computer and approve
    the computer in borg. Claude Code then reaches that borg whenever it is open.
  • Claude sees what you see. The screen, both panels, the console and what is typed at the
    prompt. It reads files, folders, processes, containers, startup items and the network's ports
    and connections, and shows you files in a panel.
  • You approve every change. Commands, new files and edits wait in a dialog that shows the
    whole command or the diff. For a paired computer, Approve all can temporarily accept its
    changes for one session until you turn it off or disconnect. Commands run in your console, where you watch them and answer
    prompts such as sudo's.
  • Files both ways. borg get and borg put, or Claude's download and upload tools, copy
    files between the server and your computer. Uploads wait for your approval.
  • Help at the prompt. Claude can type a command at your prompt, or a script into vim or
    nano, for you to check and run yourself.

borg sessions manages named workspaces, and with more than one, borg starts with a window to
open, create or remove them. The first borg starts a background service that keeps borg cloud
connected for every Borg on the machine, and borg service keep NAME keeps a session running with
no terminal. borg service install and enable start the service at boot.
Open a workspace with borg --session NAME, or one the service keeps with
borg service attach NAME; Ctrl-] detaches. One borg mcp connection can list and select local
or paired targets. borg --remote MACHINE:SESSION opens a paired session's filesystem in a local
panel with F5 copies to and from local folders, and borg mirror MACHINE:SESSION shows its live screen in the local terminal.
Regular sessions can be mirrored while Borg is running, without a background service.
The mirror displays its control status; Ctrl-T takes control from a view-only mirror, and Ctrl-G exits.
In Remote hosts (Alt-H), U updates a paired host, and a mirror of it reconnects once the host is back.

Why the connection cannot be taken over. Each borg holds its own key. Pairing exchanges
the keys through a link that only your screen shows, and you confirm in borg that both
screens show the same pairing code, six emoji with their names. Every connection then opens with a Noise handshake bound to those keys,
and everything after it is encrypted from one borg to the other. The relay forwards bytes it
cannot read. Whoever runs the relay, or breaks into it, can neither read nor change the
traffic, nor answer in either borg's name: the private keys never leave the two machines.

Fair use. borg cloud is a free relay shared by everyone who uses borg. It carries borg's
traffic only, within limits on bandwidth and connections, and it may change or stop without
notice. Use it for machines you own or are allowed to work on. To keep the relay under your
own control, run your own.

Files and a real shell

Keep two folders side by side and type commands at the prompt below. Borg runs your
Bash, zsh, or fish session, with its history, completion, and multiline editing.
Ctrl-O switches between the panels and the console.

Contents search results for TODO on the left, and Borg's editor in the right panel open at the selected match with the find bar

  • Move files while you keep browsing. Copy, move, and delete in background jobs,
    with progress, pause, and conflict handling. Mark a few files or select a whole pattern.
  • Look inside without leaving the folder. Preview highlighted code, formatted Markdown,
    and images. Scroll a document in quick preview, expand it into the viewer, and keep your place.
    Large text files load around the visible page. Binary files open as hex rows, and H switches any
    file between hex and text.
  • See Git beside your files. Branch names and file status in the panels; diffs, recent
    commits, staging, and unstaging in the Git menu. The bundled plugin can be switched off.
  • Edit in a panel. F4 opens Borg's editor with highlighting, find and replace, undo, and
    mouse selection. Alt-E puts it inside a panel, beside its folder or another file. From search
    results it opens in the other panel at the match, and the list stays in view.
  • Use the mouse or stay on the keys. Click menus, select files, and scroll previews.
    Familiar function-key actions also work with Esc followed by a digit.
  • Jump to any folder. Type cd and pick from your hotlist and recent folders right above
    the prompt. Type a path and its subfolders appear, narrowing as you type, in cd and in any
    other command. Ctrl-\ opens the whole list, and a typed cd moves the panel without flashing
    the console.

Typing cd ~/projects/ lists its subfolders, recent folders and a pinned folder above the command line

Find what takes space

A size tree of a project, largest folders first, beside a panel showing measured folder sizes

  • Sizes while you browse. Alt-I measures every folder below the current one in the
    background. Totals fill in as they finish, and you can keep navigating or typing commands.
  • A size tree. Alt-Shift-D opens the folder as a tree, largest branches first, with a
    row for the bytes stored directly in each folder.
  • Find the heavy folders. Alt-D searches for folders over a size or file count, such as
    every node_modules, and lists them with their source paths. Mark them and delete with F8.
  • Measured once, shown again. Finished scans are saved locally and reused by the panels,
    the tree, and the search, marked with the date they were measured. Ctrl-R rescans.

Folder size search listing every folder over 200 MB across several projects

Processes and memory

Activity monitor with a process list and a chart of the selected process's resident memory over the last minute

  • A live process list. Alt-M shows CPU, RAM, memory growth, and disk rates, sorted by
    any column or as a tree. The other pane charts the selected process's memory over the last minute.
  • Signals and priority. K sends Terminate, Kill, Stop, Continue and the other common signals,
    or changes the priority. A process that belongs to someone else takes the administrator's password.
  • Where the memory goes. Enter opens the process's memory map, grouped by purpose and
    ranked by footprint: the memory charged to that process alone, separate from shared
    libraries that only make it look large.
  • Look inside. Preview any readable region as hex or text, compare two captures, search a
    process's memory for text or bytes, and list its open files. Administrator access is only
    requested when you ask for it.
  • What starts on its own. Alt-U lists launch agents and daemons, systemd units and timers,
    cron jobs, shell startup files and SSH keys in one list, newest change first, with the program
    each one runs, whether that program is there, and the rules it matched.
  • Watch what starts. On Linux, turn on Watch in Options and borg service start keeps an eye
    on every process that begins: a shell opened by a web server, a program running from /tmp or
    from a deleted file, a forced library, a run of commands looking around the machine. Borg learns
    what is normal here for a week first, then freezes what it is sure about, which stops the
    process where it is without giving a supervisor anything to restart. Alt-L lists the alerts with
    the evidence, and C, K or A lets it go on, ends it, or allows that start for good.

Memory map grouped by purpose with footprint, resident and mapped columns, explaining that shared libraries are not the process's own cost

Network

Network screen listing processes by traffic beside the selected browser's download and upload charts and its connections

  • Every open port and who can reach it. Alt-N lists the ports your processes listen on and
    says who can connect to each one: all networks, one address, or only this machine.
  • Traffic by process. Download and upload rates for each process, connection and interface,
    with charts of the last minute and the names of the hosts on the other end.
  • Straight to the culprit. Filter with words such as port:443, proc:node or
    !state:time_wait. Enter shows the row's process in the activity monitor, and K signals it.
  • Look inside the packets. R records the selected port, connection or process with tcpdump,
    which Borg offers to install with your package manager when it is missing, and runs as
    administrator after the system's password dialog when it needs to. The viewer sorts the packets
    by process, host and connection, down to each packet's layers and bytes. Each connection stays
    whole for its first 1 MiB and keeps only its headers after that, so a long download does not
    fill the file. On macOS an
    administrator capture tags every packet with its process. F3 opens .pcap files the same way.
    A capture can set SSLKEYLOGFILE in Borg's shell and keep the TLS keys of the programs you
    start, and an encrypted connection's stream then shows what it carried, also for programs that
    pin their certificates. Programs that never write their keys can go through Borg's own HTTPS
    proxy instead, signed by a CA made for that capture or by your development CA.

Containers

Docker view listing Compose projects and their containers with live CPU and memory, beside the selected container's details and charts

  • Your Compose projects at a glance. Alt-C lists containers by project with live CPU and
    memory. S, X, R and P start, stop, restart and pause a container or a whole project.
  • Step inside. F opens a container's files in a panel beside a host folder, and F5 copies
    either way. E opens a shell, and the command line follows you into the container.

Themes

Six built-in themes, from Classic blue to Paper. Pick one from the menu or make your own.

Midnight Aurora
Midnight: dark panels with cyan borders and a blue selection Aurora: dark panels with blue and purple accents
Neon Classic
Neon: dark panels with bright cyan and pink accents Classic: blue panels with cyan highlights
Paper Ember
Paper: light panels with muted accents Ember: dark panels with warm orange accents

Every download includes Borg Mono, a font with file icons. Ghostty uses rich icons
automatically; other terminals start with portable symbols. Font setup.

License

Borg Commander is available under either the MIT License or the
Apache License, Version 2.0, at your option. Unless you say otherwise,
any contribution you submit is licensed the same way, without additional terms.

Screenshot rendering uses bundled DejaVu Sans Mono and Symbols Nerd Font.
The icon table comes from nvim-web-devicons
through yazi. Font and icon licenses are included in the repository.

Syntax definitions and highlighting themes come from two-face
and bat; their licences are in SYNTAX-LICENSES.md.

Yorumlar (0)

Sonuc bulunamadi