Glances 🌟
Glances is an open-source, cross-platform system monitoring tool. It shows in real time CPU, memory, load, disks, file systems, network, sensors (temperatures, voltages, fans, battery), GPUs, NPUs and processes. It also monitors containers (Docker, Podman, LXD) and virtual machines (Multipass, libvirt). Everything is presented in an easy-to-read dashboard, in the terminal or in a Web browser, and you choose what to display.
In client/server mode, remote monitoring could be done via terminal, Web interface or RESTful API. Stats can also be exported to files or external time/value databases, CSV or direct output to STDOUT.
AI assistants (Claude, Cursor, …) can query Glances directly through the built-in MCP server.
Glances is written in Python and uses libraries to grab information from your system. It is based on an open architecture where developers can add new plugins or exports modules. It can also be used as a Python library in your own scripts and notebooks.
Usage 👋
Glances can be used in the following modes.
1. TUI (standalone mode)
Monitor the local machine in your terminal:
$ glances
Press h in the interface to display the hotkeys.
2. WebUI (Web server mode)
Start the Web server (REST API and WebUI):
$ glances -s
(-w is an alias of -s) and enter the URL http://localhost:61208 in your favorite web browser.
The server listens on 127.0.0.1 by default. To reach it from another machine, listen on all interfaces with -B 0.0.0.0 (or bind_address in the [outputs] section of the configuration file) and enter the URL http://<ip>:61208.
It’s also propose additional features like charts:
and alerts summary:
The same server exposes a HTTP/RESTful API under /api/5, see the RestfulApi documentation. It is not protected by default, see Advanced usage 🔧 to set a password.
3. TUI client / server mode
Start a server on the machine to monitor:
server$ glances -s -B 0.0.0.0
and display it in the terminal of another machine:
client$ glances -c <server_ip>
The client reads the stats from the server REST API (use --password to be prompted for the server password). A Glances 5 client only talks to a Glances 5 server.
4. TUI browser
List all Glances servers available on your network (Zeroconf) or defined in the [serverlist] section of the configuration file, then open one of them:
$ glances --browser
5. WebUI browser
The same servers list, served in a Web page at http://<ip>:61208/browser:
$ glances -s --browser
6. MCP server
Start the Web server with the MCP (Model Context Protocol) server enabled:
$ glances -s --enable-mcp
The MCP endpoint is then available at http://<ip>:61208/mcp (Streamable HTTP) and http://<ip>:61208/mcp/sse (SSE, for older clients); the startup log gives both. Plug it into your AI assistant (here opencode) and ask it for the state of the machine:
$ opencode mcp add glances --url http://localhost:61208/mcp
See the McpApi documentation for client configuration and usage.
7. Fetch mode
Get (and share) a quick look of a machine, then exit:
$ glances --fetch
The output can be customized with a Jinja template (--fetch-template), see the Fetch documentation.
Gateway to other services 🌐
Glances can export its stats to:
📁 Files |
|
📈 Time series |
|
🗄️ Databases |
|
📨 Message brokers |
|
🔗 HTTP |
Example: export stats without any interface (-q is the quiet mode), thanks to the CSV export module:
$ glances -q --export csv --export-csv-file /tmp/glances.csv
Advanced usage 🔧
Display raw stats on stdout:
$ glances --stdout cpu.user,mem.used,load
cpu.user: 30.7
mem.used: 3278204928
load: {'min1': 0.21, 'min5': 0.4, 'min15': 0.27, 'cpucore': 4}
cpu.user: 3.4
mem.used: 3275251712
load: {'min1': 0.19, 'min5': 0.39, 'min15': 0.27, 'cpucore': 4}
...
or in a CSV format thanks to the stdout-csv option:
$ glances --stdout-csv now,cpu.user,mem.used,load
now.iso,now.custom,cpu.user,mem.used,load.min1,load.min5,load.min15,load.cpucore
2026-10-11T15:12:54+00:00,2026-10-11 15:12:54 UTC,7.3,5948149760,1.04,0.99,1.04,4
2026-10-11T15:12:56+00:00,2026-10-11 15:12:56 UTC,5.4,5949136896,1.04,0.99,1.04,4
...
or in a JSON format thanks to the stdout-json option (one JSON object per refresh, attribute not supported in this mode):
$ glances --stdout-json cpu,mem
{"cpu": {"user": 24.7, "system": 3.8, "idle": 71.4, "nice": 0.0, "iowait": 0.0, "irq": 0.0, "steal": 0.0, "guest": 0.0, "total": 29.0, "ctx_switches": 0, "interrupts": 0, "soft_interrupts": 0, "syscalls": 0, "cpucore": 4}, "mem": {"total": 7837949952, "available": 2919079936, "percent": 62.8, "used": 4918870016, "free": 2919079936, "active": 2841214976, "inactive": 3340550144, "buffers": 546799616, "cached": 3068141568, "shared": 788156416, "slab": 158588928}}
...
Protect the Web server with a password: generate a password hash
$ glances --set-password
and paste the printed value into the password key of the [outputs] section of your glances.conf file.
Serve the REST API without the WebUI, and browse its interactive documentation (Swagger at /docs, ReDoc at /redoc):
$ glances -s --disable-webui --api-doc
Choose what is collected and displayed:
$ glances --modules-list # list plugins and exporters
$ glances --disable-plugin sensors,wifi # do not collect these plugins
$ glances -t 5 # refresh every 5 seconds
$ glances -f 'python.*' # filter the process list
Use another configuration file with -C <path>, or override any key with an environment variable GLANCES_<SECTION>__<KEY>=<value> (handy in containers), see the Configuration documentation.
Report a bug: glances --issue tests every plugin and prints a Markdown report to paste into the GitHub issue.
If you do not want to remember all those options, @yottajunaid has created a simple launcher for Linux.
Use Glances as a Python library 📚
Every Glances plugin is available from Python, as a read-only mapping:
>>> from glances import api
>>> gl = api.GlancesAPI()
>>> gl.cpu["total"]
6.8
>>> gl.auto_unit(gl.mem["used"])
'9.45G'
>>> gl.network.keys()
['wlp0s20f3', 'mpqemubrzone1', 'tap-8d309783ee6']
>>> gl.network["wlp0s20f3"]["bytes_recv"]
101.7532271038767
>>> [p["name"] for p in gl.top_process(limit=3)]
['Isolated Web Co', 'terminator', 'claude']
>>> gl.plugins()
['amps', 'containers', 'core', 'cpu', 'diskio', 'folders', 'fs', 'gpu', 'ip', ...]
By default the stats are collected on demand, when they are read. In a notebook or a long-running tool, let Glances collect them in the background, so the history and the alerts fill up between two reads:
>>> import time
>>> with api.GlancesAPI(background=True, plugins=["cpu", "mem"]) as gl:
... time.sleep(60)
... gl.cpu.history(nb=30)
... gl.alerts()
Each plugin view also gives its fields description (.fields), its thresholds (.limits) and its alert levels (.levels). The API reads glances.conf as Glances does, but never runs the configured actions nor the exporters.
The Glances 5 Python API replaces the Glances 4 one. See the PythonApi documentation for the complete reference.
Documentation 📜
The complete documentation is on readthedocs:
Topic |
Content |
|---|---|
First steps, modes and hotkeys |
|
All the command line options |
|
The glances.conf file |
|
📊 Plugins |
What every plugin shows, and how to tune it |
🌐 Exports |
Gateways to other services |
🔌 RestfulApi / PythonApi / McpApi |
The APIs |
🐳 Docker |
Run Glances in a container |
❓ FAQ |
Frequently asked questions |
If you have any question (after RTFM! and the FAQ), please post it on the official Reddit forum or in GitHub Discussions.
Installation 🚀
PyPI: pip, pipx or uv
Glances is on PyPI. Install it in a virtual environment with pip:
python3 -m venv ~/.venv
source ~/.venv/bin/activate
pip install 'glances[all]'
or, as an isolated application, with pipx or Uv:
pipx install 'glances[all]' # installed in ~/.local/bin
uvx glances # install and run in one line
To upgrade: pip install --upgrade glances (or pipx upgrade glances).
pip install glances (without extra) installs a minimal Glances, without the Web interface. Pick only the features you need between the brackets, for example pip install 'glances[web,containers]':
Extra |
Feature |
|---|---|
all |
All the features below |
web |
Web server mode (WebUI and REST API) |
mcp |
MCP server (AI assistant integration) |
browser |
Servers autodiscovery for the browser modes |
containers |
Docker, Podman and LXD containers |
gpu |
NVIDIA GPU |
sensors |
Battery (Linux) |
raid / smart |
RAID and S.M.A.R.T. plugins (Linux) |
wifi |
No dependency (kept for backward compatibility) |
cloud |
Cloud instance metadata |
action |
Mustache templating in the alert actions |
export / graph |
Export modules / SVG graph export |
Note: psutil, the main Glances dependency, is built from source when no wheel is available for your platform. Python headers and a C compiler are then required (python3-dev and gcc on Debian/Ubuntu, python3-devel on Fedora/RHEL).
How to contribute ? 🤝
If you want to contribute to the Glances project, read this wiki page.
There is also a chat dedicated to the Glances developers:
Project sponsorship 🙌
You can help me to achieve my goals of improving this open-source project or just say “thank you” by:
sponsor me using one-time or monthly tier Github sponsors page
send me some pieces of bitcoin: 185KN9FCix3svJYp7JQM7hRMfSKyeaJR4X
Any and all contributions are greatly appreciated.
License 📜
Glances is distributed under the LGPL version 3 license. See COPYING for more details.
Metadata
Release files for Glances 5.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| glances-5.0.0.tar.gz | 10.0 MB | Without provenance | Details for glances-5.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| glances-5.0.0-py3-none-any.whl | Python 3 | none | any | Details for glances-5.0.0-py3-none-any.whl |
Total release size: 11.2 MB
Release files / glances-5.0.0.tar.gz
| Download URL | glances-5.0.0.tar.gz |
|---|---|
| Size | 10.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e41a885a89c133c7be389fb8e1e8d8eb9b2e62bae37aaec8f32b398d8a411483
|
|
BLAKE2b-256 checksum How to use checksums |
db31d762207e4fd1f1670c6e506ce2057c5fac1a3b4c592be2629b79e737672f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / glances-5.0.0-py3-none-any.whl
| Download URL | glances-5.0.0-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf869939b7de83779aa25099275247da7a04999d0cfd2dab79adfeebd53ab3c7
|
|
BLAKE2b-256 checksum How to use checksums |
8cd0ba49164125a80396492e6392a43b9893ed43f53bcdf287e77c2893a24272
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Security for Glances 5.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.