Installing Cua's full AI agent functionality is a two-step process:
Step 1: Install the Lume CLI
- Open the Mac Terminal application
- Run the following command to install:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)" - After the installation is complete, pass the
lume --versionVerify that the installation was successful
Step 2: Install Python Components
- Ensure that Python 3.10 or higher is installed
- (of a computer) run
pip install cua-computer cua-agentInstallation of core libraries - Optionally install extension libraries as needed:
cua-core: Core functionscua-computer-server: Computer servicescua-som: Screen Object Modelpylume: Python interface
- establish
.envfile to configure the API key, such asOPENAI_API_KEY=你的密钥
After completing the installation, you can test the functionality by running the sample code.python -m cua_agent.examples.basic_agent
This answer comes from the articleCua: Enabling AI agents to securely execute applications in macOS/Linux sandboxesThe





























