{"id":182871,"date":"2025-12-13T17:00:10","date_gmt":"2025-12-13T17:00:10","guid":{"rendered":"https:\/\/www.newsbeep.com\/il\/182871\/"},"modified":"2025-12-13T17:00:10","modified_gmt":"2025-12-13T17:00:10","slug":"how-to-install-and-configure-claude-code-step-by-step","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/il\/182871\/","title":{"rendered":"How to install and configure Claude Code, step by step"},"content":{"rendered":"<p> <img decoding=\"async\" src=\"https:\/\/www.newsbeep.com\/il\/wp-content\/uploads\/2025\/12\/aistep555gettyimages-2230989635.jpg\" alt=\"aistep555gettyimages-2230989635\" width=\"1280\" height=\"853.3333333333333\" fetchpriority=\"low\"\/>   Iana Kunitsa\/Moment via Getty Images<\/p>\n<p>Follow ZDNET: <a href=\"https:\/\/cc.zdnet.com\/v1\/otc\/00hQi47eqnEWQ6T9d4QLBUc?element=BODY&amp;element_label=Add+us+as+a+preferred+Google+source&amp;module=LINK&amp;object_type=text-link&amp;object_uuid=5e5d2e64-4b30-43e6-8555-26eac7e449f3&amp;position=1&amp;template=article&amp;track_code=__COM_CLICK_ID__&amp;url=https%3A%2F%2Fwww.google.com%2Fpreferences%2Fsource%3Fq%3Dzdnet.com&amp;view_instance_uuid=379e95d2-6b56-476b-a90b-043a8dd63bd3#link=%7B%22role%22:%22standard%22,%22href%22:%22https:\/\/cc.zdnet.com\/v1\/otc\/00hQi47eqnEWQ6T9d4QLBUc?element=BODY&amp;element_label=Add+us+as+a+preferred+Google+source&amp;module=LINK&amp;object_type=text-link&amp;object_uuid=5e5d2e64-4b30-43e6-8555-26eac7e449f3&amp;position=1&amp;template=article&amp;track_code=__COM_CLICK_ID__&amp;url=https%3A%2F%2Fwww.google.com%2Fpreferences%2Fsource%3Fq%3Dzdnet.com&amp;view_instance_uuid=379e95d2-6b56-476b-a90b-043a8dd63bd3%22,%22target%22:%22_blank%22,%22absolute%22:%22%22,%22linkText%22:%22Add%20us%20as%20a%20preferred%20source%22%7D\" rel=\"noopener nofollow sponsored\" target=\"_blank\">Add us as a preferred source<\/a> on Google.<\/p>\n<p> ZDNET&#8217;s key takeaways Claude Code installation is straightforward as long as you follow a few simple steps.Projects are scoped by directory, so setup location matters.Proper setup unlocks fast, stable, agentic development workflows.<\/p>\n<p>Claude Code has been making waves in the development world. I recently used Anthropic&#8217;s coding assistant to <a href=\"https:\/\/www.zdnet.com\/article\/claude-code-made-an-astonishing-1b-in-6-months-and-my-own-ai-coded-iphone-app-shows-why\/\" rel=\"nofollow noopener\" target=\"_blank\">build a complex and fairly sophisticated iPhone app<\/a> from start to finish. <\/p>\n<p>I started by using <a href=\"https:\/\/www.zdnet.com\/article\/how-to-create-your-first-iphone-app-with-ai-no-coding-experience-needed\/\" rel=\"nofollow noopener\" target=\"_blank\">Claude Code inside Apple&#8217;s Code Intelligence feature of Xcode<\/a>, but found Code Intelligence to be buggy. It crashed or hung fairly consistently. I confirmed that it was Code Intelligence, not Claude Code, causing the issues, because when I tried\u00a0<a href=\"https:\/\/www.zdnet.com\/article\/i-got-4-years-of-product-development-done-in-4-days-for-200-and-im-still-stunned\/#link={%22role%22:%22standard%22,%22href%22:%22https:\/\/www.zdnet.com\/article\/i-got-4-years-of-product-development-done-in-4-days-for-200-and-im-still-stunned\/%22,%22target%22:%22%22,%22absolute%22:%22%22,%22linkText%22:%22using OpenAI%27s Codex%22}\" rel=\"nofollow noopener\" target=\"_blank\">using OpenAI&#8217;s Codex<\/a>\u00a0in Code Intelligence, I encountered the same buggy behavior. <\/p>\n<p>Also: <a href=\"https:\/\/www.zdnet.com\/article\/how-to-create-your-first-iphone-app-with-ai-no-coding-experience-needed\/\" rel=\"nofollow noopener\" target=\"_blank\">How to create your first iPhone app with AI &#8211; no coding experience needed<\/a><\/p>\n<p>When I set up Claude Code to run from the terminal via command line, everything settled down. I had an incredibly productive experience. That&#8217;s what we&#8217;ll discuss in this article: how to set up Claude Code in the terminal, and how to get it working with Xcode. <\/p>\n<p>Please don&#8217;t think this article will only be helpful if you&#8217;re planning to code an Apple app. Everything I&#8217;m going to show you applies to other apps as well. It&#8217;s just that my project is an iPhone app, so that&#8217;s what will be in my examples. <\/p>\n<p> Let&#8217;s get you signed up <\/p>\n<p>Here&#8217;s the thing: You can&#8217;t get a lot of agentic coding done with the free tier of Claude. You will need to sign up for the <a href=\"https:\/\/claude.ai\/\" rel=\"noopener nofollow\" target=\"_blank\">Pro plan ($17\/month)<\/a> or the <a href=\"https:\/\/claude.ai\/\" rel=\"noopener nofollow\" target=\"_blank\">Max plan<\/a> (starting at $100\/month). I recommend starting with the Pro plan. After about five hours, if you decide you like Claude Code, you&#8217;ll have to move to the Max plan, but it&#8217;s fairly easy to do. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"pricing\" width=\"1280\" height=\"934.3340691685063\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>I&#8217;ve found that you get a lot of mileage from the Max plan. I&#8217;ve been using it extensively this month, and it hasn&#8217;t cut me off yet. That puts Claude Code at about $100\/month less than <a href=\"https:\/\/chatgpt.com\/explore\/plus\" rel=\"noopener nofollow\" target=\"_blank\">OpenAI&#8217;s Codex<\/a>, which starts at $200\/month if you do any ongoing development. <\/p>\n<p>Next, you&#8217;ll need to connect to <a href=\"https:\/\/github.com\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"c-regularLink\">GitHub<\/a>. I found that even if you don&#8217;t want to use GitHub, you still need to connect to it. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"github\" width=\"1280\" height=\"824.9768160741885\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>GitHub is a best practice that many developers use, but not all projects need GitHub, especially if you&#8217;re a lone developer. So, if you&#8217;re already way into GitHub, you&#8217;re golden. <\/p>\n<p>Also: <a href=\"https:\/\/www.zdnet.com\/article\/claude-code-made-an-astonishing-1b-in-6-months-and-my-own-ai-coded-iphone-app-shows-why\/\" rel=\"nofollow noopener\" target=\"_blank\">Claude Code made an astonishing $1B in 6 months &#8211; and my own AI-coded iPhone app shows why<\/a><\/p>\n<p>If you&#8217;re not using GitHub, don&#8217;t bother trying to avoid it. Signing up for GitHub is free, and so is creating repos. Claude has some level of separation anxiety. It will not move on with the necessary setup steps without a fully authorized GitHub connection. Fortunately, the process is pretty much on rails, so follow my guidelines, and you&#8217;ll get past this pretty easily. <\/p>\n<p>I have a GitHub account and some repositories, so I created a new repository and connected it to that. You&#8217;ll first need to authorize your connection. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"authorize\" width=\"1280\" height=\"1452.2657580919931\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>Next, you&#8217;ll need to connect your repos. It says you&#8217;re installing the Claude Code GitHub app, but that&#8217;s not entirely accurate. You&#8217;re adding some tracking files. The real install will come later. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"github-app\" width=\"1280\" height=\"851.0698496905394\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>Now, it will ask where to install Claude Code. This is a selection box for all your GitHub accounts. You just need to choose your account. As I said, the real Claude Code install will come later. You&#8217;re just playing along to keep the robot happy. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"install-github\" width=\"1280\" height=\"924.6822742474916\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>Here&#8217;s another one. This time, you&#8217;re specifying the repository you want to hook Claude Code up to. I&#8217;m working on a 3D printing spool filament inventory system, so mine is called &#8220;filamentory.&#8221; That&#8217;s not its final name, but it works for now. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"connect-repo\" width=\"740\" height=\"1081.3548387096773\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>OK, you&#8217;re now hooked up enough to start with the real install. Let&#8217;s do that next. <\/p>\n<p> Install Claude Code on your computer <\/p>\n<p>Claude Code will run inside various development environments, but it&#8217;s designed for and works best inside your terminal application. I was a bit hesitant about it, because I didn&#8217;t want to switch back and forth between my terminal and my IDE, but it turned out to be a very smooth, very easy way to go. <\/p>\n<p>Also: <a href=\"https:\/\/www.zdnet.com\/article\/ai-could-double-the-us-economys-growth-rate-over-the-next-decade-says-anthropic\/\" rel=\"nofollow noopener\" target=\"_blank\">AI could double the US economy&#8217;s growth rate over the next decade, says Anthropic<\/a><\/p>\n<p>Get started by pointing your browser to Claude&#8217;s settings, clicking the little braces icon (shown at 1 below), and then the &#8220;Install instructions here&#8221; link (shown at 2). <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"braces-icon\" width=\"1280\" height=\"677.2038263428992\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>Next, you&#8217;ll see a command line. In my case, I&#8217;m using a Mac as my development machine, so I chose the Mac environment. Select the option that is right for you, click it, and then copy the command line. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"mac-env\" width=\"1280\" height=\"1130.2857142857142\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>Paste that into your terminal program, and press Enter. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"command-line\" width=\"1280\" height=\"770.5125408942204\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>Let it run until it says it&#8217;s complete. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"run-until-complete\" width=\"1280\" height=\"770.5125408942204\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>But, alas, it&#8217;s not really complete. Notice in the following screenshot that the original command line is shown at 1. At 2, the installer indicates that a path change is required. It shows you the command line for that. So, at 3, I went ahead and pasted in that command line and hit return. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"path-fix\" width=\"1280\" height=\"770.5125408942204\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>Now, Claude Code is installed. <\/p>\n<p> Get started coding <\/p>\n<p>Here&#8217;s the big secret about using Claude Code: Everything works from the current working directory. So, if you have a project in \/a\/b\/c\/project1 and another in \/a\/b\/c\/project2, Claude running in project1 will know nothing of project2. And Claude, when running in project2, will know nothing of project1. <\/p>\n<p>Also: <a href=\"https:\/\/www.zdnet.com\/article\/the-best-free-ai-for-coding-in-2025-only-3-make-the-cut-now\/\" rel=\"nofollow noopener\" target=\"_blank\">The best free AI for coding &#8211; only 3 make the cut now<\/a><\/p>\n<p>As long as you keep that in mind, and cd to the proper directory before initiating Claude, all will be good. So let&#8217;s do that. I keep my Development folder in My Documents. It&#8217;s an easy way to make sure it gets picked up on all the backup sweeps, and it works. I have a fairly deep folder structure inside, but my current iPhone project is located in a folder called xcode. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"cd-xcode\" width=\"1280\" height=\"770.5125408942204\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>So, the first thing I do is cd to that folder. Then, go ahead and launch Claude by typing &#8216;claude&#8217; on your command line. Claude will perform a series of startup steps that will be repeated for each new project folder you set up. Here, it&#8217;s asking about the theme. Dark, of course. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"theme\" width=\"1280\" height=\"770.5125408942204\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>Next, it will need to connect to your subscription. Most of you will go through the subscription option, so select that. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"sub-option\" width=\"1280\" height=\"770.5125408942204\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>Next, you&#8217;ll need to authorize the link. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"authorize-link\" width=\"1280\" height=\"1450.2660406885757\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>At this point, Anthropic will share with you the facts of life. Press Enter to accept the fact that our robot overlords are fallible. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"facts\" width=\"1280\" height=\"770.5125408942204\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>I strongly recommend you let Claude Code use its recommended settings. You can change things later, if you wish. But this is the most straightforward way to get things working. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"settings\" width=\"1280\" height=\"770.5125408942204\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>Now, you need to confirm you&#8217;re in the right folder, want to work on it, and trust what&#8217;s in it. Trust is an ephemeral thing. At some point, you have to trust something, or you&#8217;ll be completely on your own (Mom Cautionary Life Lesson #47).<\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"trust\" width=\"1280\" height=\"770.5125408942204\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>And now, we&#8217;re here. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"claude\" width=\"1280\" height=\"752.4600638977636\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>You could start working now, but there are a few more things you should do to ensure everything is set up correctly. We&#8217;ll jump into that next. <\/p>\n<p>Also: <a href=\"https:\/\/www.zdnet.com\/article\/linus-torvalds-ai-tool-maintaining-linux-code\/\" rel=\"nofollow noopener\" target=\"_blank\">Linus Torvalds is &#8216;a huge believer&#8217; in using AI to maintain code &#8211; just don&#8217;t call it a revolution<\/a><\/p>\n<p> Initializing and first steps <\/p>\n<p>Claude Code utilizes several slash commands that modify its behavior. You can even add your own slash commands down the road. <\/p>\n<p>The first one you should run is \/init. It will scan your folder, create a <a href=\"http:\/\/CLAUDE.MD\" target=\"_blank\" rel=\"noopener nofollow\" class=\"c-regularLink\">CLAUDE.<\/a><a href=\"http:\/\/CLAUDE.MD#link={%22role%22:%22standard%22,%22href%22:%22http:\/\/CLAUDE.MD%22,%22target%22:%22%22,%22absolute%22:%22%22,%22linkText%22:%22CLAUDE.MD%22}\" target=\"_blank\" rel=\"noopener nofollow\" class=\"c-regularLink\">MD<\/a>\u00a0file, which it can use as a reference, and generally become familiar with your code.<\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"init\" width=\"1280\" height=\"752.4600638977636\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>As you can see, it has built up an understanding of what&#8217;s inside my codebase. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"understand\" width=\"1280\" height=\"752.4600638977636\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>My folder is not pristine. I initially created the project using Claude in Xcode with Code Intelligence. That process was documented in <a href=\"https:\/\/www.zdnet.com\/article\/how-to-create-your-first-iphone-app-with-ai-no-coding-experience-needed\/\" rel=\"nofollow noopener\" target=\"_blank\">this article<\/a>. So, as Claude does its \/init process, it&#8217;s getting to know that code. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"code-intelligence\" width=\"1280\" height=\"752.4600638977636\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>Finally, when it completed that scan, I gave Claude its first agentic assignment. I wanted it to dig through the mess that Code Intelligence left and ensure there were no duplicate files or code instances. <\/p>\n<p> <img decoding=\"async\" src=\"\" alt=\"dedup\" width=\"1280\" height=\"752.4600638977636\" fetchpriority=\"low\"\/>   Screenshot by David Gewirtz\/ZDNET<\/p>\n<p>From here, I went on to &#8220;vibe code&#8221; my way to a fully working iPhone app. I hope this helped you get started. <\/p>\n<p> Claude&#8217;s new Slack integration <\/p>\n<p>Here&#8217;s a quick mention of another way to talk to Claude Code: via Slack. <a href=\"https:\/\/claude.com\/blog\/claude-code-and-slack\" target=\"_blank\" rel=\"noopener nofollow\" class=\"c-regularLink\">Anthropic announced this<\/a> a few days ago as a research preview. <\/p>\n<p>Also: <a href=\"https:\/\/www.zdnet.com\/article\/text-image-tests-openai-gpt-5-2-mixed-results-compare-gpt-5-1\/\" rel=\"nofollow noopener\" target=\"_blank\">I tested GPT-5.2 and the AI model&#8217;s mixed results raise tough questions<\/a><\/p>\n<p>I think it&#8217;s an interesting approach, but I&#8217;d be concerned about accidentally typing something into Slack and having it send Claude into some kind of agentic tizzy. It&#8217;s worth considering, but don&#8217;t get carried away with this interaction mode until you do some more research. It&#8217;s probably best to wait until the feature comes out of beta. <\/p>\n<p> Have you tried Claude Code? <\/p>\n<p>What about you? Have you tried Claude Code yet, either inside an IDE or from the terminal? If so, how did it compare to tools like OpenAI Codex or built-in Code Intelligence features? Do you prefer AI coding assistants embedded directly in your editor, or do you find a command-line workflow more stable and productive? And how do pricing, reliability, and setup friction factor into whether you&#8217;d adopt a tool like this long-term? Let us know in the comments below. <\/p>\n<p>You can follow my day-to-day project updates on social media. Be sure to subscribe to <a href=\"https:\/\/advancedgeekery.substack.com\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"c-regularLink\">my weekly update newsletter<\/a>, and follow me on Twitter\/X at <a href=\"https:\/\/twitter.com\/davidgewirtz\" target=\"_blank\" rel=\"noopener nofollow\" class=\"c-regularLink\">@DavidGewirtz<\/a>, on Facebook at <a href=\"https:\/\/www.facebook.com\/davidgewirtz\" target=\"_blank\" rel=\"noopener nofollow\" class=\"c-regularLink\">Facebook.com\/DavidGewirtz<\/a>, on Instagram at <a href=\"https:\/\/www.instagram.com\/DavidGewirtz\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"c-regularLink\">Instagram.com\/DavidGewirtz<\/a>, on Bluesky at <a href=\"https:\/\/bsky.app\/profile\/davidgewirtz.com\" target=\"_blank\" rel=\"noopener nofollow\" class=\"c-regularLink\">@DavidGewirtz.com<\/a>, and on YouTube at <a href=\"https:\/\/www.youtube.com\/user\/DavidGewirtzTV\" target=\"_blank\" rel=\"noopener nofollow\" class=\"c-regularLink\">YouTube.com\/DavidGewirtzTV<\/a>.<\/p>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><script async src=\"\/\/www.instagram.com\/embed.js\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"Iana Kunitsa\/Moment via Getty Images Follow ZDNET: Add us as a preferred source on Google. ZDNET&#8217;s key takeaways&hellip;\n","protected":false},"author":2,"featured_media":182872,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[345,343,344,85,46,125],"class_list":{"0":"post-182871","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-artificial-intelligence","8":"tag-ai","9":"tag-artificial-intelligence","10":"tag-artificialintelligence","11":"tag-il","12":"tag-israel","13":"tag-technology"},"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/posts\/182871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/comments?post=182871"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/posts\/182871\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/media\/182872"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/media?parent=182871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/categories?post=182871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/tags?post=182871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}