-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.sh
More file actions
executable file
·61 lines (53 loc) · 1.85 KB
/
Copy pathdemo.sh
File metadata and controls
executable file
·61 lines (53 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
# Computer Use Agent Demo Script
echo "🚀 Computer Use Agent Demo"
echo "=========================="
echo ""
# Check if app exists
if [ ! -d "ComputerUseAgent.app" ]; then
echo "❌ App not found. Building first..."
./build.sh
if [ $? -ne 0 ]; then
echo "❌ Build failed!"
exit 1
fi
fi
# Check for cliclick
if ! command -v cliclick &> /dev/null; then
echo "⚠️ cliclick not found. Installing with Homebrew..."
if command -v brew &> /dev/null; then
brew install cliclick
else
echo "❌ Homebrew not found. Please install cliclick manually:"
echo " Visit: https://github.com/BlueM/cliclick"
echo " Or install Homebrew first: https://brew.sh"
exit 1
fi
fi
echo "✅ All dependencies ready!"
echo ""
echo "🎯 Demo Instructions:"
echo "1. The app will launch with a ChatGPT-like interface"
echo "2. Go to Settings and enter your OpenAI API key"
echo "3. Try these example commands:"
echo " • 'Take a screenshot of my desktop'"
echo " • 'Open Safari and go to google.com'"
echo " • 'Click on the search box and type hello'"
echo " • 'Scroll down on the current page'"
echo ""
echo "⚠️ Important Security Notes:"
echo "• Grant accessibility permissions when prompted"
echo "• The AI can control your computer - use with caution"
echo "• All actions happen locally on your machine"
echo "• Screenshots are only sent to OpenAI when needed"
echo ""
read -p "Press Enter to launch the app..."
echo "🚀 Launching Computer Use Agent..."
open ComputerUseAgent.app
echo ""
echo "📝 If you encounter issues:"
echo "• Check System Preferences > Privacy & Security > Accessibility"
echo "• Ensure your OpenAI API key is valid"
echo "• Try 'brew install cliclick' if mouse/keyboard control fails"
echo ""
echo "Enjoy controlling your computer with AI! 🤖"