How to Use Claude Code in Google Antigravity: Step-by-Step Setup
Want to use Claude Code while working in Google Antigravity? A short Instagram tutorial demonstrates a simple workflow: open a project folder, install the Claude Code extension, run /init, and start asking Claude to explain or edit your code.
This guide breaks down those steps and includes compatibility checks worth doing before you rely on the setup.
Important compatibility note: Anthropic documents its Claude Code extension for Visual Studio Code, with VS Code 1.98 or later listed as the requirement. Its marketplace listing does not explicitly guarantee support for Google Antigravity. The steps below describe how to try the workflow shown in the video; extension behaviour may vary by Antigravity version. For the officially documented editor setup, use a supported VS Code installation.
What Is Claude Code?
Claude Code is an AI coding agent from Anthropic. It can inspect a codebase, explain relationships between files, propose or make code changes, and help with debugging and tests.
The VS Code extension integrates Claude Code into the editor so developers can work with their projects without constantly switching to a separate chat window.
You can find it in the official Claude Code extension listing.
How to Set Up Claude Code in Google Antigravity
Step 1: Open Your Project Folder
Launch Google Antigravity and open the folder for the project you want Claude Code to inspect.
If you are testing the setup for the first time, use a small sample project or a copy of your codebase. Save your work and create a Git commit before testing an AI tool that can modify files.
Step 2: Open the Extensions Panel
Open the Extensions view in Antigravity.
The familiar VS Code shortcut on Windows and Linux is Ctrl + Shift + X. If that shortcut is unavailable in your version, open Extensions through the interface or Command Palette.
Step 3: Find the Official Claude Code Extension
Search for Claude Code. Check that the publisher is Anthropic and open the official Claude Code for VS Code listing before installing.
Avoid similarly named extensions from unknown publishers. Click Install if your Antigravity build permits it.
If the extension cannot be installed, fails to activate, or displays compatibility errors, do not assume the problem is your project. Antigravity compatibility is not explicitly guaranteed by the marketplace listing.
In that situation, use the documented VS Code setup or consult the official Claude Code installation guide.
Step 4: Complete Sign-In and Open Claude Code
After installation, follow the extension's sign-in and access prompts. Claude Code requires an eligible account or supported billing arrangement; installing the extension does not automatically make every feature free.
Open the Claude Code panel or icon in the editor once setup is complete.
Step 5: Run the /init Command
With the correct project open, type:
/init
Claude Code can inspect the repository and create a CLAUDE.md file containing useful project context, such as development commands, architecture notes, and coding conventions.
This file acts as a set of instructions for future Claude Code sessions. The exact content depends on the repository, so open the generated file and review it rather than treating it as automatically correct.
Step 6: Give Claude a Focused First Task
Start with a request that lets you verify whether Claude understands the project.
For example:
Read this project and explain its folder structure, main entry point, key dependencies, and how I should run the tests. Do not edit any files yet.
Once the explanation matches the actual code, try a small change:
Find the function that handles [specific behaviour]. Explain the current logic, suggest the smallest safe fix, and wait for my approval before changing files.
Specific prompts make the result easier to evaluate than asking an AI agent to build an entire application in one step.
What Does CLAUDE.md Do?
CLAUDE.md is a project-level instruction file. It can record commands, coding conventions, architecture details, and constraints that Claude should consider while working in that repository.
For example, it may explain which package manager the project uses, where the tests are located, or which files must not be changed.
Keep the file accurate and concise. Remove guesses or outdated instructions generated during initialisation.
Common Problems and Fixes
The extension will not install: Check the extension's stated requirements and your Antigravity version. If compatibility is unclear, use the supported VS Code route.
The extension installs but does not open: Restart the editor, reload the window, and check for extension errors. If it still fails, treat it as a possible host-compatibility issue rather than repeatedly reinstalling it.
/init is not recognised: Confirm that you are using the Claude Code panel, not a different AI chat panel or terminal. Update the extension and check Anthropic's current documentation.
Claude misunderstands the project: Review CLAUDE.md, correct inaccurate instructions, and ask Claude to inspect the relevant files before proposing changes.
You are unsure about usage costs: Check the account and billing option shown during sign-in. Extension installation and model usage are separate questions.
Security Tips Before Letting an AI Agent Edit Code
Use Git or another backup before allowing file changes.
Read proposed diffs carefully and run the project's tests.
Do not paste API keys, passwords, private certificates, or production secrets into prompts.
Review terminal commands before approving them, especially commands that delete files, change permissions, install packages, or access production systems.
For work repositories, follow your organisation's rules on source code and third-party AI tools.
Frequently Asked Questions
Can I use Claude Code inside Google Antigravity?
The video demonstrates an attempt to install the Claude Code for VS Code extension in Antigravity. However, Anthropic's marketplace listing specifies VS Code and does not explicitly guarantee Antigravity compatibility. Results may vary by version, so use VS Code for the documented extension path.
What does /init do in Claude Code?
It initialises project guidance by examining the codebase and generating a CLAUDE.md file. Review the file because generated project notes can be incomplete or inaccurate.
Is Claude Code free after I install the extension?
Not necessarily. The extension may require an eligible Claude subscription or usage-based access. Check the current Claude Code product page and the sign-in and billing options offered to your account.
What if Claude Code does not work in Antigravity?
Restart or reload the editor and check for extension errors once. If it remains incompatible, switch to the supported VS Code path or install Claude Code using Anthropic's official setup instructions.
Final Thoughts
The workflow in the video is simple: open a project, install the official Claude Code extension if the editor allows it, run /init, review CLAUDE.md, and begin with a small, read-only task.
The useful part is not just getting an AI coding agent into the editor. It is giving the agent accurate project context and checking its work. Treat Antigravity compatibility as something to verify, and keep control of every code change.
Official references
You finished this guide.
Back to homepage →
Comments
Post a Comment