Self-healing supervision agent for Linux hosts and Kubernetes.
Project description
Spero
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spero-0.1.0.tar.gz.
File metadata
- Download URL: spero-0.1.0.tar.gz
- Upload date:
- Size: 262.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00ccf3e86f2f64560a18ddc7e3f834aa16ae0a41d9ae9bda3bb61c835828bfc6
|
|
| MD5 |
c86478ef354d230c9c96318d8d5f505c
|
|
| BLAKE2b-256 |
c339111794ace296a3c9097b7d2999c39c08a364c7a49c0875223b7ded0fbfd4
|
Provenance
The following attestation bundles were made for spero-0.1.0.tar.gz:
Publisher:
release.yml on altikva/spero
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spero-0.1.0.tar.gz -
Subject digest:
00ccf3e86f2f64560a18ddc7e3f834aa16ae0a41d9ae9bda3bb61c835828bfc6 - Sigstore transparency entry: 1721926232
- Sigstore integration time:
-
Permalink:
altikva/spero@7629bd25866d8b58355b2b1b93b6a2e8d3f2e094 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/altikva
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7629bd25866d8b58355b2b1b93b6a2e8d3f2e094 -
Trigger Event:
push
-
Statement type:
File details
Details for the file spero-0.1.0-py3-none-any.whl.
File metadata
- Download URL: spero-0.1.0-py3-none-any.whl
- Upload date:
- Size: 43.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1233a63667c6a4bf0528e1b98ee8e511a55c3f065d23ef0a3610aaa583353bbd
|
|
| MD5 |
cc0143d98c0884e86389c3ee2dca17e5
|
|
| BLAKE2b-256 |
c1a5113ba9a96efff6a7be10a1c326282309c5a0b51bf1b665b1b3191df6bea9
|
Provenance
The following attestation bundles were made for spero-0.1.0-py3-none-any.whl:
Publisher:
release.yml on altikva/spero
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spero-0.1.0-py3-none-any.whl -
Subject digest:
1233a63667c6a4bf0528e1b98ee8e511a55c3f065d23ef0a3610aaa583353bbd - Sigstore transparency entry: 1721926337
- Sigstore integration time:
-
Permalink:
altikva/spero@7629bd25866d8b58355b2b1b93b6a2e8d3f2e094 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/altikva
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7629bd25866d8b58355b2b1b93b6a2e8d3f2e094 -
Trigger Event:
push
-
Statement type: