Title: SSH Agent Forwarding broken — socket file never created
Post:
Hey everyone,
I’m running into an issue where SSH agent forwarding doesn’t work in Antigravity dev containers, even though the setting is enabled.
The short version: Antigravity sets SSH_AUTH_SOCK inside the container, but the actual socket file is never created. So ssh-add -l fails and I can’t use Git over SSH.
I’ve confirmed the exact same container works perfectly in VS Code with the Dev Containers extension — the socket gets created and forwarded to the Windows host’s 1Password SSH agent without any issues.
What I see in Antigravity:
-
Settings show “SSH Agent Forwarding: true” and the container log confirms it
-
echo $SSH_AUTH_SOCKreturns/home/node/.antigravity-server/.<hash>-ssh-auth.sock -
But
ls -la $SSH_AUTH_SOCK→ “No such file or directory” -
ssh-add -l→ “Error connecting to agent: No such file or directory” -
ss -lx | grep sshreturns nothing — no SSH socket exists anywhere in the container -
The Antigravity server log shows
ssh-add -l exit code 2
What I see in VS Code (working):
-
echo $SSH_AUTH_SOCKreturns/tmp/vscode-ssh-auth-<uuid>.sock -
The socket file exists and is forwarded to
\\.\pipe\openssh-ssh-agent -
Container log shows:
ssh-agent: SSH_AUTH_SOCK in container (...) forwarded to local host (\\.\pipe\openssh-ssh-agent). -
ssh-add -llists my keys, Git over SSH works fine
To reproduce:
-
On Windows, have 1Password’s SSH agent enabled and working (
ssh-add -lworks in PowerShell) -
Disable the Windows OpenSSH Authentication Agent service so 1Password owns the pipe
-
Create a minimal devcontainer:
json
{
"name": "SSH Agent Test",
"image": "mcr.microsoft.com/devcontainers/typescript-node:22"
}
-
Open in Antigravity → container starts, but
ssh-add -lfails inside the terminal -
Open the same project in VS Code → works correctly
Environment:
-
Antigravity 1.18.4, Dev Containers CLI 0.72.0
-
VS Code 1.109.5, Dev Containers extension 0.442.0 (works)
-
Windows 11 (Build 26200)
-
Docker Desktop 4.61.0, Engine 29.2.1
-
1Password SSH agent on the host
Is anyone else hitting this? Any known workarounds? For now I’m using VS Code for Git operations on this project, but I’d love to stay in Antigravity.