# Installation

## How do I install stoobly-agent?

### Option 1: Install with pipx (recommended)

**Prerequisites:**

* Python 3.12, 3.13, or 3.14

**Install pipx:**

macOS:

```bash
brew install pipx
pipx ensurepath
source ~/.bashrc
```

Linux:

```bash
python3 -m pip install --user pipx
python3 -m pipx ensurepath
source ~/.bashrc
```

**Install stoobly-agent:**

```bash
pipx install stoobly-agent --python python3
```

**Verify:**

```bash
stoobly-agent --help
```

More details: [Installation with pipx](https://docs.stoobly.com/getting-started/install-and-run/installation-with-pipx)

***

### Option 2: Install with Docker

**Prerequisites:**

* Docker installed ([official instructions](https://docs.docker.com/engine/install))

**Pull the image:**

```bash
docker pull stoobly/agent
```

**Verify:**

```bash
docker run \
    -v ~/.stoobly:/home/stoobly/.stoobly \
    stoobly/agent \
    stoobly-agent --help
```

More details: [Installation with Docker](https://docs.stoobly.com/getting-started/install-and-run/installation-with-docker)

***

## How do I update stoobly-agent?

### With pipx:

```bash
pipx upgrade stoobly-agent
```

### With Docker:

```bash
docker pull stoobly/agent
```

***

## What Python versions are supported?

Python 3.12, 3.13, and 3.14 are officially supported.

If you need to install a specific Python version, use [pyenv](https://github.com/pyenv/pyenv):

```bash
pyenv install 3.13.0
pyenv local 3.13.0
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
```

***

## How do I verify stoobly-agent is installed?

### With pipx:

```bash
stoobly-agent --help
```

### With Docker:

```bash
docker run \
    -v ~/.stoobly:/home/stoobly/.stoobly \
    stoobly/agent \
    stoobly-agent --help
```

***

## Next Steps

After installation:

* **API Mocking:** [How to Record Requests](https://docs.stoobly.com/guides/how-to-record-requests/)
* **E2E Testing:** [How to Integrate E2E Testing](https://docs.stoobly.com/guides/how-to-integrate-e2e-testing/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stoobly.com/faq/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
