Video summary

How to Use Claude Code in VS Code for FREE – Full Setup & Usage Guide

Main summary

Key takeaways

Technology

Overview

This tutorial explains how to use Claude Code (via the OpenRouter extension) in Visual Studio Code for free/low-cost, by:

  • Setting up an OpenRouter API key
  • Selecting models (including “free” tiers) inside the extension

Setup / Installation (VS Code)

  1. Open VS Code
  2. Go to Extensions
  3. Search for OpenRouter AI
  4. Click Install
  5. After installation, open the OpenRouter icon in the extension UI
  6. The extension prompts for an OpenRouter API key

OpenRouter Account + API Key

  1. In a browser, go to openrouter.ai
  2. Click Sign up (Google or GitHub supported)

  3. In the OpenRouter dashboard:

    • Open the three-dots / Keys section
    • Click Create API Key
    • Provide a key name (e.g., “AI free”)
    • Leave other fields (credits/limits/expiration) as default
    • Copy the API key (it can’t be viewed again later)

Tip: Make sure you copy the API key immediately after creating it.


Using the Extension + Model Selection

  1. Paste the OpenRouter API key into VS Code when prompted
  2. Use the extension’s chat interface
  3. In the UI, check the Models list and select a model, such as:
    • “Claude/Cloud set 3.5” (UI text may appear as “Claude Set 3.5” / “cloud sonet 3.5”)
  4. Note the model’s token limit (approximately 100k–200k tokens, based on the tutorial)

If tokens run out

  • Switch to models marked “free”, described as free without the same token constraints, including examples:
    • Llama 3.1 (free)
    • Llama 3.0 405p instruct (free)
    • Phi mini (free)

Conclusion

  • It’s not fully “entirely free”.
  • But you can keep using the tool by switching to free models once paid/free-tier limits for the main model are exhausted.

Main sources / speakers

  • Single tutorial speaker (narrator): walks through the VS Code and OpenRouter steps
  • OpenRouter (openrouter.ai): provides API keys and model access
  • VS Code OpenRouter AI extension: serves as the in-editor client interface

Original video