A Generative UI web app for interacting with Computer Use Agents (CUA) via the @langchain/langgraph-cua prebuilt package.
The following API keys are required to run this app:
- OpenAI API Key - Calling the computer use model
- Scrapybara API Key - Running the VM
Once you have both API keys, you can clone the repo:
git clone https://github.com/bracesproul/gen-ui-computer-use.gitNavigate to the project directory:
cd gen-ui-computer-useCopy the .env.example file to .env and add your API keys:
cp .env.example .envAdd your OpenAI API key and Scrapybara API key to the .env file:
OPENAI_API_KEY=your_openai_api_key
SCrapybara_API_KEY=your_scrapybara_api_keyInstall dependencies:
pnpm installRun both the agent and the app:
# Run the web server
pnpm run devIn another terminal window:
# Run the agent
pnpm run agentThe app will be available at http://localhost:3000.
