Skip to main content
Install the StackOne AI SDK for Python applications with first-class support for LangChain, CrewAI, and OpenAI tool calling. The package includes typed tool definitions, LangChain/CrewAI adapters, meta tools, dynamic discovery, and LangSmith implicit feedback helpers.

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.11 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

Create a .env file in your project root:
STACKONE_API_KEY=your_api_key_here
STACKONE_ACCOUNT_ID=optional_default_account

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