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

# Installation

> Install and setup the StackOne AI Python SDK

Install the StackOne AI SDK for Python applications with first-class support for LangChain, CrewAI, OpenAI, LangGraph, and Pydantic AI. The package includes typed tool definitions, framework adapters, search and execute tools, and dynamic discovery.

## Installation

Install the SDK with MCP support (recommended):

```bash theme={null}
# Using uv (Recommended)
uv add 'stackone-ai[mcp]'

# Using pip
pip install 'stackone-ai[mcp]'
```

## Requirements

* Python 3.10 or higher
* uv or pip

## Optional Extras

Install optional components with extras:

```bash theme={null}
# Pull LangChain/CrewAI/OpenAI example deps
uv add 'stackone-ai[mcp,examples]'
pip install 'stackone-ai[mcp,examples]'
```

## Environment Setup

Set your API key as an environment variable:

```bash theme={null}
export STACKONE_API_KEY=your_api_key_here
```

Account IDs are passed per-request when fetching tools — see [Basic Usage](/agents/python/basic-usage).

## Framework Dependencies

Install additional dependencies based on your framework:

```bash theme={null}
# For LangChain
uv add stackone-ai[examples] langchain langchain-openai
# or using pip
pip install stackone-ai[examples] langchain langchain-openai

# For CrewAI
uv add stackone-ai[examples] crewai
# or using pip
pip install stackone-ai[examples] crewai

# For OpenAI
uv add stackone-ai[examples] openai
# or using pip
pip install stackone-ai[examples] openai
```

## Verification

Test your installation:

```python theme={null}
from stackone_ai import StackOneToolSet

toolset = StackOneToolSet()
print("✅ StackOne AI SDK installed successfully!")
```

## Next Steps

* [Learn basic usage](/agents/python/basic-usage) to start building
* [Integrate with LangChain](/agents/python/frameworks/langchain-integration)
* [Build multi-agent workflows with CrewAI](/agents/python/frameworks/crewai-integration)
* [Explore tool search and filtering](/agents/python/tool-search)
