> ## Documentation Index
> Fetch the complete documentation index at: https://opensre.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Install OpenSRE

> Install the OpenSRE CLI on your machine and start chatting with the agent.

## Before you begin

Make sure you have:

* A terminal open in a code project
* A Git repository (recommended for the full workflow demonstration)

## Step 1: Install and start opensre

> [tab] macOS and Linux
>
> ```bash theme={null}
> curl -fsSL https://install.opensre.com | bash -s -- -dc
> ```
>
> Prebuilt Linux binaries need glibc 2.35 or newer (Ubuntu 22.04 or comparable); see [Linux](https://opensre.com/docs/install/linux-local.md).

> [tab] Windows
>
> Open PowerShell and run:
>
> ```powershell theme={null}
> & ([scriptblock]::Create((irm https://install.opensre.com/install.ps1))) -dc
> ```
>
> See [Windows](https://opensre.com/docs/install/windows-local.md).

Then start OpenSRE:

```bash theme={null}
opensre
```

![OpenSRE CLI welcome screen with the sign-in prompt](https://mintcdn.com/tracer/N6OGfOUQjx4VJof5/images/opensre-welcome.png?fit=max\&auto=format\&n=N6OGfOUQjx4VJof5\&q=85\&s=a111e922dc38f18a550747d6974f2521)

For PATH troubleshooting and platform requirements, see [Install locally](https://opensre.com/docs/install/install-local.md).

## Step 2: Sign in

Choose **Sign in or create account** in the welcome screen. Your browser opens the OpenSRE sign-up page; sign in with email or another enabled provider. Signing in activates the hosted model, so you need no LLM key. Back in the terminal, OpenSRE confirms the session with the web app and opens the shell.

Over SSH or on a server, OpenSRE prints a link to open in any browser and asks you to paste the code it shows; see [Sign in over SSH or on a server](https://opensre.com/docs/getting-started/quickstart.md#sign-in-over-ssh-or-on-a-server).

## Step 3: Pick what to do

The first shell prompt asks what OpenSRE should do first. Each option says
what picking it does:

```text theme={null}
Get started
What should OpenSRE do first?

  (A) Keep my CI/CD healthy automatically (recommended)
      Fixes failing GitHub Actions checks on your pull requests
  (B) Analyze a repo's CI performance
      30-day report: failure rates and hours spent waiting on CI
  (C) Skip for now
      Type your own request. /demo brings this menu back
```

Choosing **A** asks how that should run:

```text theme={null}
Keep my CI/CD healthy automatically

  (A) Run continuously on this machine (recommended)
      Keeps watching your PRs and pushes fixes when checks fail
  (B) Run one repair in OpenSRE Cloud
      Fixes one failing PR from the cloud, then stops
  (C) Connect Slack
      Hand off CI and DevOps chores by mentioning OpenSRE in Slack
```

Choose **B** to see what OpenSRE does with a repository on your machine: it
reads the last 30 days of GitHub Actions history and reports how reliable your
CI is and how much developer time it costs. It needs GitHub access: connect it
in the OpenSRE app through OAuth or its token-entry form. Run
`opensre account login` to load that connection on this machine. If it is
missing, the flow offers the app setup link. See
[CI/CD analytics demo](https://opensre.com/docs/cicd/cicd-analytics-demo.md).

Choose **C** to go straight to the prompt. The menu opens on your first launch
only; later launches open the prompt directly. Type `/demo` to open the menu
again at any time, or start with `opensre --skip-onboarding` to skip it on a
first launch.

## Step 4: Ask your first question

Describe what's going on in plain English:

```text theme={null}
why is checkout latency spiking?
```

Connect the tools OpenSRE should read when you need them, from the shell (`/integrations setup github`) or the terminal:

```bash theme={null}
opensre integrations setup <service>
```

Full walkthrough: [Quickstart](https://opensre.com/docs/getting-started/quickstart.md).

## Environment-specific guides

| Platform | Guide |
| - | - |
| macOS | [macOS](https://opensre.com/docs/install/macos.md) |
| Linux | [Linux (local)](https://opensre.com/docs/install/linux-local.md) |
| Windows | [Windows (local)](https://opensre.com/docs/install/windows-local.md) |
| Docker | [Docker](https://opensre.com/docs/install/docker.md) |

## Stuck?

* **Command not found** — open a new terminal, or add the bin directory the installer printed to your PATH
* **The sign-in screen comes back after you signed in** — run `opensre account status`; it names what is wrong with the session
* **Anything else** — see [Quickstart troubleshooting](https://opensre.com/docs/getting-started/quickstart.md#troubleshooting)

Need deploy options beyond a laptop binary? See [Deployment](https://opensre.com/docs/guides/deployment.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.