Skip to main content

autoOps

An autonomous SRE agent. Point it at a Kubernetes namespace and it models the estate, names the service that is broken, shows the evidence it used, and re-reads the cluster to check its own answer — or hands a human a briefing saying why it could not.

Distribution autoops-sre; it installs the commands autoops and autoctl.

The bare name autoops on PyPI is an unrelated project. Install autoops-sre.

Install

For current source, use an authorised checkout of current main containing make install. The development repository is private: this route requires access, not an anonymous download. You need Git with reachable release tags and sufficient history, GNU Make, Python 3.12+ and uv.

git clone git@github.com:epappas/autoops.git
cd autoops
make install
"$(uv tool dir --bin)/autoops" packet tests/fixtures/packets/daemonset-crashloop --results-dir ./out

The packet demo uses checkout fixtures (not bundled in the package), with no provider or cluster contact. It is not live-state or transfer proof.

This builds a fresh sdist and wheel (make dist builds only), prints their persistent paths and SHA256 hashes, installs the exact wheel with uv tool install --force, and runs that installed binary outside the checkout to compare its version with wheel METADATA. It replaces an existing uv tool installation of autoops-sre; set both UV_TOOL_DIR and UV_TOOL_BIN_DIR for isolation. Use the exact installed binary path printed by the installer with version and --help, rather than assuming a command on PATH is the same installation. Build tools and dependencies may still need downloads or a populated uv cache. These targets do not publish anything.

Release tags give release versions; later commits and dirty checkouts give Hatch-derived development versions. A tag must contain these targets to use this route; existing v0.1.6 does not. Missing release tags/history and inherited SCM version overrides are refused rather than using a fallback.

Without repository access, PyPI's latest published version is 0.1.4 (checked 31 October 2026). It is older than current source; newer source is not being published to PyPI by this work:

uv tool install autoops-sre==0.1.4     # or: pip install autoops-sre==0.1.4 (Python 3.12+)
autoops version && autoops --help

Or as a container — the entrypoint is autoops:

docker pull ghcr.io/epappas/autoops:latest
docker run --rm ghcr.io/epappas/autoops:latest version

First Run

On a loopback kind/k3s cluster (KUBECONFIG set to a file whose every server is a loopback address), autoops diagnose --namespace <ns> runs with no approval. Any other cluster goes through init, and needs two things first: a pinned kubeconfig carrying the minting ServiceAccount's short-lived inline bearer and inline CA data, and read-mint RBAC installed by a cluster administrator. autoops init rbac prints the packaged, unrendered recipe offline; its help explains operator-selected HOME, signed approval, matching administrator server/CA and separate namespace bindings. Use the estate-side checked installer, not an automatic apply: this command does not sign, apply or mint. An exec user is refused even with a token. Certificate-only, auth-provider/OIDC-only and tokenFile-only users cannot mint. An arbitrary opaque/OIDC bearer is not a ServiceAccount minting identity; after the exec check, an inline token takes precedence over other user fields.

export KUBECONFIG=/path/to/one-cluster-kubeconfig.yaml
autoops init --namespace <ns>     # writes ./autoops.yaml and an unapproved target allowlist
# in autoops-init/crossing/allowlist.generated.yaml, add approved_by, approved_at, expires_at
# (explicit UTC offsets, at most 30 days apart); init prints the verify command to run next
autoops init verify --profile k8s-api-read --kubeconfig ... --target-allowlist ... --namespace <ns>
autoops diagnose

init never writes the three approval fields; until you add them, the cluster is refused. Bare autoops on a terminal with no config asks the same questions. diagnose exits 0 with a confident answer; 3 with an escalation briefing for a human (panel mode only); 4 when nothing could be read; 5 when a detector named a broken object (under --no-model or --json); 1 when no diagnosis was captured or the crossing or read-identity mint was refused; 2 on a usage error. diagnose --no-model needs no model or key.

What It Does

recall -> understand -> [detect -> map topology -> map services -> localize] -> rca -> mitigate -> remember

Perception is deterministic and comes first: 71 senses (autoops capabilities lists them), most reading the Kubernetes API and some reading pod logs or Prometheus, nominate what looks broken. autoops capabilities declares 17 data sources; on an approved cluster diagnose reads the Kubernetes API, Prometheus, Jaeger, Loki, CloudWatch and Datadog metrics to confirm or refuse each candidate. Elasticsearch and Splunk work on loopback clusters only; Azure Monitor, Google Cloud Monitoring, and Datadog logs and traces are declared but not yet wired in. By default it changes no workload or node.

Acting, Only When You Allow It

