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.0

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.0
File Size Uploaded Provenance
servchart_agent-0.4.0.tar.gz 25.5 kB With provenance Details

Built distribution (wheel)

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

Total release size: 50.2 kB

Release files / servchart_agent-0.4.0.tar.gz

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

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.0-py3-none-any.whl

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

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.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.

Full provenance

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

Select from 2 files

Attestation for servchart_agent-0.4.0.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