[GH-ISSUE #32] Can't find the token. #28

Closed
opened 2026-02-27 15:38:00 +03:00 by kerem · 1 comment
Owner

Originally created by @codelonesomest on GitHub (Feb 20, 2026).
Original GitHub issue: https://github.com/NikkeTryHard/zerogravity/issues/32

What happened?

There is no "ya29.xxx" related token via the network tab in antigravity editor. (Using docker)

Antigravity Version: 1.18.3
VSCode OSS Version: 1.107.0
Commit: c9b91c281ca4919466bd32a6ea2fcdab11102259
Date: 2026-02-19T02:34:56.403Z
Electron: 39.2.3
Chromium: 142.0.7444.175
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0
Language Server CL: 872125356

How to reproduce

No response

Diagnostic Report

-

Additional Context

  [!] no oauth token
      export ZEROGRAVITY_TOKEN=ya29.xxx
      curl -X POST http://127.0.0.1:8741/v1/token -d '{"token":"ya29.xxx"}'
      echo 'ya29.xxx' > ~/.config/zerogravity/token

2026-02-20T03:26:46.916793Z  INFO zerogravity: Listening on http://0.0.0.0:8741
2026-02-20T03:26:46.956040Z  WARN zerogravity::quota: GetUserStatus returned 500: {"code":"unknown","message":"error getting token source: state syncing error: key not found"}
2026-02-20T03:27:47.009352Z  WARN zerogravity::quota: GetUserStatus returned 500: {"code":"unknown","message":"error getting token source: state syncing error: key not found"}
2026-02-20T03:28:47.007604Z  WARN zerogravity::quota: GetUserStatus returned 500: {"code":"unknown","message":"error getting token source: state syncing error: key not found"}
2026-02-20T03:29:47.021508Z  WARN zerogravity::quota: GetUserStatus returned 500: {"code":"unknown","message":"error getting token source: state syncing error: key not found"}
2026-02-20T03:30:47.004353Z  WARN zerogravity::quota: GetUserStatus returned 500: {"code":"unknown","message":"error getting token source: state syncing error: key not found"}

No response

Originally created by @codelonesomest on GitHub (Feb 20, 2026). Original GitHub issue: https://github.com/NikkeTryHard/zerogravity/issues/32 ### What happened? There is no "ya29.xxx" related token via the network tab in antigravity editor. (Using docker) Antigravity Version: 1.18.3 VSCode OSS Version: 1.107.0 Commit: c9b91c281ca4919466bd32a6ea2fcdab11102259 Date: 2026-02-19T02:34:56.403Z Electron: 39.2.3 Chromium: 142.0.7444.175 Node.js: 22.21.1 V8: 14.2.231.21-electron.0 OS: Darwin arm64 25.2.0 Language Server CL: 872125356 ### How to reproduce _No response_ ### Diagnostic Report ```text - ``` ### Additional Context ```text [!] no oauth token export ZEROGRAVITY_TOKEN=ya29.xxx curl -X POST http://127.0.0.1:8741/v1/token -d '{"token":"ya29.xxx"}' echo 'ya29.xxx' > ~/.config/zerogravity/token 2026-02-20T03:26:46.916793Z INFO zerogravity: Listening on http://0.0.0.0:8741 2026-02-20T03:26:46.956040Z WARN zerogravity::quota: GetUserStatus returned 500: {"code":"unknown","message":"error getting token source: state syncing error: key not found"} 2026-02-20T03:27:47.009352Z WARN zerogravity::quota: GetUserStatus returned 500: {"code":"unknown","message":"error getting token source: state syncing error: key not found"} 2026-02-20T03:28:47.007604Z WARN zerogravity::quota: GetUserStatus returned 500: {"code":"unknown","message":"error getting token source: state syncing error: key not found"} 2026-02-20T03:29:47.021508Z WARN zerogravity::quota: GetUserStatus returned 500: {"code":"unknown","message":"error getting token source: state syncing error: key not found"} 2026-02-20T03:30:47.004353Z WARN zerogravity::quota: GetUserStatus returned 500: {"code":"unknown","message":"error getting token source: state syncing error: key not found"} ``` _No response_
kerem 2026-02-27 15:38:00 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@NikkeTryHard commented on GitHub (Feb 20, 2026):

The README instructions were outdated -- the token is not in an Authorization: Bearer header to generativelanguage.googleapis.com. It's actually in the JSON body of requests to the local Language Server at 127.0.0.1.

Easiest way to get your token:

  1. Open Antigravity → Help > Toggle Developer Tools
  2. Go to the Network tab
  3. Send any prompt in the chat
  4. Find a request to 127.0.0.1 (look for SendUserCascadeMessage or GetCommandModelConfigs)
  5. Click the request → Payload tab
  6. Look for "apiKey":"ya29.xxx..." in the JSON body
  7. Copy the full token starting with ya29.

Or just right-click any of those requests → Copy as cURL, paste it into any LLM, and ask it to extract the token.

The README has been updated in v1.1.9 to clarify this. If you're running Docker on a Mac where Antigravity is also installed, the easiest approach is to mount the config dir for automatic token refresh -- no manual token needed:

docker run -d --name zerogravity \
  -p 8741:8741 -p 8742:8742 \
  -v "$HOME/Library/Application Support/Antigravity:/root/.config/Antigravity:ro" \
  ghcr.io/nikketryhard/zerogravity:latest

This gives the proxy access to state.vscdb which contains a long-lived refresh token -- auto-refresh works indefinitely.

<!-- gh-comment-id:3931514458 --> @NikkeTryHard commented on GitHub (Feb 20, 2026): The README instructions were outdated -- the token is not in an `Authorization: Bearer` header to `generativelanguage.googleapis.com`. It's actually in the JSON body of requests to the local Language Server at `127.0.0.1`. **Easiest way to get your token:** 1. Open Antigravity → **Help** > **Toggle Developer Tools** 2. Go to the **Network** tab 3. Send any prompt in the chat 4. Find a request to `127.0.0.1` (look for `SendUserCascadeMessage` or `GetCommandModelConfigs`) 5. Click the request → **Payload** tab 6. Look for `"apiKey":"ya29.xxx..."` in the JSON body 7. Copy the full token starting with `ya29.` **Or just right-click any of those requests → Copy as cURL**, paste it into any LLM, and ask it to extract the token. The README has been updated in v1.1.9 to clarify this. If you're running Docker on a Mac where Antigravity is also installed, the easiest approach is to mount the config dir for automatic token refresh -- no manual token needed: ```bash docker run -d --name zerogravity \ -p 8741:8741 -p 8742:8742 \ -v "$HOME/Library/Application Support/Antigravity:/root/.config/Antigravity:ro" \ ghcr.io/nikketryhard/zerogravity:latest ``` This gives the proxy access to `state.vscdb` which contains a long-lived refresh token -- auto-refresh works indefinitely.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zerogravity#28
No description provided.