Skip to main content

Python SDK for the use.computer macOS and iOS Computer Use API

Project description

use-computer Python SDK

Python client for use.computer — rent dedicated Mac minis with macOS and iOS sandboxes built for computer-use agents.

pip install use-computer
export USE_COMPUTER_API_KEY=mk_live_...
from use_computer import Computer

with Computer().create() as mac:
    mac.exec_ssh("open -a TextEdit")
    mac.keyboard.type("hello")
    png = mac.screenshot.take_full_screen()

Full DSL reference (macOS + iOS): docs.use.computer/docs/sdk

Examples

File What it shows
examples/_1_hello_macos.py create → exec → keyboard → screenshot
examples/_2_hello_ios.py create iOS → open URL → screenshot
examples/_3_recording.py start / stop / download a screen recording
examples/_4_file_transfer.py upload bytes, download a file back
examples/_5_keepalive.py heartbeat for sessions idle > 2 min

For agent loops and evals: use-computer-cookbook.

For AI coding assistants

The cookbook ships a Claude-Code-ready skill that teaches an assistant how to use this SDK end-to-end (macOS + iOS DSL, recording, file transfer, keepalive, retries, the AppleScript/AX transpiler, the vision-model coord scaling). Point your assistant at skills/use-computer-sdk/SKILL.md — the body is short and links out to per-topic references in skills/use-computer-sdk/references/.

HTTP API

Every SDK method wraps https://api.use.computer/v1/... with Authorization: Bearer mk_live_.... Swagger: api.use.computer/docs. OpenAPI spec: api.use.computer/openapi.yaml.

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

use_computer-0.0.10.tar.gz (70.9 kB view details)

Uploaded Source

Built Distribution

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

use_computer-0.0.10-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

Details for the file use_computer-0.0.10.tar.gz.

File metadata

  • Download URL: use_computer-0.0.10.tar.gz
  • Upload date:
  • Size: 70.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for use_computer-0.0.10.tar.gz
Algorithm Hash digest
SHA256 de3af3d120009a06a67b77ee886a0b275b615cd717f6ec8e625c1a0c42d5ba62
MD5 4a681352f9a649ef2d36b102b655734f
BLAKE2b-256 69278dcda57d4b39f4d4f46166a63036a1dee0f948e1d2ab5a5b69e231dbdfe5

See more details on using hashes here.

File details

Details for the file use_computer-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: use_computer-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 33.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for use_computer-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 3296a1f98d7bfd1de0374ee5ea525540eca41b4416c869b6d6e29c37453385a8
MD5 a8a1de6624f57a08222c47fad41171db
BLAKE2b-256 cb2e8885f7be9c25fc7198e6d91b45c4e5f38a13ac0fb0082cb5d407eba8e7b7

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