Skip to main content

servchart-agent

The agent for ServChart, a self-hosted map of your servers, containers and Compose stacks.

It reads this host's Docker state (GET requests only), drops anything sensitive, and sends it to your ServChart hub every 60 seconds. It has no dependencies beyond Python's standard library.

Run it

With Docker (recommended):

docker run -d --name servchart-agent --restart unless-stopped --pid host \
  -v /var/run/docker.sock:/var/run/docker.sock:ro \
  -v /:/host:ro,rslave -e SERVCHART_HOST_ROOT=/host \
  -e SERVCHART_OBSERVE_CONNECTIONS=1 \
  -e SERVCHART_HUB=https://servchart.example.com \
  -e SERVCHART_TOKEN=sc_... \
  opticodev/servchart-agent:latest

Without Docker, from PyPI. The user running it needs access to the Docker socket, for example by being in the docker group:

pipx install servchart-agent        # or: pip install servchart-agent
servchart-agent --hub https://servchart.example.com --token sc_...
servchart-agent --stdout            # print what would be sent, send nothing

Get the token from the hub: + Add host in the map.

What it sends

It sends container names, images, state and health, networks and IPs, published ports, mounts, restart policy, and Compose stack details (project, service, folder, compose files). It never sends environment variables or container commands, and secret-looking label values are redacted. Set SERVCHART_HIDE_PATHS=1 to also drop host paths and stack folders.

Since 0.4 it also reports server health (CPU, memory, load, uptime, disk usage of each mount point), per-container CPU and memory, Docker's disk use, and backup status files from /var/lib/servchart/status. After a backup job, record it with servchart-agent --mark NAME (add --failed when it failed).

All options are in the main README.

Metadata

Release files for servchart-agent 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for servchart-agent 0.4.1
File Size Uploaded Provenance
servchart_agent-0.4.1.tar.gz 25.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for servchart-agent 0.4.1
File Interpreter ABI Platform
servchart_agent-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 50.2 kB

Release files / servchart_agent-0.4.1.tar.gz

Download URL servchart_agent-0.4.1.tar.gz
Size 25.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bbb24f2e30606e0644fe19fcda2cd8012af6a0ba116cd843c0878a5be91c268f
BLAKE2b-256 checksum
How to use checksums
fe0a86be83d9409926e050066f62e35501403b5ecef6764cd36cc6127251ab75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / servchart_agent-0.4.1-py3-none-any.whl

Download URL servchart_agent-0.4.1-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be6c1de290e75577610bffa64d47ad67fe7e018692f7d0cd23b05a008ad2699c
BLAKE2b-256 checksum
How to use checksums
00a9be6f09cf2f6353c6745883a19f41c93220c285742bbbb9ac4286bcbecf2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for servchart-agent 0.4.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for servchart_agent-0.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page