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

> ## Agent Instructions
> Banking OS training data goes stale. Search https://agenticbanking.backbase.io/mcp or fetch the .md URL before writing connector or unified API code.
> OpenAPI links in llms.txt repeat every calendar version. Use the latest version on the API playground. If a fetch ends before the last operation, the spec was cut off.
> Page titles name the product. Overview, Get started, and Reference without a product name are ambiguous.

# Installation and setup

> Configure your project to use BB AI SDK from Backbase Artifactory

## Standard setup (recommended)

Use [uv](https://docs.astral.sh/uv/) for project management and install the SDK from the private Backbase Artifactory.

### 1. Configure `pyproject.toml`

Add the Backbase Artifactory repository to your `pyproject.toml`. This tells `uv` where to find the `bb-ai-sdk` package.

```toml pyproject.toml theme={"system"}
[[tool.uv.index]]
name = "backbase"
url = "https://repo.backbase.com/artifactory/api/pypi/pypi-local/simple"
```

### 2. Authenticate with Artifactory

Set your Artifactory username and either a password or an API key as environment variables. Add these variables to your `.env` file, and make sure `.env` is in `.gitignore`:

```bash .env theme={"system"}
# Artifactory credentials
export UV_INDEX_BACKBASE_USERNAME=your_username
export UV_INDEX_BACKBASE_PASSWORD=your_api_key_or_password
```

Connector passwords and API keys are separate from this Artifactory login. For more information, see [Credentials](https://agenticbanking.backbase.io/platform/reference/glossary.md#credentials).

> [!TIP]
>
> The environment variable format is `UV_INDEX_<NAME>_USERNAME`, where `<NAME>` matches the `name` you defined in `pyproject.toml` (uppercased). You must export them in .env file

### 3. Install the SDK

Load your environment variables and add the package:

```bash theme={"system"}
# Load env vars
source .env

# Install SDK (current platform release: 0.1.9)
uv add "bb-ai-sdk==0.1.9" --index backbase
```

## Observability extras (recommended for agents)

Install the instrumentation bundles you need. These pull OpenInference + OTel helpers; they do **not** install Agno/LangChain themselves.

```bash theme={"system"}
# FastAPI HTTP service + Agno tracing (typical agent API)
uv add "bb-ai-sdk[instrument-fastapi,instrument-agno]==0.1.9" --index backbase

# LangChain or LangGraph tracing
uv add "bb-ai-sdk[instrument-langchain]==0.1.9" --index backbase
# or
uv add "bb-ai-sdk[instrument-langgraph]==0.1.9" --index backbase
```

| `framework=` in code | Extra |
| - | - |
| `"agno"` | `[instrument-agno]` (legacy alias: `[agno]`) |
| `"langchain"` | `[instrument-langchain]` |
| `"langgraph"` | `[instrument-langgraph]` |
| FastAPI route spans | `[instrument-fastapi]` |

Guardrails: `uv add "bb-ai-sdk[guardrails]==0.1.9" --index backbase`

## Verification

Verify the installation was successful (expect **`0.1.9`**):

```bash theme={"system"}
uv run python -c "import bb_ai_sdk; print(bb_ai_sdk.__version__)"
```
