Google Antigravity provider: Gemini and Claude through Google Cloud Code Assist, signed in with the Antigravity Google OAuth client.
Vis owns sign-in and quota reports. Svar owns the Cloud Code wire, the managed project, and the model list.
Credentials live in ~/.vis/antigravity-auth.json. Google does not rotate
the refresh token, so a refresh keeps the stored one.
Google Antigravity provider: Gemini and Claude through Google Cloud Code Assist, signed in with the Antigravity Google OAuth client. Vis owns sign-in and quota reports. Svar owns the Cloud Code wire, the managed project, and the model list. Credentials live in `~/.vis/antigravity-auth.json`. Google does not rotate the refresh token, so a refresh keeps the stored one.
(auth-complete flow input)Headless leg 2: exchange the callback URL or code and persist the credentials.
Headless leg 2: exchange the callback URL or code and persist the credentials.
(auth-start)Headless leg 1. :flow holds the PKCE verifier and state: a daemon-side
secret that never goes on the wire.
Headless leg 1. `:flow` holds the PKCE verifier and state: a daemon-side secret that never goes on the wire.
(create-authorization-flow)PKCE verifier, CSRF state and the Google authorization URL.
PKCE verifier, CSRF state and the Google authorization URL.
(detect-credentials)Persisted Antigravity credentials as a status map, or nil. No network call.
Persisted Antigravity credentials as a status map, or nil. No network call.
(force-refresh-token!)(force-refresh-token! rejected-token)Refresh after the server rejected rejected-token; returns the token map.
Refresh after the server rejected `rejected-token`; returns the token map.
(get-antigravity-token!)A usable access token as {:token :api-url}; refreshes when it expires soon.
A usable access token as `{:token :api-url}`; refreshes when it expires soon.
(login! printer-fn)(login! printer-fn
{:keys [open-browser-fn manual-code-fn force?]
:or {open-browser-fn open-browser! manual-code-fn prompt-for-code!}})Terminal sign-in: open the Google page, then read the pasted redirect URL.
Options: :open-browser-fn, :manual-code-fn, :force?.
Terminal sign-in: open the Google page, then read the pasted redirect URL. Options: `:open-browser-fn`, `:manual-code-fn`, `:force?`.
(parse-authorization-input input)Parse a pasted callback URL, query string or bare code into {:code :state}.
Parse a pasted callback URL, query string or bare code into `{:code :state}`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |