Python Package Installation for ClaudeAI Computer Use.
Project description
CUPI (Computer Use Python Installer)
CUPI (Computer Use Python Installer) enables seamless integration of Claude AI's computer control capabilities without the need for Docker or virtual machines. Run Claude AI directly on your native operating system with just Python.
✨ Features
- 🚀 Native OS support (Windows, MacOS, Linux)
- 💻 Direct system control through Claude AI
- 📝 Automatic conversation logging
- 🖼️ Screenshot capabilities
- 🔍 Web browsing and research
- 📂 File system operations
🔧 Prerequisites
- Python 3.8 or higher
- Claude AI API key
- System permissions for your terminal or Python interpreter
📦 Installation
From PyPI (Recommended)
pip install cupi
From Source
git clone https://github.com/syan-dev/computer-use-python-installer
cd computer-use-python-installer
pip install .
🚀 Quick Start
- Set your API key:
# Linux/MacOS
export ANTHROPIC_API_KEY=your_api_key_here
# Windows (CMD)
set ANTHROPIC_API_KEY=your_api_key_here
# Windows (PowerShell)
$env:ANTHROPIC_API_KEY="your_api_key_here"
- Run CUPI:
cupi "Take a screenshot of this window"
💡 Example Use Cases
# Web Research
cupi "Find the cheapest flights from Vietnam to France"
# System Operations
cupi "Create a new folder named 'projects' and open VS Code there"
# File Management
cupi "Organize my Downloads folder by file type"
# Web Browsing
cupi "Search for recent news about artificial intelligence"
🛠️ Advanced Usage
Custom Configuration
# Set custom log directory
cupi "Take a screenshot" --log-dir "my_logs"
# Use different Claude model
cupi "Browse the web" --model "claude-3-opus"
# Enable verbose output
cupi "Create a file" --verbose
Available Options
--model, -m Choose Claude model (default: claude-3-5-sonnet)
--log-dir, -l Set log directory (default: ./logs)
--verbose, -v Enable detailed output
--max-tokens Set maximum response tokens
--recent-images Control number of cached images
📝 Logging
CUPI automatically logs all interactions, including:
- Conversations with Claude
- Screenshots taken
- System operations performed
- Error messages
Logs are stored in JSON format at ./logs by default.
🔒 Security Notes
- CUPI requires system permissions to control your computer
- API keys should be kept secure and never shared
- Review Claude's actions before confirming sensitive operations
- Use environment variables for API keys, never hardcode them
🤝 Contributing
Contributions are welcome! Please read our Contributing Guidelines before submitting:
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Anthropic for Claude AI
- All contributors and users of CUPI
- The Python community
📫 Support
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cupi-0.0.2.tar.gz.
File metadata
- Download URL: cupi-0.0.2.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d2656d44a706a691ed58bba5aa637adca9f2a2d19b70259edb874ef959a91b1
|
|
| MD5 |
b1ffce0be3765795182f4c9ef5510011
|
|
| BLAKE2b-256 |
4984408bc6e55dadee61e88a15b7324a088a1cea08421897fb3b7ef0ca40c1cb
|
File details
Details for the file cupi-0.0.2-py3-none-any.whl.
File metadata
- Download URL: cupi-0.0.2-py3-none-any.whl
- Upload date:
- Size: 33.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97a6a48606c82bed95d431d26abba945876f9d63718df7d8baa63720f87d20af
|
|
| MD5 |
19034a386ea11b49e7a783c2d6c2d82a
|
|
| BLAKE2b-256 |
556701779f89f9af0393c85ce816525f0d605bcfa24f6d7b514992445f5c7bc3
|