Skip to content

docs(antigravity): explain API-key authentication in WSL - #21780

Closed
nwparker wants to merge 2 commits into
nwparker/agy-chat-permissionfrom
nwparker/agy-wsl-auth-setup
Closed

nwparker wants to merge 2 commits into
nwparker/agy-chat-permissionfrom
nwparker/agy-wsl-auth-setup

Conversation

@nwparker

@nwparker nwparker commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​257 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​257
Prod 17 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​670 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​666

ELI5

A Windows API key can reach WSL and agy can still ask for Google sign-in. The setup guide now explains the two independent steps: forward the key into the Linux process, and explicitly select agy's API-key provider.

What Changed

Adds WSL instructions that preserve existing WSLENV entries, refresh this PowerShell process's system key, and merge modelProvider: "gemini" into the guest's existing agy settings. Explains that already-running processes keep their old environment, that _modelProvider is not the same setting, and that this mode uses the API key rather than a Google subscription account. Includes a presence-only check and a harmless real generation check.

Why

On a fresh Ubuntu-24.04 guest, the Windows system key was present but agy still requested Google sign-in. With the actual provider setting, the same key returned the exact requested marker successfully. Reinstalling Orca or its hooks would not fix that authentication choice. The guide leaves Google sign-in available and does not change users' authentication automatically.

Linked Issue

Refs #17345 and #21541. Follow-up to #21653 and #21656; stacked on #21776.

Visual Proof

Documentation-only change; the verification below shows actual agy running in Orca’s WSL terminal with API-key authentication. Two crops from the same screen omit reasoning text.

Actual WSL generation and ready composer

Testing

  • Fresh official agy 1.2.7 on Ubuntu-24.04: Machine key forwarded, default profile requests sign-in; modelProvider: "gemini" returns exit 0, SUCCESS, one turn, and exact ORCA_WSL_API_KEY_OK response. Probe settings restored afterward; no key or OAuth URL published.
  • Orca-managed WSL PTY on stack head 646935991b6: first-run setup, workspace trust, tui-idle satisfied, and exact ORCA_WSL_TUI_OK reply.
  • Complete relay bundle built; actual WSL terminal visibly renders exact ORCA_WSL_RENDERED_OK. Renderer reload preserves the live session; typing through the rendered terminal afterward produces exact ORCA_WSL_AFTER_RELOAD_OK.
  • pnpm --dir docs/site build and git diff --check pass. No unit tests added for prose. Final documentation CI Build and test, repository guards and verify pass.

Review

Merge verdict: approve this documentation change. Google sign-in, WSL Chat/hooks, multiple accounts and overnight reconnect reliability are outside this verification. One initial harness terminal exited during tab adoption before the complete relay bundle and renderer refresh; that result is retained in the investigation record and is not claimed fixed by this PR. The final rendered/reload/input test passes. Instructions target the guest and preserve other settings and environment forwarding entries.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer source copied.

Checklist

  • Explained the user-facing problem, mechanism and choice of approach.
  • Real authentication checks and documentation build pass.
  • No credentials, private transcripts or screenshots committed.

@nwparker

Copy link
Copy Markdown
Contributor Author

Verification update (2026-09-20):

  • Checked the single documentation diff with git diff --check: passed.
  • pnpm --dir docs/site build: passed (MDX generation, TypeScript, and 121 static pages).
  • Installed agy 1.2.7 authenticated sentinel: AGY_AUTH_OK.
  • Latest PR checks are green: Build and test, repository guards, track-community-pr, and verify (run).
  • The PR's attached WSL/Orca proof covers API-key forwarding, explicit modelProvider: "gemini", rendered generation, reload, and post-reload input; no credentials or raw responses are published.

Merge verdict: Approve this documentation change in stack order. It directly documents the two independent fixes from the observed WSL failure: forwarding the environment into WSL and selecting agy's API-key provider. Google sign-in, WSL Chat/hooks, multiple accounts, and overnight reconnect behavior remain outside scope.

* feat(antigravity): read native macOS credentials safely

* feat(antigravity): support native account switching

* feat(antigravity): encrypt native account vault

* feat(antigravity): expose native accounts to desktop IPC

* feat(antigravity): show native accounts in settings

* feat(antigravity): show native quota in accounts

* fix(antigravity): add accounts localization entries

* fix(antigravity): localize accounts copy

* test(web): include antigravity accounts preload API
@nwparker

nwparker commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #39178, which re-lands the intent of this PR on current main (stale branch, not rebased).

@nwparker nwparker closed this Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant