Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/showlab/computer_use_ootb
An out-of-the-box (OOTB) version of Anthropic Claude Computer Use
https://github.com/showlab/computer_use_ootb
Last synced: about 15 hours ago
JSON representation
An out-of-the-box (OOTB) version of Anthropic Claude Computer Use
- Host: GitHub
- URL: https://github.com/showlab/computer_use_ootb
- Owner: showlab
- License: mit
- Created: 2024-10-23T10:30:42.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-25T09:05:55.000Z (2 months ago)
- Last Synced: 2024-10-25T10:21:47.785Z (2 months ago)
- Language: Python
- Size: 2.23 MB
- Stars: 62
- Watchers: 3
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
If you like our project, please give us a star β on GitHub for the latest update.
[![arXiv](https://img.shields.io/badge/Arxiv-2411.10323-b31b1b.svg?logo=arXiv)](https://arxiv.org/abs/2411.10323)
[![Project Page](https://img.shields.io/badge/Project_Page-GUI_Agent-blue)](https://computer-use-ootb.github.io)
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fshowlab%2Fcomputer_use_ootb&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fshowlab%2Fcomputer_use_ootb&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)## Overview
**Computer Use OOTB** is an out-of-the-box (OOTB) solution for Desktop GUI Agent, including API-based (**Claude 3.5 Computer Use**) and locally-running models (**ShowUI**).**No Docker** is required, and it supports both **Windows** and **macOS**. This project provides a user-friendly interface based on Gradio. π¨
For more information, you can visit our study on Claude 3.5 Computer Use [[project page]](https://computer-use-ootb.github.io). π
## Update
- **Major Update! [2024/12/04]** **Local Runπ₯** is now live! Say hello to [**ShowUI**](https://github.com/showlab/ShowUI), an open-source 2B vision-language-action (VLA) model for GUI Agent. Now compatible with `"gpt-4o + ShowUI" (~200x cheaper)`* & `"Qwen2-VL + ShowUI" (~30x cheaper)`* for only few cents for each taskπ°! *compared to Claude Computer Use.
- **[2024/11/20]** We've added some examples to help you get hands-on experience with Claude 3.5 Computer Use.
- **[2024/11/19]** Forget about the single-display limit set by Anthropic - you can now use **multiple displays** π!
- **[2024/11/18]** We've released a deep analysis of Claude 3.5 Computer Use: [https://arxiv.org/abs/2411.10323](https://arxiv.org/abs/2411.10323).
- **[2024/11/11]** Forget about the low-resolution display limit set by Anthropic β you can now use *any resolution you like* and still keep the **screenshot token cost low** π!
- **[2024/11/11]** Now both **Windows** and **macOS** platforms are supported π!
- **[2024/10/25]** Now you can **Remotely Control** your computer π» through your mobile device π± β **No Mobile App Installation** required! Give it a try and have fun π.## Demo Video
https://github.com/user-attachments/assets/f50b7611-2350-4712-af9e-3d31e30020ee
## π Getting Started
### 0. Prerequisites
- Instal Miniconda on your system through this [link](https://www.anaconda.com/download?utm_source=anacondadocs&utm_medium=documentation&utm_campaign=download&utm_content=topnavalldocs). (**Python Version: >= 3.11**).
- Hardware Requirements (optional, for ShowUI local-run):
- **Windows (CUDA-enabled):** A compatible NVIDIA GPU with CUDA support, >=6GB GPU memory
- **macOS (Apple Silicon):** M1 chip (or newer), >=16GB unified RAM### 1. Clone the Repository π
Open the Conda Terminal. (After installation Of Miniconda, it will appear in the Start menu.)
Run the following command on **Conda Terminal**.
```bash
git clone https://github.com/showlab/computer_use_ootb.git
cd computer_use_ootb
```### 2.1 Install Dependencies π§
```bash
pip install -r dev-requirements.txt
```### 2.2 (Optional) Get Prepared for **ShowUI** Local-Run
1. Download all files of the ShowUI-2B model via the following command. Ensure the `ShowUI-2B` folder is under the `computer_use_ootb` folder.
```python
python install_tools/install_showui.py
```2. Make sure to install the correct GPU version of PyTorch (CUDA, MPS, etc.) on your machine. See [install guide and verification](https://pytorch.org/get-started/locally/).
3. Get API Keys for [GPT-4o](https://platform.openai.com/docs/quickstart) or [Qwen-VL](https://help.aliyun.com/zh/dashscope/developer-reference/acquisition-and-configuration-of-api-key). For mainland China users, Qwen API free trial for first 1 mil tokens is [available](https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-qianwen-vl-plus-api).
### 3. Start the Interface βΆοΈ
**Start the OOTB interface:**
```bash
python app.py
```
If you successfully start the interface, you will see two URLs in the terminal:
```bash
* Running on local URL: http://127.0.0.1:7860
* Running on public URL: https://xxxxxxxxxxxxxxxx.gradio.live (Do not share this link with others, or they will be able to control your computer.)
```> For convenience, we recommend running one or more of the following command to set API keys to the environment variables before starting the interface. Then you donβt need to manually pass the keys each run. On Windows Powershell (via the `set` command if on cmd):
> ```bash
> $env:ANTHROPIC_API_KEY="sk-xxxxx" (Replace with your own key)
> $env:QWEN_API_KEY="sk-xxxxx"
> $env:OPENAI_API_KEY="sk-xxxxx"
> ```
> On macOS/Linux, replace `$env:ANTHROPIC_API_KEY` with `export ANTHROPIC_API_KEY` in the above command.### 4. Control Your Computer with Any Device can Access the Internet
- **Computer to be controlled**: The one installed software.
- **Device Send Command**: The one opens the website.
Open the website at http://localhost:7860/ (if you're controlling the computer itself) or https://xxxxxxxxxxxxxxxxx.gradio.live in your mobile browser for remote control.Enter the Anthropic API key (you can obtain it through this [website](https://console.anthropic.com/settings/keys)), then give commands to let the AI perform your tasks.
### ShowUI Advanced Settings
We provide a 4-bit quantized ShowUI-2B model for cost-efficient inference (currently **only support CUDA devices**). To download the 4-bit quantized ShowUI-2B model:
```
python install_tools/install_showui-awq-4bit.py
```
Then, enable the quantized setting in the 'ShowUI Advanced Settings' dropdown menu.Besides, we also provide a slider to quickly adjust the `max_pixel` parameter in the ShowUI model. This controls the visual input size of the model and greatly affects the memory and inference speed.
## π₯οΈ Supported Systems
- **Windows** (Claude β , ShowUI β )
- **macOS** (Claude β , ShowUI β )## π OOTB Iterface
## β οΈ Risks
- **Potential Dangerous Operations by the Model**: The models' performance is still limited and may generate unintended or potentially harmful outputs. Recommend continuously monitoring the AI's actions.
- **Cost Control**: Each task may cost a few dollars for Claude 3.5 Computer Use.πΈ## π Roadmap
- [ ] **Explore available features**
- [ ] The Claude API seems to be unstable when solving tasks. We are investigating the reasons: resolutions, types of actions required, os platforms, or planning mechanisms. Welcome any thoughts or comments on it.
- [ ] **Interface Design**
- [x] **Support for Gradio** β¨
- [ ] **Simpler Installation**
- [ ] **More Features**... π
- [ ] **Platform**
- [x] **Windows**
- [x] **macOS**
- [x] **Mobile** (Send command)
- [ ] **Mobile** (Be controlled)
- [ ] **Support for More MLLMs**
- [x] **Claude 3.5 Sonnet** π΅
- [x] **GPT-4o**
- [x] **Qwen2-VL**
- [ ] **Local MLLMs**
- [ ] ...
- [ ] **Improved Prompting Strategy**
- [ ] Optimize prompts for cost-efficiency. π‘
- [x] **Improved Inference Speed**
- [x] Support int4 Quantization.## Join Discussion
Welcome to discuss with us and continuously improve the user experience of Computer Use - OOTB. Reach us using this [**Discord Channel**](https://discord.gg/vMMJTSew37) or the WeChat QR code below!