Skip to main content

Self-healing supervision agent for Linux hosts and Kubernetes.

Project description

 ___ _ __   ___ _ __ ___
/ __| '_ \ / _ \ '__/ _ \
\__ \ |_) |  __/ | | (_) |
|___/ .__/ \___|_|  \___/
    |_|

Self-healing supervision agent for Linux hosts and Kubernetes.

Spero watches the things you run — processes, services, disks, workloads — notices when they break, and heals them under policy-governed autonomy. It sits between a single-host tool like Monit and a full Prometheus + Alertmanager + Ansible stack: lightweight, agent-based, cluster-aware, with an AI layer for prediction, root-cause, and policy-gated remediation.

Shipped under Altikva.

Status: pre-alpha, but the spine is complete. Spero supervises and heals Linux hosts (local + asyncssh) and Kubernetes (kubectl) through one engine, with an AI layer for prediction, root-cause, natural-language queries, and agentic (policy-gated) remediation. 91 tests, ruff + mypy clean.

Concepts

Spero is built on four seams so it spans hosts today and Kubernetes next without re-architecting:

Seam Question Examples
Provider where things run local, SSH host, Kubernetes
Probe how you know it is healthy process, systemd, port, disk, pod-ready
Remediation what to do about it restart, respawn, rotate, rollout, scale
Policy the declared intent YAML: target → probe → remediations + autonomy

Remediations carry an autonomy level — suggest, gated, or auto — so low-risk healing happens on its own while high-risk actions wait for a human.

Install

pip install spero            # or: uv pip install spero
pip install "spero[ai]"      # add the Claude-backed AI layer
pip install "spero[k8s]"     # add the Kubernetes provider deps

Quickstart

spero status                       # show targets from policies/example.yaml
spero run                          # run one supervision cycle
spero watch                        # supervise continuously (each target on its interval)
spero watch --ai-approve           # agentic: the model decides gated remediations
spero heal nginx                   # probe one target, walk its remediations interactively
spero ask "what flapped today?"    # natural-language query over the event history
spero serve                        # run the control-plane API on :8800

From source

git clone https://github.com/altikva/spero && cd spero
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
pytest                             # run the suite

License

Spero is released under the ALTIKVA Dual License v1.0 (MIT and CC BY-NC-SA 4.0), SPDX MIT AND CC-BY-NC-SA-4.0. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spero-0.2.0.tar.gz (280.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spero-0.2.0-py3-none-any.whl (62.3 kB view details)

Uploaded Python 3

File details

Details for the file spero-0.2.0.tar.gz.

File metadata

  • Download URL: spero-0.2.0.tar.gz
  • Upload date:
  • Size: 280.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spero-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1213278ae8c703dd070717fceb43cf1180ad22a7d4391bea7476b719be589b72
MD5 1af6597cb0d3f01541242477479bc906
BLAKE2b-256 460155bc077eb651d1a597b2006077389970249f26f0f1bd40284d0d2201d4a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for spero-0.2.0.tar.gz:

Publisher: release.yml on altikva/spero

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spero-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: spero-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 62.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spero-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85b603823404d911a03bb139ca1464c957015853be0d376ec3017ed2e04cc33a
MD5 a8587aec6deec2859fab8df690c47a0f
BLAKE2b-256 0d20dfd8f58bf0cd9ad6816e67c977a705a9ed7d7d86df4ed8196ab3c3f5d327

See more details on using hashes here.

Provenance

The following attestation bundles were made for spero-0.2.0-py3-none-any.whl:

Publisher: release.yml on altikva/spero

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page