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

# Setup

> Set up the MobileBoost SDK with your Python Appium test suite

The MobileBoost SDK for Appium drops into your existing Python Appium suite. Your code-based tests run first, and AI kicks in as a fallback when a step fails.

## Prerequisites

Install Appium and the platform drivers:

```bash theme={null}
# Install Appium
npm install -g appium

# Install drivers
appium driver install xcuitest      # iOS
appium driver install uiautomator2  # Android
```

## Installation

```bash theme={null}
pip install gptdriver-client
```

To upgrade to the latest version:

```bash theme={null}
pip install --upgrade gptdriver-client
```

## Configuration

Create a `GptDriver` instance with your API key:

```python theme={null}
from gptdriver_client import GptDriver

gptd = GptDriver(
    api_key="YOUR_API_KEY",
    platform="android",
    device_name="Pixel 7",
    platform_version="15.0",
)
```

Or pass an existing Appium driver:

```python theme={null}
from gptdriver_client import GptDriver
from appium import webdriver

driver = webdriver.Remote(
    command_executor="http://127.0.0.1:4723",
    options=options
)

gptd = GptDriver(
    api_key="YOUR_API_KEY",
    driver=driver
)
```

## Start the Appium server

Before running tests, start the Appium server:

```bash theme={null}
appium
```

## Next steps

<Columns cols={2}>
  <Card title="Reference" icon="book" href="/engineer-tooling/appium-python-reference">
    AI commands, self healing, and caching.
  </Card>

  <Card title="Examples" icon="code" href="/engineer-tooling/appium-python-examples">
    Worked examples, including PyTest.
  </Card>
</Columns>
