Skip to main content
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):
# 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:
# 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:
export STACKONE_API_KEY=your_api_key_here
Account IDs are passed per-request when fetching tools — see Basic Usage.

Framework Dependencies

Install additional dependencies based on your framework:
# 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:
from stackone_ai import StackOneToolSet

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

Next Steps