Install
One command installs everything on macOS and Linux: opslens, Flowpipe, Steampipe and the five Steampipe plugins, all in your home directory, with no sudo and no changes to your cloud credentials.
The one-line installer
curl -fsSL https://opslens.devops-monk.com/install.sh | sh
It does, in order:
- Installs Flowpipe and Steampipe at pinned versions (through Homebrew when you have it, otherwise release binaries into
~/.local/bin, each verified against the release's checksums). - Installs the Steampipe plugins opslens ships catalogs for, at pinned versions:
aws,jira,microsoft365,gitlab,opsgenie. - Installs opslens in its own isolated environment (pipx, else
uv tool, else a private virtualenv), so it never touches your other Python projects.
It installs tools only. It never reads your cloud credentials and never calls a cloud API.
Read it first
That is the better habit for any script you pipe into a shell:
curl -fsSLO https://opslens.devops-monk.com/install.sh
less install.sh
OPSLENS_DRY_RUN=1 sh install.sh # prints every command it would run; changes nothing
sh install.sh
Options
Set these as environment variables in front of the command.
| Variable | Effect |
|---|---|
OPSLENS_EXTRAS="ai web" |
Also install the AI planner and the web app (opslens serve). Recommended |
OPSLENS_SKIP_ENGINES=1 |
Install only opslens; you manage Flowpipe and Steampipe yourself |
OPSLENS_SKIP_PLUGINS=1 |
Install the engines but no plugins |
OPSLENS_PLUGINS="aws jira" |
Only these plugins (default: all five) |
OPSLENS_REF=v0.2.1 |
Which release to install (default: the one the script shipped with) |
OPSLENS_BIN_DIR=~/.local/bin |
Where binaries go |
OPSLENS_PACKAGE=<path or URL> |
Install opslens from this wheel or sdist instead of GitHub |
OPSLENS_DRY_RUN=1 |
Print, don't run |
curl -fsSL https://opslens.devops-monk.com/install.sh | OPSLENS_EXTRAS="ai web" sh
Other ways
pip or pipx (Python 3.11 or newer). This installs opslens only; add Flowpipe and Steampipe yourself if you want live data and deploys.
pipx install "opslens[web,ai] @ https://github.com/devops-monk/opslens/archive/v0.2.1.tar.gz"
# once published to PyPI: pipx install "opslens[web,ai]"
Docker (opslens, Flowpipe, Steampipe and the plugins are in the image; linux/amd64 and linux/arm64):
docker run --rm abhaypratap/opslens doctor
docker run --rm -p 8077:8077 abhaypratap/opslens serve --mode demo --host 0.0.0.0 --allow-host localhost
From source:
git clone https://github.com/devops-monk/opslens && cd opslens
python -m venv .venv && .venv/bin/pip install -e ".[dev]"
Check it worked
opslens --version
opslens doctor # checks opslens, the catalogs, Flowpipe, Steampipe and the plugins; says how to fix what is missing
opslens doctor --offline skips anything that needs a running service, which is what you want on a laptop with no cloud access yet. You can do everything on sample data without connecting an account.
Connect your accounts (only when you want live data)
opslens uses Steampipe's and Flowpipe's own credential setup, so nothing is stored by opslens. Configure each service the way its plugin documents (for AWS that is simply your normal AWS profile or environment variables), then run:
opslens doctor # confirms each plugin can connect
opslens query "select count(*) from aws_ebs_volume"
Uninstall
Remove ~/.local/bin/{flowpipe,steampipe} (or brew uninstall), then pipx uninstall opslens (or uv tool uninstall opslens). Mods you generated live in the generated/ folder you chose and are plain files.