Installation

Get started with AI Computer by following these simple installation steps.

Requirements

Python Version

AI Computer requires Python 3.8 or higher.

1python --version
2# Python 3.8 or higher

Operating System

Supported operating systems:

  • Linux
  • macOS
  • Windows (via WSL2)

Installation

Install using pip

1pip install ai-computer-client

Verify Installation

1python -c "import ai_computer; print(ai_computer.__version__)"

Basic Usage

Here's a simple example to verify everything is working:

1import asyncio
2from ai_computer import SandboxClient
3
4async def main():
5    # Initialize the client
6    client = SandboxClient()
7    
8    # Setup the sandbox
9    await client.setup()
10    
11    try:
12        # Run a simple test
13        code = 'print("Hello from AI Computer!")'
14        response = await client.execute_code(code)
15        
16        if response.success:
17            print(response.data['output'])
18        else:
19            print("Execution failed:", response.error)
20            
21    finally:
22        # Clean up
23        await client.cleanup()
24
25asyncio.run(main())

Next Steps

Now that you have AI Computer installed, you can: