# Antigravity

[Antigravity](https://antigravity.google/) is Google's desktop IDE.

Follow this guide to use Antigravity to access your Coder workspaces.

If your team uses Antigravity regularly, ask your Coder administrator to add Antigravity as a workspace application in your template.
You can also use the [Antigravity module](https://registry.coder.com/modules/coder/antigravity) to easily add Antigravity to your Coder templates.

## Install Antigravity [#install-antigravity]

Antigravity connects to your Coder workspaces using the Coder extension:

1. [Install Antigravity](https://antigravity.google/) on your local machine.

2. Open Antigravity and sign in with your Google account.

## Install the Coder extension [#install-the-coder-extension]

1. You can install the Coder extension through the Marketplace built in to Antigravity or manually.

   <Tabs items="[&#x22;Extension Marketplace&#x22;, &#x22;Manually&#x22;]" groupId="coder-docs-tab:extension-marketplace-manually" persist="true">
     <Tab value="Extension Marketplace">
       Search for Coder from the Extensions Pane and select **Install**.
     </Tab>

     <Tab value="Manually">
       1. Download the [latest vscode-coder extension](https://github.com/coder/vscode-coder/releases/latest) `.vsix` file.

       2. Drag the `.vsix` file into the extensions pane of Antigravity.

          Alternatively:

          1. Open the Command Palette
             (<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> or <kbd>Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>) and search for `vsix`.

          2. Select **Extensions: Install from VSIX** and select the vscode-coder extension you downloaded.
     </Tab>
   </Tabs>

## Open a workspace in Antigravity [#open-a-workspace-in-antigravity]

1. From the Antigravity Command Palette (<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> or <kbd>Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>),
   enter `coder` and select **Coder: Login**.

2. Follow the prompts to login and copy your session token.

   Paste the session token in the **Coder API Key** dialogue in Antigravity.

3. Antigravity prompts you to open a workspace, or you can use the Command Palette to run **Coder: Open Workspace**.

## Template configuration [#template-configuration]

Your Coder administrator can add Antigravity as a one-click workspace app using
the [Antigravity module](https://registry.coder.com/modules/coder/antigravity)
from the Coder registry:

```tf
module "antigravity" {
  count    = data.coder_workspace.me.start_count
  source   = "registry.coder.com/coder/antigravity/coder"
  version  = "1.0.0"
  agent_id = coder_agent.example.id
  folder   = "/home/coder/project"
}
```
