Most Claude Code guides assume you’re working in a terminal or IDE. But there’s a third option that nobody needs to install anything for: the browser. At claude.ai/code, you can use Claude Code capabilities directly in your browser — which is useful in more situations than you might expect. Here’s what it actually does, how it differs from the desktop experience, and when it makes sense to use it.
This is part of our complete How Claude Code Works — A Beginner’s Deep Dive.
TL;DR
- Claude Code in the browser runs at claude.ai/code — no installation required
- You can ask coding questions, review code, and get help without installing the CLI
- The browser version can’t directly edit files on your computer — it works with code you share
- It’s best for quick questions, reviewing pasted code, and getting started before you install the CLI
- The full Claude Code experience (file access, diff review, session management) requires the CLI or IDE extension
What Is Claude Code in the Browser?
Claude Code in the browser is the web-based version of Claude Code, accessible at claude.ai/code. It gives you access to Claude’s coding capabilities through a familiar chat interface — no terminal, no installation, no configuration.
Think of it as Claude Code Lite. You get the intelligence without the deep file integration. You can paste code, ask questions, get explanations, request refactors, and generate new code. What you can’t do is have Claude Code directly read and modify the files on your computer the way the CLI or IDE extensions do.
This doesn’t make it less useful — it just makes it useful for different things.
Step 1: Access Claude Code in the Browser
Getting started takes about 30 seconds:
- Go to claude.ai/code in any modern browser
- Sign in with your Anthropic account (or create one — there’s a free tier)
- You’ll see a coding-focused chat interface, ready for your first prompt
That’s it. No downloads, no npm install, no PATH configuration.
💡 Pro Tip: Claude Code in the browser is a great way to explore Claude Code before committing to installing the CLI. You can get a feel for how it thinks and communicates before setting up the full local tool.
Step 2: Understand What the Browser Version Can Do
The browser version has access to the same underlying Claude model. That means it can:
Understand and explain code:
# Paste code and ask for an explanation
Explain what this function does and identify any potential issues:
function debounce(func, wait) {
let timeout;
return function executedFunction(...args) {
const later = () => {
clearTimeout(timeout);
func(...args);
};
clearTimeout(timeout);
timeout = setTimeout(later, wait);
};
}
Refactor or improve code you paste:
# Ask for a refactor of pasted code
Refactor this to use async/await instead of promise chains,
and add proper error handling:
[paste your code here]
Write new code from a description:
# Generate new code
Write a Python function that takes a list of dictionaries and returns
them sorted by a specified key, with a fallback if the key doesn't exist.
Review code for bugs or improvements:
# Code review in the browser
Review this authentication middleware for security issues:
[paste middleware code]
Answer questions about languages, frameworks, and concepts:
# General coding questions
What's the difference between useCallback and useMemo in React,
and when should I use each one?
Step 3: Connect a Repository (For File Access)
Some versions of the browser interface support connecting a GitHub repository. When connected, Claude Code in the browser can read your actual files — giving it context similar to the CLI experience.
To connect a repository:
- Look for the “Connect Repository” option or the
@symbol in the prompt area - Select GitHub and authorize the connection
- Choose the repository you want to connect
- Claude Code can now reference files from that repository using @-mentions
# Once a repo is connected, @-mentions work in the browser
Look at @src/utils/pricing.js and explain the calculateTotal function.
Does it handle edge cases correctly?
⚠️ Warning: When you connect a repository, Claude Code reads your code through Anthropic’s servers. Make sure you’re comfortable with this before connecting a repository that contains proprietary or sensitive code. Review Anthropic’s privacy policy if this is a concern.
Step 4: Work Effectively Without File Access
If you’re using the browser version without a connected repository, you’re working with whatever code you paste in. Here’s how to work efficiently in that mode:
Paste the specific code you need help with:
Instead of trying to describe your code, paste it directly. Claude Code in the browser can handle large code blocks.
# Effective browser workflow — paste the relevant code
I have a React component that's causing unnecessary re-renders. Here it is:
[paste the component code]
Identify which parts are causing the re-renders and show me the
optimized version.
Paste error messages along with relevant code:
# Include the error output with the code
This function is throwing the error below. Here's the function and the error:
Function:
[paste function]
Error:
TypeError: Cannot read property 'map' of undefined
at processItems (utils.js:42)
Use the browser for architecture questions before writing code:
The browser version is excellent for planning and thinking through problems before you start coding:
# Architecture planning in the browser — no code needed
I'm building a multi-tenant SaaS app where each customer needs data isolation.
I'm using PostgreSQL. Should I use separate schemas per tenant, row-level security,
or separate databases? Walk me through the tradeoffs.
Browser vs. CLI vs. IDE Extension: When to Use Each
| Situation | Best Environment |
|---|---|
| Quick question while on a different computer | Browser |
| Reviewing code a colleague sent you | Browser |
| No Claude Code installed yet | Browser |
| Working on your own project files | CLI or IDE extension |
| Want inline suggestions in your editor | IDE extension |
| Automated/agentic coding tasks | CLI |
| Public computer (don’t want to install things) | Browser |
| Exploring Claude Code before committing | Browser |
For a full comparison, see Claude Code Desktop App vs Terminal — Which to Use?.
Limitations of the Browser Version
Being clear about what the browser version doesn’t do will save you frustration:
No direct file editing: The browser can’t open, read, or write files on your local computer. Any changes it suggests need to be manually applied by you.
No terminal command execution: The CLI can run shell commands (tests, build scripts, installers). The browser can’t.
No persistent session memory by default: Unless you’re on a plan that includes memory features, each browser session starts fresh.
No Plan Mode or Auto Mode: The browser interface doesn’t have the same mode-switching functionality as the CLI. You’re always in an interactive chat mode.
No @-mention autocomplete (without repo connection): Without a connected repository, there’s no autocomplete for file and symbol @-mentions.
Common Mistakes and How to Fix Them
Mistake 1: Pasting Too Little Code
Problem: You paste one function and ask why it’s broken, but the bug is actually in a different function that calls it.
Fix: When something is broken, paste all the code that’s involved — the function, what calls it, and the error message. More context produces better diagnoses.
Mistake 2: Expecting the Browser to Edit Your Files
Problem: You ask Claude Code to “fix the bug in my app” in the browser, expecting your files to change.
Fix: The browser version provides suggestions, not direct edits. Copy the suggested code and paste it into your files manually. Or install the CLI for direct file editing.
Mistake 3: Using the Browser for Large File Reviews
Problem: You paste a 500-line file and ask Claude Code to refactor the whole thing. The response is difficult to apply because you’re manually copying sections.
Fix: For large-scale refactors, the CLI is much better — it can edit multiple files directly. Use the browser for targeted questions about specific functions.
Mistake 4: Not Knowing About Repository Connection
Problem: You’re frustrated by the browser’s limitations and don’t realize you can connect a GitHub repository for file access.
Fix: Look for the repository connection option if you need Claude Code to read your actual files. It bridges much of the gap between browser and CLI.
Key Takeaways
- Claude Code in the browser is available at claude.ai/code — no installation required
- It works with code you paste in, or files from a connected GitHub repository
- It’s excellent for quick questions, code review, generating code from descriptions, and exploring Claude Code
- It can’t directly edit files on your computer — manual copy-paste is required for applying changes
- For full Claude Code functionality (file access, diff review, modes), the CLI or IDE extension is the right tool
Next Steps
- Claude Code Desktop App vs Terminal — Which to Use? — compare all environments to find the right one for your workflow
- What is the Claude Code CLI? — learn about the full CLI if you’re ready to move beyond the browser
- Your First 10 Minutes with Claude Code — get started with the full Claude Code experience
Return to How Claude Code Works — A Beginner’s Deep Dive for the full picture.