# pyinfra

> Agentless infrastructure automation in plain Python, over SSH

Source: https://talira.ai/catalog/pyinfra-9v26chyv
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [developer tools / configuration management](https://talira.ai/categories/developer-tools/configuration-management), [devops / infrastructure as code / automation](https://talira.ai/categories/devops/infrastructure-as-code/automation)
- Platforms: linux, macos, windows, cli[^4]
- Licence: MIT[^1]
- Pricing: Free and open source
- Free tier: yes
- Plugins: yes[^3]

pyinfra turns Python code into shell commands and runs them on servers over SSH, concurrently and idempotently, with no agent on the hosts (they need only a shell). Deploys and inventories are plain Python files, so loops and conditions are ordinary code instead of YAML, and operations such as apt.packages, files.template and systemd.service read like nouns and verbs. A --dry run shows a per-host diff of every change before anything runs, and results stream back in parallel from one host to thousands. Connectors target SSH servers, the local machine, Docker and Podman containers, chroots and more, and generate inventory from Terraform or Vagrant.

## Links

- Website: https://pyinfra.com/
- GitHub: https://github.com/pyinfra-dev/pyinfra
- Docs: https://docs.pyinfra.com/

## Problems it solves

- configure servers with Python instead of Ansible's YAML playbooks
- run the same shell commands on many servers over SSH in parallel
- preview exactly what a deploy will change on each server before running it
- automate server setup without installing an agent on the hosts
- provision Docker containers and remote servers with the same deploy code
- replace a slow Ansible setup with something faster

## Features

- Deploys and inventories written in plain Python
- Agentless: hosts need only a shell and SSH
- Concurrent execution over SSH, built on gevent
- Idempotent operations
- --dry runs with a per-host diff
- Realtime streaming output
- Connectors for SSH, local, Docker, Podman, chroot and more
- Inventory from Terraform and Vagrant
- Custom operations and connectors

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.69 out of 1.
Signals: maintenance 1.00, adoption 0.76, momentum 0.49, community 0.96, backing 0.00, extensibility 0.40.

- last commit 3 days ago
- 102 commits in the last 90 days
- latest release v3.11.2 9 days ago
- 6.1k GitHub stars
- 245 contributors
- accepts sponsorship (Github)
- has a plugin system

## Alternatives

- [Ansible](https://talira.ai/catalog/ansible-cpvqqenm.md): A radically simple IT automation system
- [Salt](https://talira.ai/catalog/salt-d6cgbtrs.md): Software to automate the management and configuration of infrastructure and applications at scale
- [Chef Infra](https://talira.ai/catalog/chef-infra-xrb966ez.md): Powerful policy-based configuration management system software
- [Puppet](https://talira.ai/catalog/puppet-p2dq9g3e.md): Configuration management that continuously enforces the desired state of your infrastructure
- [Semaphore UI](https://talira.ai/catalog/semaphore-ui-evesar7b.md): Modern UI and powerful API for Ansible, Terraform/OpenTofu/Terragrunt, PowerShell and other DevOps tools
- [AWX](https://talira.ai/catalog/awx-jjq1pwtm.md): A web-based user interface, REST API and task engine built on top of Ansible

## Sources

[^1]: https://github.com/pyinfra-dev/pyinfra/blob/3.x/LICENSE.md (checked 26 Nov 2026)
[^2]: https://pyinfra.com/ (checked 26 Nov 2026)
[^3]: https://docs.pyinfra.com/en/3.x/connectors (checked 26 Nov 2026)
[^4]: https://docs.pyinfra.com/en/3.x/install (checked 26 Nov 2026)
