Skip to main content

Python Package Installation for ClaudeAI Computer Use.

Project description

CUPI (Computer Use Python Installer)

PyPI version Python 3.8+ License: MIT

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

  1. 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"
  1. 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:

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cupi-0.0.2.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cupi-0.0.2-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

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

Hashes for cupi-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3d2656d44a706a691ed58bba5aa637adca9f2a2d19b70259edb874ef959a91b1
MD5 b1ffce0be3765795182f4c9ef5510011
BLAKE2b-256 4984408bc6e55dadee61e88a15b7324a088a1cea08421897fb3b7ef0ca40c1cb

See more details on using hashes here.

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

Hashes for cupi-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 97a6a48606c82bed95d431d26abba945876f9d63718df7d8baa63720f87d20af
MD5 19034a386ea11b49e7a783c2d6c2d82a
BLAKE2b-256 556701779f89f9af0393c85ce816525f0d605bcfa24f6d7b514992445f5c7bc3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page