LangGraph
LangGraph is an open-source framework for building stateful, multi-agent applications powered by LLMs. It extends the LangChain ecosystem by enabling developers to define agents and workflows as dynamic computation graphs, where each node represents a function or agent and edges define conditional logic and transitions. Designed for both flexibility and scalability, LangGraph excels at use cases requiring memory, branching logic, and cyclic behavior such as agent collaboration, simulations, or tool-augmented reasoning.
This tutorial shows how to integrate Arcee AI models into LangGraph using an OpenAI-compatible endpoint, enabling the use of Arcee’s specialized models within LangGraph workflows.
Prerequisites
Python:
>=3.10 and <3.14Arcee AI model running locally or accessible via API
Quickstart
Enivornment and project setup:
# Create project folder
mkdir arceeai_langgraph && cd arceeai_langgraph
# Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env
# Create and activate virtual environment
uv venv --python 3.12 --seed
source .venv/bin/activate
# Install LangGraph and OpenAI-compatible client
uv pip install --pre -U langgraph langchain-openai
If you run into any errors installing langgraph, follow their Installation Guide.
Create a new python file called arceeai_langgraph.py and with the following:
This works out-of-the-box if you have an Arcee AI model running locally on your laptop. If you do not, change ARCEE_BASE , ARCEE_KEY , and ARCEE_MODEL .
You can also setup a .env file to store the configurations.
Run your Arcee AI powered LangGraph Agent
Last updated


