Install
openclaw skills install gemini-computer-useBuild and run Gemini 2.5 Computer Use browser-control agents with Playwright. Use when a user wants to automate web browser tasks via the Gemini Computer Use model, needs an agent loop (screenshot → function_call → action → function_response), or asks to integrate safety confirmation for risky UI actions.
openclaw skills install gemini-computer-useSource the env file and set your API key:
cp env.example env.sh
$EDITOR env.sh
source env.sh
Create a virtual environment and install dependencies:
python -m venv .venv
source .venv/bin/activate
pip install google-genai playwright
playwright install chromium
Run the agent script with a prompt:
python scripts/computer_use_agent.py \
--prompt "Find the latest blog post title on example.com" \
--start-url "https://example.com" \
--turn-limit 6
COMPUTER_USE_BROWSER_CHANNEL.COMPUTER_USE_BROWSER_EXECUTABLE.If both are set, COMPUTER_USE_BROWSER_EXECUTABLE takes precedence.
function_call actions in the response.safety_decision is require_confirmation, prompt the user before executing.function_response objects containing the latest URL + screenshot.--exclude to block risky actions you do not want the model to take.scripts/computer_use_agent.pyreferences/google-computer-use.mdenv.example