Skip to main content

runspec-linux

Linux system-administration runnables (plus crontab, filesystem, and the cross-platform web/TLS/API probes) for runspec. pip install it into a venv and the runnables are discoverable by runspec local, runspec serve (MCP), and runspec-console.

All runnables emit JSON on stdout. Read-only runnables are autonomy = "autonomous"; state-changing ones are autonomy = "confirm".

Nothing here runs as root. A tool runs as whoever owns its venv (runspec

= 0.68.0): you in a personal venv, or the service account in a shared one. --run-as picks another unprivileged account and refuses root. The tools that need root (package upgrades/installs, reboot-host, set-sysctl, enable-passwordless-sudo) are in runspec-linux-root, for a root-owned admin venv.

Install

pip install runspec-linux

Runnables

Group Runnables
System system-info, disk-usage, block-devices, check-memory, cpu-info, pressure
Processes list-processes
Services list-services, check-service, restart-service, service-detail, failed-units
Logs tail-log, search-log, journalctl
Network network-interfaces, ping-host, check-port, show-connections, trace-route, route-table, socket-stats, dns-config, open-ports
Kernel params get-sysctl
Files find-large-files, backup-files, owning-package
Sessions last-logins, who
Containers list-containers, container-logs, restart-container
Packages (read-only) list-packages, list-autoremovable
TCP nc-command
Commands which
Cron cron (multi-verb: list/add/remove/clear)
Filesystem filesystem (multi-verb, backed by runspec-fs-core)
Web / TLS / API cert-check, cert-chain, tls-info, http-check, http-headers, redirect-trace, dns-lookup, api-spec

The package runnables auto-detect apt / dnf / yum / zypper / pacman. The web/TLS/API probes are pure HTTP (shared with runspec-windows via runspec-webops-core) and run anywhere.

system-info
list-packages --filter nginx
check-port --host db-01 --port 5432
cert-check --url https://internal.example.com

Python venvs

The venv runnables (create-venv, install-into-venv, configure-pip, share-venv-logs) were removed in 0.20.0. Provision a venv on a host from runspec-console (Settings → Jump Hosts → Provision new venv…), install packages from its Marketplace tab, or on the command line use python -m venv, pip install and runspec logs share --inbox.

Public Python API

The pure logic lives in runspec-linux-core — no runspec dependency, no runspec.toml, no entry points (so it surfaces no runnables). A corporate wrapper package that only wants a helper should depend on the core alone:

from runspec_linux_core import nc_send, system_info, which

The helpers are also re-exported from runspec_linux for back-compat. Core helpers return plain data and raise (ToolNotFoundError / CommandError) on failure; the runnable wrappers catch these to render the CLI/agent behaviour.

Development

python -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]"
ruff check . && ruff format --check .
pytest

Metadata

Release files for runspec-linux 0.21.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 runspec-linux 0.21.0
File Size Uploaded Provenance Actions
runspec_linux-0.21.0.tar.gz 37.0 kB With provenance Details for runspec_linux-0.21.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for runspec-linux 0.21.0
File Interpreter ABI Platform Actions
runspec_linux-0.21.0-py3-none-any.whl Python 3 none any Details for runspec_linux-0.21.0-py3-none-any.whl

Total release size: 66.3 kB

Release files / runspec_linux-0.21.0.tar.gz

Download URL runspec_linux-0.21.0.tar.gz
Size 37.0 kB
Tags Source
SHA-256 checksum
How to use checksums
866a976cb3975b7fcf58c60a429f3b760b5f7ac8dcca26da45f2dc96eddbe2bc
BLAKE2b-256 checksum
How to use checksums
5502776311c5136a61fb32eb6860a953a813d4e944b0b91a00a28ab3d15620ab
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 Nov 8, 2026.

Transparency log

Release files / runspec_linux-0.21.0-py3-none-any.whl

Download URL runspec_linux-0.21.0-py3-none-any.whl
Size 29.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5efd82d53c9fb79a192cd47c5929924c2b7e99180a594fb9b21c4c314f94f05c
BLAKE2b-256 checksum
How to use checksums
bf4666aa16f7e095a311bb3b3d4124107c0ecc583bdaacd2de2e44976860b0c9
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 Nov 8, 2026.

Transparency log

Security for runspec-linux 0.21.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for runspec_linux-0.21.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 Nov 8, 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.21.0 This release

2 release files Full provenance

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