Terminal GuideTerminal Guide
antigravity icon

Antigravity

Text Editors
macOSLinuxWindows
TypeScript

Google's agent-first IDE with autonomous AI agents for development.

Official Website

Features

Agent-First DesignGemini IntegrationAutonomous AgentsVS Code FoundationGoogle Cloud Integration

Why Use Antigravity?

Antigravity (formerly Project IDX) is Google's agent-first IDE that combines the power of Gemini AI with a full cloud development environment. It enables autonomous AI agents to assist with complex development tasks.

Agent-First Design

Built from the ground up for AI agents. Agents can autonomously navigate, edit, and execute code.

Gemini Integration

Powered by Google's Gemini models for code generation, explanation, and debugging.

Cloud-Based Environment

Full development environment in the cloud. No local setup required, accessible from any browser.

VS Code Foundation

Built on VS Code. Familiar interface with support for extensions and themes.

Getting Started

Antigravity is a cloud-based IDE accessible through your browser. No installation required.

Getting Started
# Access Antigravity
# 1. Visit https://idx.google.com/
# 2. Sign in with your Google account
# 3. Create a new workspace or import from GitHub

# Supported templates:
- Next.js
- React
- Angular
- Vue.js
- Flutter
- Python
- Go
- And many more...

# Import from GitHub:
# 1. Click "Import repo"
# 2. Authorize GitHub access
# 3. Select repository to import

Key Features

Gemini AI Assistant

Access Gemini directly in the IDE for code assistance, explanations, and generation.

Gemini AI Assistant
# Gemini capabilities:

# Code Generation
"Create a REST API endpoint for user authentication"
"Generate a React component with TypeScript props"

# Code Explanation
"Explain what this function does"
"Why might this code cause a memory leak?"

# Debugging
"Why is this test failing?"
"Find the bug in this code"

# Refactoring
"Refactor this to use modern JavaScript syntax"
"Convert this to TypeScript with proper types"

Integrated Preview

Live preview of web applications directly in the IDE. Changes reflect instantly.

Integrated Preview
# Preview features:

# Web Preview
- Automatic hot reload
- Mobile device simulation
- Multiple viewport sizes

# API Testing
- Built-in REST client
- Request history
- Environment variables

# Database Tools
- Visual database browser
- Query execution
- Schema management

Google Cloud Integration

Seamless integration with Google Cloud services for deployment and backend infrastructure.

Google Cloud Integration
# Google Cloud features:

# Cloud Run Deployment
- One-click deployment to Cloud Run
- Automatic containerization
- Custom domain support

# Firebase Integration
- Firebase Hosting
- Firestore database
- Authentication

# Other Services
- Cloud Functions
- Cloud Storage
- BigQuery
- Vertex AI

Agent Mode

Antigravity's agent mode allows AI to autonomously complete complex multi-step tasks.

Agent Mode Examples
# Agent Mode capabilities:

# Autonomous Development
"Build a complete authentication system with email verification"
"Create a dashboard with charts and data visualization"
"Set up CI/CD pipeline with testing"

# Code Migration
"Migrate this JavaScript project to TypeScript"
"Convert class components to functional components with hooks"
"Update deprecated API calls to new versions"

# Documentation
"Generate API documentation for this project"
"Create a README with setup instructions"
"Add JSDoc comments to all public functions"

# Testing
"Write comprehensive unit tests for this module"
"Set up integration tests with mock data"
"Create end-to-end tests for the authentication flow"

Keyboard Shortcuts

Antigravity uses VS Code keybindings. Here are common shortcuts for AI features.

Key (macOS)Key (Windows/Linux)Description
Cmd+Shift+PCtrl+Shift+PCommand Palette
Cmd+ICtrl+IOpen Gemini chat
Cmd+KCtrl+KInline AI edit
TabTabAccept AI suggestion
Cmd+PCtrl+PQuick file open
Cmd+Shift+FCtrl+Shift+FSearch in project
Cmd+`Ctrl+`Toggle terminal

Workspace Configuration

Configure your workspace with a .idx/dev.nix file for reproducible environments.

.idx/dev.nix
# .idx/dev.nix - Workspace configuration

{ pkgs, ... }: {
  # Packages to install
  packages = [
    pkgs.nodejs_20
    pkgs.pnpm
    pkgs.git
    pkgs.ripgrep
  ];

  # Environment variables
  env = {
    NODE_ENV = "development";
  };

  # IDE extensions
  idx = {
    extensions = [
      "esbenp.prettier-vscode"
      "dbaeumer.vscode-eslint"
      "bradlc.vscode-tailwindcss"
    ];

    # Workspace settings
    workspace = {
      onCreate = {
        npm-install = "pnpm install";
      };
      onStart = {
        dev-server = "pnpm dev";
      };
    };

    # Preview configuration
    previews = {
      enable = true;
      previews = {
        web = {
          command = ["pnpm" "dev" "--port" "$PORT"];
          manager = "web";
        };
      };
    };
  };
}

Tips

  • Use the .idx/dev.nix file to ensure consistent environments across team members.
  • Agent mode works best when you provide clear, specific instructions for multi-step tasks.
  • Use integrated preview for instant feedback while developing web applications.
  • Connect your GitHub account to easily import and sync repositories.
  • Take advantage of one-click deployment to Cloud Run for quick prototyping and demos.
  • Use device simulation in preview to test responsive designs across different screen sizes.
  • Workspaces are cloud-based, so you can access your projects from any device with a browser.

Explore More