# StackStorm

> Event-driven automation that turns alerts into actions and workflows

- Category: Agents & Automation / Workflow Automation
- Language: Python
- Licence: Apache-2.0
- Repository: https://github.com/StackStorm/st2
- Website: https://stackstorm.com
- Canonical page: https://ai-tldr.dev/tools/stackstorm/

## In short

StackStorm is an open-source platform for integration and automation across the services and tools you already run. It sits in the Workflow Automation category of the Agents & Automation tools and is open-source, written in Python and licensed Apache-2.0. To get started: provision a Linux host.

## Overview

StackStorm is an open-source platform for integration and automation across the services and tools you already run. Its main job is to take actions in response to events: a monitoring alert, a webhook, a timer, or an issue update can trigger a script or a multi-step workflow without a person in the loop.

It is aimed at DevOps and SRE teams who want to codify the manual steps they take during incidents and deployments. Sensors watch external systems and fire triggers, rules match those triggers to actions, and workflows stitch actions together into larger automations. Because rules and workflows are stored as code, teams can review, version, and share them the same way they handle application code.

Within the workflow-automation space, StackStorm sits on the operational side: it connects monitoring, chat, cloud, and config-management tools through a library of reusable packs, and runs as a set of microservices over a message bus so it can scale horizontally.

## What it does

- Event-driven core: sensors capture external events and fire triggers, while rules map those triggers to actions or workflows
- Reusable actions: built-in SSH and HTTP actions plus integrations for OpenStack, Docker, Puppet, and custom Python or shell scripts
- Workflows that chain actions into multi-step automations with ordering, transition conditions, and context passed between steps
- Packs as shareable units of content, with a growing catalog on StackStorm Exchange and the ability to publish your own
- Full REST API, CLI client, and web UI, plus Python client bindings for operating StackStorm locally or remotely
- Audit trail recording every manual or automated execution, with hooks for LogStash, Splunk, statsd, and syslog

## Getting started

StackStorm installs on a clean 64-bit Linux host using the official installer script; check the system requirements first, then bring up the services.

1. Provision a Linux host

   Get a clean 64-bit Linux box that meets the StackStorm system requirements documented at docs.stackstorm.com before installing.

2. Run the installer

   The install script sets up all StackStorm services and creates an initial admin user. Replace the username and password with your own values.

```bash
curl -sSL https://stackstorm.com/packages/install.sh | bash -s -- --user=st2admin --password=Ch@ngeMe
```

3. Read the docs and join the community

   Follow the installation and authoring guides at docs.stackstorm.com, and ask questions on forum.stackstorm.com or the StackStorm Slack community.

## When to use it

- Auto-remediation: detect a hardware or service failure from Nagios, Sensu, or New Relic and run diagnostic and recovery actions automatically
- Incident response and ChatOps: post failure details and run troubleshooting steps from Slack, with PagerDuty escalation when something needs a human
- Continuous deployment: build and test with Jenkins, provision a cluster, shift traffic, then roll forward or back based on app performance data
- Cross-tool orchestration: tie OpenStack, AWS, Docker, and config-management tools together into shareable rules and workflows stored as code
