Claude Code 100% GRATIS - Come usarlo SENZA PAGARE (anche su computer economici)
How to Use Claude Code for Free
Introduction to Claude Code
- The video discusses how to use Claude Code without any cost, presenting two setups: one that maximizes power and another that prioritizes privacy.
- The speaker notes common mistakes in existing guides that lead to failures when attempting more complex tasks.
Using Alternative Models
- To use Claude Code for free, alternative models must be utilized since Claude's own models are not available at no cost.
- These alternative models are open-weight and powerful, allowing full free usage while still leveraging Claude Code's capabilities.
Setup for Maximizing Power
- The unique feature of Claude Code is its agentic capabilities—reading, creating, and modifying files—regardless of the model used.
- For the first setup, users need Claude Code and a service called Open Router to access various AI models at no charge.
- Users should download Google Antigravity as it provides an environment for using Cloud Code and setting up the initial configuration.
Creating Settings File
- A prompt is provided to create a settings file that instructs Cloud Code to utilize Open Router models instead of its default ones.
- After creating the
settings.jsonfile, users must replace placeholders with their API key and chosen model name from Open Router.
Running Commands in Terminal
- Once updated, users can launch the terminal via Command J or Control J and execute commands using their selected model on Open Router.
- An example test command creates a text file with specific content successfully without incurring costs.
Privacy Considerations
- While this setup works well for functionality, it raises privacy concerns as data is sent to Open Router servers.
Setup Optimized for Privacy
Introduction to Ollama
- A second setup focuses on privacy by utilizing Ollama, which allows downloading AI models that run locally on a computer without internet access.
Selecting Models in Ollama
- Users can choose suitable AI models from Ollama by activating specific options or asking other AI tools like ChatGPT for recommendations based on their system specifications.
Downloading Local Models
- Important: Avoid selecting cloud-based models; they won't function locally. Instead, copy code snippets into Antigravity’s terminal to download local-compatible models.
Context Window Adjustment
- By default, Ollama has a context window of 4000 tokens which may prevent proper functioning. Adjusting this setting to 32000 tokens allows better interaction with Cloud Code's system prompts.
Successful Testing Post Adjustment
- After adjusting the context window size, tests show successful creation of files again. This highlights the importance of correct settings in ensuring functionality within Cloud Code.