Self-Operating Computer Framework is an open-source framework designed to enable multimodal models to operate a computer. Its core idea is that the model receives the same input as a human operator (the screen image) and outputs a series of mouse and keyboard actions to achieve a user-defined goal. Released in November 2023, the project is one of the earliest frameworks to demonstrate full computer operation capabilities.
Purpose: The framework is used to research and experiment with the performance of multimodal models on computer operation tasks, allowing developers to have the model automatically perform actions such as clicking, typing, and scrolling through natural language instructions.
Key capabilities:
- Compatible with a variety of multimodal models, with GPT-4o, GPT-4.1, o1, Gemini Pro Vision, Claude 3, Qwen-VL, and LLaVa already integrated.
- Provides multiple operation modes: the gpt-4o model is used by default; OCR mode (gpt-4-with-ocr) is supported, using coordinate hash mapping to let the model click elements by text; the Set-of-Mark prompting mode (gpt-4-with-som) is supported, using the YOLOv8 model to detect buttons to enhance visual grounding; voice input mode (--voice) is supported.
- Supports running the LLaVA model locally (via Ollama), but the official documentation notes a very high error rate, so it is only for basic experimentation.
Usage:
- Install the project and run it.
- Enter the OpenAI API key (or the key corresponding to another model).
- On Mac, the terminal application must be granted "Screen Recording" and "Accessibility" permissions.
- Launch via the operate command, optionally with the -m parameter to select a model (such as gpt-4-with-ocr or gpt-4-with-som), or use --voice to enable voice input.
- For models such as Gemini, Claude, and Qwen, obtain an API key from the corresponding platform and configure it as prompted.
- When using LLaVA, first install Ollama and pull the model (about 5 GB), then start the server and select the LLaVA model.
Applicable scenarios:
- Researching the computer operation capabilities of multimodal models.
- Prototype validation for automating repetitive desktop tasks.
- Exploring the impact of visual prompting methods (such as OCR and Set-of-Mark) on model operation performance.
Limitations:
- Using the GPT-4o model requires an OpenAI API key, and the account must have spent at least $5 in API credits to unlock it.
- The local LLaVA model has a very high error rate and is not suitable for production use.
- The project is compatible with Mac OS, Windows, and Linux (Linux requires an X server).
- The configuration of some models (such as Gemini) may be more complex; the official documentation mentions that desktop application credentials need to be authorized.
- The framework's future plan is to support more models, but the current integration scope is limited.