{"id":21164220,"url":"https://github.com/deedy/mac_computer_use","last_synced_at":"2026-01-17T16:55:53.394Z","repository":{"id":259394853,"uuid":"877757116","full_name":"deedy/mac_computer_use","owner":"deedy","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-24T08:48:04.000Z","size":39,"stargazers_count":37,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-25T03:39:52.166Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deedy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-24T07:34:01.000Z","updated_at":"2024-10-25T03:34:17.000Z","dependencies_parsed_at":"2024-10-25T03:48:01.033Z","dependency_job_id":"69249fe5-485f-4ec9-a88d-ab78746fcfca","html_url":"https://github.com/deedy/mac_computer_use","commit_stats":null,"previous_names":["deedy/mac_computer_use"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deedy%2Fmac_computer_use","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deedy%2Fmac_computer_use/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deedy%2Fmac_computer_use/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deedy%2Fmac_computer_use/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deedy","download_url":"https://codeload.github.com/deedy/mac_computer_use/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225570420,"owners_count":17489885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T14:01:18.660Z","updated_at":"2026-01-17T16:55:53.179Z","avatar_url":"https://github.com/deedy.png","language":"Python","funding_links":[],"categories":["A01_文本生成_文本对话","Projects"],"sub_categories":["大语言对话模型及数据","Frameworks \u0026 Models"],"readme":"# Anthropic Computer Use (for Mac)\n\n[Anthropic Computer Use](https://github.com/anthropics/anthropic-quickstarts/blob/main/computer-use-demo/README.md) is a beta Anthropic feature which runs a Docker image with Ubuntu and controls it. This fork allows you to run it natively on macOS, providing direct system control through native macOS commands and utilities.\n\n\u003e [!CAUTION]\n\u003e This comes with obvious risks. The Anthropic agent can control everything on your Mac. Please be careful.\n\u003e Anthropic's new Claude 3.5 Sonnet model refuses to do unsafe things like purchase items or download illegal content.\n\n## Features\n\n- Native macOS GUI interaction (no Docker required)\n- Screen capture using native macOS commands\n- Keyboard and mouse control through cliclick\n- Multiple LLM provider support (Anthropic, Bedrock, Vertex)\n- Streamlit-based interface\n- Automatic screen resolution scaling\n- File system interaction and editing capabilities\n\n## Prerequisites\n\n- macOS Sonoma 15.7 or later\n- Python 3.12+\n- Homebrew (for installing additional dependencies)\n- cliclick (`brew install cliclick`) - Required for mouse and keyboard control\n\n## Setup Instructions\n\n1. Clone the repository and navigate to it:\n\n```bash\ngit clone https://github.com/deedy/mac_computer_use.git\ncd mac_computer_use\n```\n\n2. Create and activate a virtual environment:\n\n```bash\npython3.12 -m venv venv\nsource venv/bin/activate\n```\n\n3. Run the setup script:\n\n```bash\nchmod +x setup.sh\n./setup.sh\n```\n\n4. Install Python requirements:\n\n```bash\npip install -r requirements.txt\n```\n\n## Running the Demo\n\n### Set up your environment and Anthropic API key\n\n1. In a `.env` file add:\n\n```\nAPI_PROVIDER=anthropic\nANTHROPIC_API_KEY=\u003ckey\u003e\nWIDTH=800\nHEIGHT=600\nDISPLAY_NUM=1\n```\n\nSet the screen dimensions (recommended: stay within XGA/WXGA resolution), and put in your key from [Anthropic Console](https://console.anthropic.com/settings/keys).\n\n2. Start the Streamlit app:\n\n```bash\nstreamlit run streamlit.py\n```\n\nThe interface will be available at http://localhost:8501\n\n## Screen Size Considerations\n\nWe recommend using one of these resolutions for optimal performance:\n\n-   XGA: 1024x768 (4:3)\n-   WXGA: 1280x800 (16:10)\n-   FWXGA: 1366x768 (~16:9)\n\nHigher resolutions will be automatically scaled down to these targets to optimize model performance. You can set the resolution using environment variables:\n\n```bash\nexport WIDTH=1024\nexport HEIGHT=768\nstreamlit run streamlit.py\n```\n\n\u003e [!IMPORTANT]\n\u003e The Beta API used in this reference implementation is subject to change. Please refer to the [API release notes](https://docs.anthropic.com/en/release-notes/api) for the most up-to-date information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeedy%2Fmac_computer_use","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeedy%2Fmac_computer_use","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeedy%2Fmac_computer_use/lists"}