# How to use Claude Code FREE Forever | STOP Paying $200/m

## Метаданные

- **Канал:** Website Learners
- **YouTube:** https://www.youtube.com/watch?v=AjoD5GqosTk
- **Источник:** https://ekstraktznaniy.ru/video/27531

## Транскрипт

### Segment 1 (00:00 - 05:00) []

What if I told you that you could use the most powerful AI coding tool, Cloud Code, completely for free forever? No $20 monthly subscription, no expensive AP credits. Normally, Cloud Code can cost you hundreds of dollars a month, but I'll show you a way to access it for free. If you can copy paste a few lines of text, then you can do this too. So, let's get into the video. We are going to do this in just four simple step. And the first step is to install the NodeJS. So to install the NodeJS, go to this page and the link will be available in the description. So once you are in this page, click get node and here you will see the list of operating systems available. Select the one you are using. Since I am working on a Mac OS, I'll select Mac and click here to download the installer. Once it downloaded just open the installer and start installing the NodeJS just by clicking continue and it will start installing the NodeJS and it's done. So we have successfully installed the NodeJS. To verify the installation just open your and in terminal just type node space- and if you see a version number here this means we have successfully installed the NodeJS in our machine. Okay, let's move on to the second step which is to installing the cloud code. So to install the cloud code we need to go to this website. Again the website link is in the description. Once you are in this page you will see a single line command. Just copy this command and open your terminal and paste that command here and hit enter and the cloud code will start installing on your machine. It's that simple. All right. The cloud code is now installed. So to check it just close this terminal and open a new terminal and just type claude and hit enter. When you hit enter the cla's onboarding steps will appear. First it ask which theme you want to use. I'll select the dark mode. Next it will ask for the cloud signin option but we are going to see how to access this for free. So now let's go to the third step. This is the key step. We need to tell the cloud code not to talk to anthropic. Instead, we are going to tell it to use the open router. We can do this through a small configuration settings. For that, we need to go to the clots installation folder. So, open your finder. Go to your user folder. Once you there, the cloud installation folder will be hidden. So, to show the hidden folders, press command shift period on your keyboard. Once you do that, the hidden folders will show with a dot before the folder's name. Now look for the folder named cloud and open that folder. So inside this folder, we need to create a new file. On Mac, you can't directly create a new file in finder. But there is a way to create it. For that, we need to open a terminal in this folder. On the bottom of the finder, you can able to see a path bar. If this isn't showing in your finder, you can simply enable it by clicking on the view from the menu icon. And here you can see the option to show the path bar. Just click on it and the path bar will be shown. Once you do that, now we need to create a new file here. Right click on the dotcloud folder and click open in terminal. You will open a new terminal inside this folder. Now just type touch space and the name of the file that you want to create which is settings. json. Once you type that, click enter and the file will be created. Now we can edit inside this file. So to edit this, just open this file by right clicking on it and click open with. Now you can open this file with your preferred editor. I'll select the text edit. Now inside this file, we need to paste a JSON code. So to get the JSON code go to this website the link will be available in the description and this is the open router official documentation page to connect to the clot code. Now in this page just scroll down a bit and under the step two you'll see this project settings file. Just click on it and here you can see the JSON code. Now copy this code and go back to the text edit. Paste the code here. Okay. And now let's move on to the final step which is to get the open router API key. To get the API key, go to this page. The page link will be available in the description and click sign up and

### Segment 2 (05:00 - 09:00) [5:00]

create a new account. Once you created a new account, just click get API key and click create. Now give a name for the key. I'll give code and leave this as no expiration so that our key doesn't expire until we delete it. So once you click create you will get a API key. Just copy this key and go back to the text edit and paste that key here. One more thing needs to be added that is the model that we are going to use. Just copy this third line and put a comma to the end of this line and hit enter. Then paste it here. Now change this from API key to model. Now inside this double quotes we need to choose the model that we are going to use. To get the model go back to the open router and click explore models. Now here you will see a list of available models. Since we want a free model just search for free and a list of free models will shown up. You can use any of this model in clot code. And you might wonder will every model works perfectly in cloud code? I'm not sure about it because clot code might not utilize every model fully, but it will work on some model. Since it's free, you can keep changing and checking the models. So I'll go with this first model. Click here to copy the model ID and go back to the text edit and place that model ID here. Now save this file by pressing control or command S. And that's it. We have successfully configured it. Now let's check if cloud code works. I'm going to create a new project by creating a new folder on my desktop. I'll name it demo project. And inside this folder I'm going to access the cloud code. Just right click on this folder path. Now click open in terminal. Once the terminal is open, just type cloud and hit enter. Now it will again ask for the theme. So I'll select the dark mode. And now you can see it didn't ask for the cloud signin option. It directly open the clot code. Now press enter to continue and click yes. That's it. The cloud code is now working with the model that we just selected in open router. From here on you can start using the cloud code normally. To see if it works, I'll just ask, hey, you there. And you can see it's now started and it replaced. So, it's working. To quickly check if it's fully functional, I'll ask it to create a small web app. So, first I'll type slash in it and hit enter. Now you can see it start thinking and it analyzes the code base and searching for patterns and great it creates the cloud MD file. So, it's actually working. Now I'll ask it to create a modern dashboard UI for a Tudo web app and I'll hit enter and that's it. It has started working. Now let's wait for the output and that's it. Cloud code has created it just like we asked. Now let's open it and see. So this is the app that we asked for. Let's create let's try to create a new task. And yes it's working. We can see. So that's it. It's working perfectly. So, this open router method is great, but keep in mind that since these models are free, they can be a bit slow sometimes and hit you with a rate limit if you use them too much. Now, if you want to skip this rate limit entirely, there is a way to run everything directly on your machine. It's way faster, completely private, and 100% free forever. If you want me to show you how to do that, just comment below in the video. I'll put that video for you. Thanks for watching and I'll see you in the next one.
