Install the StackOne AI SDK for Python applications with support for LangChain, CrewAI, and LangGraph.

Installation

Install using pip:
# Using pip
pip install stackone-ai

# Using poetry
poetry add stackone-ai

# Using pipenv
pipenv install stackone-ai

Requirements

  • Python 3.8 or higher
  • pip or poetry

Virtual Environment Setup

It’s recommended to use a virtual environment:
# Create virtual environment
python -m venv venv

# Activate virtual environment
# On macOS/Linux:
source venv/bin/activate
# On Windows:
venv\Scripts\activate

# Install StackOne AI
pip install stackone-ai

Environment Setup

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

Framework Dependencies

Install additional dependencies based on your framework:
# For LangChain
pip install stackone-ai langchain langchain-openai

# For CrewAI
pip install stackone-ai crewai

# For LangGraph
pip install stackone-ai langgraph

# For OpenAI
pip install stackone-ai openai

Verification

Test your installation:
from stackone_ai import StackOneToolSet

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

Next Steps