Scripts2026年7月19日·1 分钟阅读

gotop — Terminal-Based Graphical Activity Monitor

A Go-based terminal system monitor inspired by gtop and vtop that renders CPU, memory, disk, network, and process data as responsive ASCII charts.

Agent 就绪

先审查再安装

这个资产需要先审查。复制的指令会要求 Agent dry-run、列出写入项,确认后再继续。

Needs Confirmation · 64/100策略:需确认
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
gotop
先审查命令
npx -y tokrepo@latest install 65deaa42-830c-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run,确认写入项后再运行此命令。

Introduction

gotop is a terminal-based graphical activity monitor written in Go. It renders real-time system metrics as ASCII line graphs and sparklines, providing an at-a-glance overview of CPU, memory, disk, network, and process activity in a visually compact layout.

What gotop Does

  • Displays per-core CPU usage as scrolling line graphs
  • Shows memory and swap consumption with visual bars
  • Monitors network I/O with real-time bandwidth graphs
  • Lists processes sortable by CPU, memory, or PID
  • Renders disk usage and temperature sensors when available

Architecture Overview

gotop is written in Go using the termui library for terminal rendering. It polls system metrics via gopsutil (a Go port of psutil) at regular intervals and renders them as terminal widgets. The layout is responsive and adapts to terminal size. Each widget runs independently, allowing selective display of components.

Self-Hosting & Configuration

  • Install via Homebrew, AUR, Nix, or download prebuilt binaries from GitHub
  • Configuration file at ~/.config/gotop/gotop.conf (created on first run)
  • Customize which widgets appear using the -l layout flag
  • Set update interval with -r flag (default 1 second)
  • Color schemes can be specified with -c flag (monokai, default, solarized, etc.)

Key Features

  • Single static binary with zero dependencies
  • Configurable layouts to show only the metrics you care about
  • Multiple built-in color schemes with custom theme support
  • Battery level widget for laptops
  • Minimal CPU overhead compared to GUI monitoring tools

Comparison with Similar Tools

  • btop++ — More polished UI with mouse support; gotop is simpler and lighter
  • htop — Process-focused only; gotop adds CPU/memory/network graphs
  • glances — Feature-rich with web UI; gotop is more visually focused on terminal charts
  • bottom — Rust-based with similar features and active maintenance
  • bpytop — Python version with similar aesthetics; gotop is a single Go binary

FAQ

Q: Is gotop still maintained? A: The original repo by cjbassi is archived. Community forks (xxxserxxx/gotop) continue active development.

Q: Does gotop work on macOS? A: Yes, it supports Linux, macOS, and FreeBSD.

Q: Can I use gotop over SSH? A: Yes. It works in any terminal emulator that supports 256 colors and Unicode.

Q: How do I show only specific widgets? A: Use the -l flag with a layout string, e.g., gotop -l minimal to show CPU and memory only.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产