{"id":4926,"date":"2024-10-23T15:02:55","date_gmt":"2024-10-23T15:02:55","guid":{"rendered":"https:\/\/howtogeek.blog\/zh\/?p=4926"},"modified":"2024-10-23T15:02:55","modified_gmt":"2024-10-23T15:02:55","slug":"guide-to-using-the-claude-computer-demo-tool-effectively","status":"publish","type":"post","link":"https:\/\/howtogeek.blog\/zh\/guide-to-using-the-claude-computer-demo-tool-effectively\/","title":{"rendered":"\u6709\u6548\u4f7f\u7528\u514b\u52de\u5fb7\u8a08\u7b97\u6a5f\u6f14\u793a\u5de5\u5177\u7684\u6307\u5357"},"content":{"rendered":"<p>Anthropic \u63a8\u51fa\u4e86\u4e00\u9805\u5275\u65b0\u5be6\u9a57\u529f\u80fd\uff0c\u7a31\u70ba\u514b\u52de\u5fb7\u96fb\u8166\u4f7f\u7528\u5de5\u5177\uff0c\u5141\u8a31\u4eba\u5de5\u667a\u6167\u52a9\u7406\u50cf\u4eba\u985e\u4e00\u6a23\u8207\u96fb\u8166\u4ecb\u9762\u9032\u884c\u4e92\u52d5\u3002\u6b64\u529f\u80fd\u4f7f\u958b\u767c\u4eba\u54e1\u80fd\u5920\u900f\u904e\u6a21\u64ec\u6ed1\u9f20\u79fb\u52d5\u3001\u55ae\u64ca\u548c\u9375\u76e4\u8f38\u5165\u4f86\u6307\u5c0e Claude \u57f7\u884c\u4efb\u52d9\uff0c\u5f9e\u800c\u4fc3\u9032\u8de8\u5404\u7a2e\u6a19\u6e96\u8edf\u9ad4\u61c9\u7528\u7a0b\u5f0f\u7684\u8907\u96dc\u3001\u591a\u6b65\u9a5f\u6d41\u7a0b\u7684\u81ea\u52d5\u5316\u3002<\/p>\n<h2 id=\"prerequisites\">\u8981\u6c42<\/h2>\n<p>\u5728\u7e7c\u7e8c\u4e4b\u524d\uff0c\u8acb\u78ba\u8a8d\u60a8\u7b26\u5408\u4ee5\u4e0b\u689d\u4ef6\uff1a<\/p>\n<ul>\n<li>Anthropic API \u91d1\u9470\uff0c\u53ef\u5b58\u53d6 Claude 3.5 Sonnet v2\u3002<\/li>\n<li>Docker \u5b89\u88dd\u5728\u60a8\u7684\u7cfb\u7d71\u4e0a\u3002<\/li>\n<li>\u547d\u4ee4\u5217\u547d\u4ee4\u7684\u57fa\u672c\u77e5\u8b58\u3002<\/li>\n<\/ul>\n<h2 id=\"setting-up-claudes-computer-use-demo\">\u914d\u7f6e Claude \u7684\u96fb\u8166\u4f7f\u7528\u6f14\u793a<\/h2>\n<p>\u82e5\u8981\u958b\u59cb\u4f7f\u7528 Claude \u8a08\u7b97\u6a5f\u4f7f\u7528\u6f14\u793a\uff0c\u8acb\u6309\u7167\u4ee5\u4e0b\u8aaa\u660e\u64cd\u4f5c\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5f9e Anthropic \u7684 GitHub \u514b\u9686\u793a\u7bc4\u5132\u5b58\u5eab\uff1a<code>git clone https:\/\/github.com\/anthropics\/anthropic-quickstarts.git<\/code><\/li>\n<li>\u5c07\u76ee\u9304\u8b8a\u66f4\u70ba computer-use-demo \u8cc7\u6599\u593e\uff1a<code>cd anthropic-quickstarts\/computer-use-demo<\/code><\/li>\n<li>\u900f\u904e\u57f7\u884c\u4ee5\u4e0b\u547d\u4ee4\u5c07\u60a8\u7684 Anthropic API \u91d1\u9470\u8a2d\u5b9a\u70ba\u74b0\u5883\u8b8a\u6578\uff1a<code>export ANTHROPIC_API_KEY=your_api_key_here<\/code><\/li>\n<li>\u900f\u904e\u57f7\u884c\u4ee5\u4e0b Docker \u547d\u4ee4\u555f\u52d5\u6f14\u793a\uff1a<\/li>\n<\/ul>\n<p> <code> <code>docker run -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY -v $HOME\/.anthropic:\/home\/computeruse\/.anthropic -p 5900:5900 -p 8501:8501 -p 6080:6080 -p 8080:8080 -it ghcr.io\/anthropics\/anthropic-quickstarts:computer-use-demo-latest<\/code><\/code><\/p>\n<ul>\n<li>\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f x86 \u67b6\u69cb\uff0c\u8acb\u52d9\u5fc5\u5728 Docker \u6307\u4ee4\u4e2d\u5305\u542b\u5e73\u53f0\u6a19\u8a8c\uff1a<code>--platform linux\/amd64<\/code><\/li>\n<li>Docker \u5bb9\u5668\u6210\u529f\u555f\u52d5\u5f8c\uff0c\u958b\u555f Web \u700f\u89bd\u5668\u4e26\u524d\u5f80\uff1a<code>http:\/\/localhost:8080\/<\/code><\/li>\n<li>\u60a8\u61c9\u8a72\u6703\u770b\u5230\u96fb\u8166\u4f7f\u7528\u5de5\u5177\u7684\u4ecb\u9762\uff0c\u5176\u4e2d\u5305\u542b\u804a\u5929\u9762\u677f\u548c\u865b\u64ec\u684c\u9762\u74b0\u5883\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"1116\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/10\/image-461.webp\" title=\"\" width=\"1575\"\/><\/figure>\n<h2 id=\"using-the-computer-use-tool\">\u700f\u89bd\u96fb\u8166\u4f7f\u7528\u5de5\u5177<\/h2>\n<p>\u8a2d\u5b9a\u5b8c\u6210\u5f8c\uff0c\u60a8\u5c31\u53ef\u4ee5\u6307\u5c0e Claude \u5728\u865b\u64ec\u684c\u9762\u4e0a\u57f7\u884c\u4efb\u52d9\u4e86\u3002<\/p>\n<ul>\n<li>\u5728\u804a\u5929\u9762\u677f\u4e2d\u8f38\u5165\u547d\u4ee4\u8b93\u514b\u52de\u5fb7\u57f7\u884c\u3002\u4f8b\u5982\uff1a<code>Launch Firefox and go to \"google.com\". Look for \"Anthropic press release\"and format the findings into clean markdown.<\/code><\/li>\n<li>\u514b\u52de\u5fb7\u5c07\u8655\u7406\u60a8\u7684\u8acb\u6c42\u4e26\u8907\u88fd\u5fc5\u8981\u7684\u6ed1\u9f20\u64cd\u4f5c\u548c\u9375\u76e4\u8f38\u5165\u4f86\u5b8c\u6210\u4efb\u52d9\u3002<\/li>\n<li>\u5728\u865b\u64ec\u684c\u9762\u4e0a\u5373\u6642\u89c0\u5bdf\u514b\u52de\u5fb7\u7684\u57f7\u884c\u60c5\u6cc1\u3002<\/li>\n<li>\u5b8c\u6210\u5f8c\uff0c\u514b\u52de\u5fb7\u5c07\u5728\u804a\u5929\u9762\u677f\u4e2d\u986f\u793a\u8f38\u51fa\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><\/figure>\n<p>\u900f\u904e\u9075\u5faa\u9019\u4e9b\u6982\u8ff0\u7684\u6b65\u9a5f\uff0c\u60a8\u53ef\u4ee5\u63a2\u7d22 Claude \u96fb\u8166\u4f7f\u7528\u5de5\u5177\u7684\u529f\u80fd\u3002<\/p>\n<p><a class=\"xiaomi\" href=\"https:\/\/allthings.how\/how-to-use-claude-computer-use-tool-2\/\" rel=\"noopener noreferrer nofollow\" target=\"_blank\">\u4f86\u6e90<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Anthropic \u63a8\u51fa\u4e86\u4e00\u9805\u5275\u65b0\u5be6\u9a57\u529f\u80fd\uff0c\u7a31\u70ba\u514b\u52de\u5fb7\u96fb\u8166\u4f7f\u7528\u5de5\u5177\uff0c\u5141\u8a31\u4eba\u5de5\u667a\u6167\u52a9\u7406\u50cf\u4eba\u985e\u4e00\u6a23\u8207\u96fb\u8166\u4ecb\u9762\u9032\u884c\u4e92\u52d5\u3002\u6b64\u529f\u80fd\u4f7f\u958b\u767c\u4eba\u54e1\u80fd\u5920\u900f\u904e\u6a21\u64ec\u6ed1\u9f20\u79fb\u52d5\u3001\u55ae\u64ca\u548c\u9375\u76e4\u8f38\u5165\u4f86\u6307\u5c0e Claude \u57f7\u884c\u4efb\u52d9\uff0c\u5f9e\u800c\u4fc3\u9032\u8de8\u5404\u7a2e\u6a19\u6e96\u8edf\u9ad4\u61c9\u7528\u7a0b\u5f0f\u7684\u8907\u96dc\u3001\u591a\u6b65\u9a5f\u6d41\u7a0b\u7684\u81ea\u52d5\u5316\u3002 \u8981\u6c42 \u5728\u7e7c\u7e8c\u4e4b\u524d\uff0c\u8acb\u78ba\u8a8d\u60a8\u7b26\u5408\u4ee5\u4e0b\u689d\u4ef6\uff1a Anthropic API \u91d1\u9470\uff0c\u53ef\u5b58\u53d6 Claude 3.5 Sonnet v2\u3002 Docker \u5b89\u88dd\u5728\u60a8\u7684\u7cfb\u7d71\u4e0a\u3002 \u547d\u4ee4\u5217\u547d\u4ee4\u7684\u57fa\u672c\u77e5\u8b58\u3002 \u914d\u7f6e Claude \u7684\u96fb\u8166\u4f7f\u7528\u6f14\u793a \u82e5\u8981\u958b\u59cb\u4f7f\u7528 Claude \u8a08\u7b97\u6a5f\u4f7f\u7528\u6f14\u793a\uff0c\u8acb\u6309\u7167\u4ee5\u4e0b\u8aaa\u660e\u64cd\u4f5c\uff1a \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5f9e Anthropic \u7684 GitHub \u514b\u9686\u793a\u7bc4\u5132\u5b58\u5eab\uff1agit clone https:\/\/github.com\/anthropics\/anthropic-quickstarts.git \u5c07\u76ee\u9304\u8b8a\u66f4\u70ba computer-use-demo \u8cc7\u6599\u593e\uff1acd anthropic-quickstarts\/computer-use-demo \u900f\u904e\u57f7\u884c\u4ee5\u4e0b\u547d\u4ee4\u5c07\u60a8\u7684 Anthropic API \u91d1\u9470\u8a2d\u5b9a\u70ba\u74b0\u5883\u8b8a\u6578\uff1aexport ANTHROPIC_API_KEY=your_api_key_here \u900f\u904e\u57f7\u884c\u4ee5\u4e0b Docker \u547d\u4ee4\u555f\u52d5\u6f14\u793a\uff1a docker run -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY -v $HOME\/.anthropic:\/home\/computeruse\/.anthropic -p 5900:5900 -p 8501:8501 -p 6080:6080 -p 8080:8080 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[181,244,129],"class_list":["post-4926","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-artificial-intelligence","tag-claude","tag-microsoft"],"acf":[],"_links":{"self":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/4926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/comments?post=4926"}],"version-history":[{"count":1,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/4926\/revisions"}],"predecessor-version":[{"id":4927,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/4926\/revisions\/4927"}],"wp:attachment":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/media?parent=4926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/categories?post=4926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/tags?post=4926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}