This opening chapter introduces the scope of the course and explains how to install and authenticate Claude Code. It also describes the terminal interface and the basic information it displays while running.
Hey, this is the definitive course on Cloud Code for beginners.
I use Cloud Code every day to manage a business that does over $4 million a year in profit.
I also teach over 2,000 people how to use Cloud Code both for personal and then corporate or professional tasks.
So, this is more or less what I do all day.
Once you understand what I'm about to show you in this course, it's no small stretch to say that Cloud Code will augment your productivity.
You'll gain leverage in areas that you probably didn't even realize that you had.
And that's both for software engineering and also other parts of your life.
The focus here is not software per se, so you don't need to have a technical
background to understand what I'm going to tell you.
I'll make sure to start slow and build concepts on each other naturally and gradually so that everybody here is on the same page.
So, no fluff.
Here's what you guys are going to learn in this course.
We're going to start with the basics by downloading and then setting up cloud code ourselves.
I'll then teach you all about integrated development environments or idees.
There's several on the market and I'm going to walk you guys through the three most commonly used ones so that we're all on the same page.
Afterwards, I'll show you how to set up your project brain, which is also known as the claw.md file.
Once we're done with that, we'll use Claude Code to actually build something because the focus of this whole course is on practical building.
We'll build a simple web app hosted live on the internet, which I'll help you guys learn by doing, not just sitting around and listening to me.
After that, we'll cover the Claude directory, the sub aents folder, and a bunch of functionality that not a lot of people know about.
We'll then cover Claude Code's various modes, including their plan mode, which you guys might have
heard about.
Dangerously skip permissions mode, which gained a fair amount of uh notoriety recently, and how to use them, as well as use them safely.
We'll then cover complex project builds using plan mode and what I just showed you guys.
After that, we'll cover context management, which is quite the term right now.
I'll teach you guys all about how to manage your context efficiently, avoid context rot, and ensure that your prompts are built and structured in a high ROI way.
I'll run you through every slash command in Cloud
Code and how to use all of them.
We'll then cover hooks, which are custom scripts that you guys can fire automatically before or after every Cloud Code tool call.
Very useful to know.
I'll then talk about Claude Code skills, which is basically how to create these skill files that turn Claude code into a bunch of different specialized agents.
We'll then cover model context
protocol and how to set it up effectively.
I'll talk about a handful of automated systems that you guys can quickly build with model context protocol, including email managers.
You can build your own bookkeeper and more.
I'll cover cloud code plugins and marketplaces.
The Chrome DevTools integration, which is a very slept on uh connection between Cloud Code and Chrome that enables you to collect data from sources that don't have APIs.
It's very, very valuable to learn.
We'll then cover Cloud Code sub agents with scoped tool access.
I'll talk about their new agent team feature and how to use them
productively.
and then get work trees and session mobility which essentially will allow you to spin up parallel cloud sessions without a lot of the downsides and issues that things like claudebot or or open claude have unfortunately resulted in.
Finally, we'll cover scaling and deployment.
Basically, how to take your automations and run them in production using modal web hooks, GitHub
actions, and cloud code on the web.
So, we've got quite a lot to cover.
Let's just dive right into it with the first, which is how to set up cloud code as a total beginner.
So, the first thing we have to do is we actually have to purchase cloud code.
And the reason why is because they don't offer it for their free plan at $0.
In order to have access to Cloud Code, you need at least their
pro plan for everyday productivity.
I'd recommend this if you guys are starting out.
The money that you spend on a subscription like this is so small compared to the massive productivity benefits that despite the fact that it's $17, I personally would not even raise an eyebrow.
It's no small stretch to say that Cloud Code probably delivers me productivity benefits on the
order of $10 to $15,000 a month because it's not only just skilled as a developer might be, which allows me to build systems that alleviate stresses and strain in my life, but it's much more than a developer as well.
It's basically my second brain at this point.
After you click try Claude, it'll take you to a page where you have to log in.
And once you're done, you can then create your account for the very first time.
So, I'd select both of these.
I'm not going to subscribe to occasional product updates because my email inbox is busy enough.
And then you have an onboarding screen with some personal information.
So, I'm just going to fill that out and then once I'm done, circle back.
Okay.
So, I'm Canadian and
unfortunately our dollars convert quite poorly to freedom dollars.
So, the $17 that we saw earlier is $28 in my own currency.
I'm going to click get pro plan and then walk through the payment details below.
Cool.
And now I have a Cloud subscription.
This is all that you need in order to get set up.
Everything else is totally free from here on out.
The simplest way to get up and running with Cloud Code is just opening up a terminal instance.
That'll seem pretty intimidating to a lot of you.
So, I'm not just going to show you how to do it in the terminal.
I'm also going to show you how to do it using what's called their graphical user interface, which they put together four or five months ago.
Any resource that I show you
throughout this course is probably going to look a little different by the time that you look at it versus when I'm looking at it.
And that's because cloud code, anthropic, and just AI tools in general change really quickly, especially since most of the developers are also using cloud code.
So it kind of multiplies the productivity here.
What's important is not the specific layout,
the colors, the the words on the screen.
What's more important is that you just know how to find it.
And so the number one resource that I personally use to look up advanced cla features is in the cloud code documentation.
It's at code.cloud.com/doccks.
Whatever language you speak, just pump in there and then it'll automatically translate that over to.
So the cloud code docs specify that in order to install cloud code in your system for the first time, you can run what's called a curl command here.
If you're running Windows PowerShell, you know, you can run this Windows cmd, you can run that.
Just so we're all on the same
page here, when you have little snippets of text like this, what they're telling you to do is basically to open up a terminal or a command prompt.
So on Mac OS, Linux, or WSL, which are all different operating systems, in order to open up a terminal, you just type terminal.
When you do so, you then get a terminal.
Now, this terminal might look a little intimidating to you if it's
your first time ever using something like that.
But don't worry about it too much.
I just wanted to show you guys how easy it is to get set up with cloud code in this.
And then afterwards, as mentioned, we'll we'll do the graphical user interface stuff.
Okay.
So, this is what it looks like on Mac.
If you guys are on a Windows, then um you'll have to use the Windows key search bar.
Then
it'll look up something like cmd or command prompt.
At the end of it, you'll get something that looks pretty similar to this.
From here on out, all we have to do is we have to copy over the command that it gives us.
So, because we want a native install and I'm in Mac OS, I'm just going to copy over this command.
You can also click this little button over here and then alt tab back.
I'm then going to paste it in and press enter.
From here on out, a bunch of complicated things are going to occur.
If you don't already have it installed, may take you a little bit longer, but now we're good to go.
Claude Code is installed on our computer.
Once you're done with all that, all you have to do in order to use Claude is just type the word Claude directly into your terminal.
It's really that easy.
Now, if it's the very first time that you're logging in, you'll also have to authenticate, and it'll ask you to do so automatically when you open this stuff up.
If not, you can also type back slashl i n.
Once you've clicked this, it'll tell you cloud code can be used with your cloud subscription or build based on API usage through your console
account.
How would you like to set up?
Now, in our case, we're using the cheapest, most effective method, which is the Pro, Max, Teamer, or Enterprise subscription.
It's also the most straightforward, which is why it's the one that I used in this course.
I'm just going to click enter, and then it'll then log you into your Claude account, the one that you just set up a moment ago.
Once we're done, you're all set up
for Claude Code, you can close this window, then alt tab back, and you'll see that it's going to say just press enter to continue.
Now, just so we're all on the same page here, all we've really done so far is we've just opened up a chat interface with an AI model.
It's just instead of it being in like a nice desktop application or on the web, it's in our terminal.
And the value here is instead of running an AI model on the web or in some distant cloud server, what we're doing now is we're running it locally on our computer.
So we actually have the ability to take this model and then locally modify files on our computer, write scripts, write stories,
write poems, restructure our file organizer, clean up our PC or our Mac.
Like this thing is currently connected to my computer.
And I'll run you guys through how permissions and all that stuff work later on in the course as I talked about in the outline.
But even this alone makes it extraordinarily powerful.
So this screen can look pretty intimidating for beginners.
Most people
end up using the terminal um flow, not the GUI flow, but I'm going to explain to you what you guys see here just for simplicity.
In the top lefthand corner, you have that cute little claude code widget.
I think it's I don't know if it was supposed to be a crab or like a jellyfish, but it's adorable.
Then you have claude code and the actual version up above.
Underneath you have the model
that you're currently using.
In my case, I'm using Opus 4.6.
Then you have the plan that you're on.
In my case, Claude Mac.
So this is a couple levels up from the pro plan.
And then perhaps most importantly, you have the current working directory.
As I mentioned to you a moment ago, this is working inside of your computer in a specific folder.
And so Cloud Code currently lives inside /
users/nixar, which is basically like the home folder, at least on my Mac OS.
Here is your previous command.
And so I just wrote clear because I wanted to clear it all the way up and give you guys a fresh canvas.
Here is where you actually insert the text.
So when you type stuff, it pops up.
Underneath here, it tells you the model again.
Then it gives you various modes.
So in my mode right now,
I'm in bypass permissions.
This is sort of like a dangerous mode.
It's a mode that not a lot of people feel super comfortable with, but it's the mode that I prefer for uh knowledge work and intellectually valuable tasks.
And I'll run you guys uh through more of that later on.
But you can cycle through modes simply by clicking shift and tab, which I'll show you guys how to do.
And
then there's some additional information here.
There's a version, the latest, and then over here is at least in my case, the token readout.
And you know what's really cool?
You can actually adjust this.
This sort of thing is your your claude code status line, which I'm also going to run you through it.
You can make it all colorful and all wonky and really fun.
You can have it display
whatever the heck you want.
So the very first thing I'm going to do is I'm just going to say, "Hey, how's it going?" And immediately after, I'm going to take a screenshot so I could show you guys some more information.
So, opening this up in my drawing tool.
What ended up happening is immediately after we said, "Hey, how's it going?" You see that another prompt showed up called finagling.
This
is one of like a thousand different words that Claude Code uses.
Basically, anytime it's thinking, it's going to use some funny term like finagling or processing or uh I don't know, rumpeting or considering or what whatever the heck.
They're pretty funny.
And the cool thing is you can customize that.
Next, you have the number of seconds that your your query has lasted.
So, I just said,
"Hey, how's it going?" And then 2 seconds in, it's now produced five tokens for me.
And then finally, you also have the token count.
So, just so we're all on the same page, a token is not the same as a word, but at least for the purposes of most of what you do, you can consider a token to be similar to a word.
For instance, I said, "Hey, how's it going?" Um, this is not 1 2 3
four.
This isn't four tokens.
It might be four words.
It's probably closer to six or seven tokens, but just think about tokens as being analogous towards just a few more if that makes sense.
You'll also see that an additional piece of information popped up down here called context.
And this is really important.
Um context goes from 0 to 100% and that's how much basically um conversation history you have in the current chat window with your current instance of cloud code.
This becomes really important later when you're designing uh better context management
techniques which is a big portion of what this course is going to be all about because at least as of the time of this recording context management is sort of like the big bottleneck in getting these systems to do more and better for you.
You'll also notice that on the right hand side my token counter uh my status line here it went up significantly.
And so basically what
this means is at about 20,000 tokens or so, we're about 10% of the way through um our entire conversation thread that's allotted to us.
What's really cool is Claude Code will take all of that history and at regular intervals, it'll actually compress that for you by increasing the information density, taking a string of text and then making it higher information density and higher
information density and higher information density successively.
So that even if you wrote something in kind of like a you know a bloated way, a way that you know you could have used fewer words to say um as your context goes up and longer um cloud will automatically manage that for you to ensure that you're within the window.
So that's how to set up cloud code in the terminal.
Hopefully we're all on the same page.