autoops diagnose --mitigate (off by default) can scale a Deployment up, pause a Deployment rollout, halt a DaemonSet rollout, or cordon worker nodes. Before anything changes, all of these must admit: the approved target allowlist names the namespace; --profile k8s-api-read and five --mutation-* inputs (approval file, two digest-pinned images, CA bundle, bearer token) are set; the engine has an unambiguous cause; a bounded Claude Agent SDK session takes the one verb the engine chose (its USD 0.25 cap applies only on the SDK's own authentication, not through AUTOOPS_SDK_GATEWAY_URL); a separate human-written approval file, unexpired, names the verb, namespace and kind, plus the workload for scale, pause and halt; Cedar policy re-checks the proposal (never scale to zero; never cordon a node carrying the node-role.kubernetes.io/control-plane or node-role.kubernetes.io/master taint; never drain, evict, delete or uncordon); a short-lived credential is minted; and the command runs in a Docker egress cage (Docker is needed on the host, and the image does not contain it). A cordon approval names no nodes: the engine picks the set, and the cluster RBAC's resourceNames is the only limit on which nodes. After the change, telemetry is re-read; if it does not confirm the result, the run records a refusal. Only scale has bounded governed restoration after confirmed regression; pause, halt and cordon undo remain manual (see Limits).

Commands

init, diagnose, watch, packet, offline, export, serve (http, mcp-stdio), console, tui, chat, capabilities, eval and version, plus bare autoops, which with a config on a terminal starts a private loopback server and opens the terminal screen. autoctl inspects an evidence tree; only autoctl escalations respond writes, appending a review record. serve http, console, tui and chat refuse to start without AUTOOPS_SERVE_TOKEN (at least 32 characters) in the environment. autoops <command> --help is the documentation of record for this distribution.

Model Configuration

The OpenAI-compatible path has no default model: set --model, model: in the config, or OPENROUTER_MODEL; without one, a command that needs a model refuses with exit 2. It uses OPENROUTER_API_KEY and OPENROUTER_BASE_URL (default https://openrouter.ai/api/v1), or model_base_url with model_key_file in the config. chat and the acting step use the Claude Agent SDK with model claude-opus-5 and the SDK's own authentication, unless AUTOOPS_SDK_GATEWAY_URL and AUTOOPS_SDK_GATEWAY_MODEL are set together.

Safety Notes

  • serve http permits loopback HTTP only; --allow-remote is refused, even on loopback. Remote access needs a same-host TLS-terminating proxy forwarding to the authenticated loopback backend, never a plaintext network hop. Native TLS is not provided.
  • "Loopback" means the API server address only: a tunnel or port-forward that puts a remote cluster on 127.0.0.1 is read with no approval.
  • Read-only mode still sends API create calls (SelfSubjectRulesReview, TokenRequest), which appear in the cluster's audit log.
  • A cordon acts on cluster-scoped nodes, while its approval is scoped to a namespace.
  • chat and --mitigate run only on Linux x86_64 or aarch64.
  • diagnose sends material it reads from the cluster to the model endpoint (openrouter.ai by default); --no-model sends nothing.
  • Acting creates a Docker network and a proxy container (autoops-mutation-net and autoops-mutation-proxy by default).

Limits

  • Scale has bounded automatic restoration: after proven settlement, two consecutive complete bad workload-health samples within a 60-second observation window trigger an attempt to restore prior replicas. Authority and current replicas are re-checked through the governed chain; restoration can be refused. Pause, halt and cordon undo remain manual.
  • autoops init validate (and make validate in a checkout) checks declared prerequisites locally: run id, budget, telemetry-directory access and config trust, plus a declared model key file or nonblank environment key for an explicitly configured model, and a declared kubeconfig's local structure and profile-specific requirements. Undeclared model/kubeconfig inputs print not requested / not checked. This does not authenticate to providers, contact clusters, or prove reachability or readiness.
  • The demo packet and the offline fixtures are not in the wheel, sdist or image; autoops packet itself takes any directory with a manifest.json.
  • Acting has been proven only on kind clusters the project built for it, not on an estate it was not built for.

Verifying What You Installed

Local builds print SHA256 hashes and verify installed wheel metadata; these targets do not create publish attestations. For a published package, inspect its PyPI provenance:

curl -f https://pypi.org/integrity/autoops-sre/0.1.4/autoops_sre-0.1.4-py3-none-any.whl/provenance

The container image carries a BuildKit SBOM and a max-detail provenance record on its manifest:

docker buildx imagetools inspect ghcr.io/epappas/autoops:latest

Source And Support

The development repository is private, so this package page and the container package page are the public surfaces. The sdist on PyPI (autoops_sre-<version>.tar.gz) contains the complete src/ tree under the MIT licence — that is the source for this distribution.

Container package: https://github.com/users/epappas/packages/container/package/autoops

Licence

MIT.

Metadata

Release files for autoops-sre 0.1.7

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

Source distribution (sdist)

Source distribution for autoops-sre 0.1.7
File Size Uploaded Provenance Actions
autoops_sre-0.1.7.tar.gz 2.7 MB With provenance Details for autoops_sre-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for autoops-sre 0.1.7
File Interpreter ABI Platform Actions
autoops_sre-0.1.7-py3-none-any.whl Python 3 none any Details for autoops_sre-0.1.7-py3-none-any.whl

Total release size: 5.5 MB

Release files / autoops_sre-0.1.7.tar.gz

Download URL autoops_sre-0.1.7.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
5e5733473af5dde81b1160c262223e9804cc165e5e7ba1d00b153e9d7dbbc73a
BLAKE2b-256 checksum
How to use checksums
7af2e2f7da52dae8a4965dc3681b6109f6bc659d0e733e592a4c3f3933bfd05b
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 1, 2026.

Transparency log

Release files / autoops_sre-0.1.7-py3-none-any.whl

Download URL autoops_sre-0.1.7-py3-none-any.whl
Size 2.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6e6e35a5fbb07bd27d337ed7c3365d192ab7e1e4bbb934224780eecc4fbaf96e
BLAKE2b-256 checksum
How to use checksums
b5a77268eb68b13e31036aad496de6140199518584c528d04395f0c43fee3d99
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 1, 2026.

Transparency log

Security for autoops-sre 0.1.7

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 autoops_sre-0.1.7.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 1, 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.

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