/langgraph-cua-py

An implementation of a computer use agent (CUA) using LangGraph

Primary LanguagePythonMIT LicenseMIT

🤖 LangGraph Computer Use Agent (CUA)

Warning

THIS REPO IS A WORK IN PROGRESS AND NOT INTENDED FOR USE YET

A Python library for creating computer use agent (CUA) systems using LangGraph. A CUA is a type of agent which has the ability to interact with a computer to preform tasks.

Features

  • ADD FEATURES HERE

This library is built on top of LangGraph, a powerful framework for building agent applications, and comes with out-of-box support for streaming, short-term and long-term memory and human-in-the-loop.

Installation

pip install langgraph-cua langgraph langchain-core langchain-openai

Quickstart

export SCRAPYBARA_API_KEY=<your_api_key>
# TODO: Add examples

How to add memory

TODO: Add how to add memory section

How to customize

TODO: Add how to customize section

Development

To get started with development, first clone the repository:

git clone https://github.com/langchain-ai/langgraph-cua.git

Create a virtual environment:

uv venv

Activate it:

source .venv/bin/activate

Then, install dependencies:

uv sync --all-groups

Next, set the required environment variables:

cp .env.example .env

Finally, you can then run the tests:

pytest -xvs tests/test_cua.py