On this page

On this page

Providers

Google AI Ultra plan

OpenClaw lets you sign in with your Google Account to run Gemini models from Google on your Google AI Ultra plan at no extra cost, within Google's daily per-model limits. Your Google AI Ultra plan and a Gemini API key are two sign-in methods of the same google provider, so model refs stay google/<model>.

Before you start

You need:

  • An active Google AI Ultra subscription on your Google Account.
  • An OpenClaw release with the bundled google plugin enabled (it is enabled by default).

Sign in

Sign in from the Control UI, the CLI, or a private chat. You can connect more than one Google Account; each account is its own profile, labeled with its email address.

Control UI

  • Open the Google provider

    Go to Models → Add a provider → Google (Google AI Ultra plan or Gemini API key) → Sign in with Google (AI Ultra).

  • Approve access at Google

    Sign in with the Google Account that has your Google AI Ultra plan, keep Use your Google Account to access generative AI capabilities checked, and approve access.

  • Check the account

    The account appears under Models → Providers. Signing in does not change your default model; choose a plan model in the next section.

  • CLI

  • Start sign-in

    bash
    openclaw models auth login --provider google

    Sign in with Google is the default method for google. Add --set-default to also make google/gemini-4-hydrogen your default model. To add a Gemini API key instead, pass --method api-key.

  • Approve access in your browser

    OpenClaw opens Google's sign-in page, or prints the link on a remote host. Sign in with your Google AI Ultra account, keep Use your Google Account to access generative AI capabilities checked, and approve access.

  • Check the result

    The terminal prints Google AI Ultra plan connected (<email>). Without --set-default, it also prints the command that makes google/gemini-4-hydrogen your default.

  • Chat

  • Run /login in a private chat

    In a private chat with OpenClaw (not a group), send:

    text
    /login google
  • Approve access at Google

    Open the sign-in link. Sign in with your Google AI Ultra account, keep Use your Google Account to access generative AI capabilities checked, and approve access.

  • Send the address back if asked

    If the browser is not on the Gateway host and no paired computer finishes the sign-in, the browser shows a page that can't load. Copy that page's full address (it starts with http://127.0.0.1:8787) and send it in the same private chat. OpenClaw replies Got it. Finishing Google sign-in… and hides the address in the saved chat history.

  • If Google sets an end date for your sign-in, the account row in Models → Providers shows Sign in again by <date>. When a sign-in ends, OpenClaw asks you to sign in again: the row shows Sign-in expired with a Sign in again button.

    Signing in again with the same Google Account updates that account in place. Your models, auth order, and other settings stay as they are.

    A run that starts after the sign-in has ended, for example a cron job, fails with a sign-in error and then tries your configured model fallbacks. It never waits for a prompt.

    Choose a model

    The plan serves five model IDs:

    Model Model ref Also on a Gemini API key When to pick it
    Gemini 4 Hydrogen google/gemini-4-hydrogen Yes Default choice for coding, tool use, and balanced reasoning.
    Gemini 4 Neon google/gemini-4-neon No Harder reasoning, or when Hydrogen reaches its daily limit.
    Gemini 4 Carbon google/gemini-4-carbon No Fast everyday work, or another daily pool when other models are full.
    Gemini 3.5 Flash-Lite google/gemini-3.5-flash-lite Yes Short summaries, titles, and light tasks that save your Gemini 4 pools.
    Gemini Flash-Lite google/gemini-flash-lite-latest Yes Same role as Gemini 3.5 Flash-Lite; shares its daily pool.

    Each model has a 1,048,576-token context window and up to 65,536 output tokens.

    To make a plan model your default in openclaw.json:

    json5
    {  agents: {    defaults: {      model: { primary: "google/gemini-4-hydrogen" },    },  },}

    Thinking levels

    Models Levels
    Gemini 4 Hydrogen, Neon, Carbon off, low, medium (default), adaptive, high
    Gemini Flash-Lite models off, minimal, low, medium (default), adaptive, high
    • xhigh is not offered. A request for xhigh runs at high.
    • Gemini 4 models cannot turn thinking off: off runs at the lowest level and hides the thinking.
    • adaptive lets Google choose the thinking level for each request.

    Plan and Gemini API key together

    You can keep a plan sign-in and a Gemini API key under the google provider at the same time.

    • The plan comes first. When both are configured, OpenClaw uses your plan.

    • No surprise billing. Plan requests cost $0 in OpenClaw usage reports. A turn on your plan never moves to your Gemini API key, or back, after a daily limit, an ended sign-in, or another error. Configured model fallbacks still apply.

    • Opt in to the key as a backup. To let OpenClaw move from your plan to your key, set an explicit auth order:

      bash
      openclaw models auth order set --provider google <plan-profile> <key-profile>

    google/gemini-4-neon and google/gemini-4-carbon run only on the plan.

    Signing in from another computer

    Google sends the browser back to 127.0.0.1 on the computer that runs the browser. OpenClaw finishes sign-in in one of these ways:

    1. Same computer. The browser returns to OpenClaw and sign-in finishes. This also works for the Control UI open at a loopback address, such as http://127.0.0.1:18789 on the Gateway host or through ssh -L 18789:127.0.0.1:18789 user@gateway-host.

    2. Paired computer. If the computer with your browser is a connected OpenClaw node on macOS, Linux, or Windows, it receives the browser's return and sends only the one-time sign-in code to your Gateway. The sign-in stays on the Gateway host.

    3. SSH tunnel. When you sign in from a terminal over SSH, OpenClaw prints a tunnel command. On the computer with the browser, run it before you open the sign-in link:

      bash
      ssh -L 8787:127.0.0.1:8787 user@gateway-host
    4. Paste. Open the sign-in link in your normal browser. After you approve access, the browser opens a 127.0.0.1 page that can't load. That is expected. Copy the page's full address and paste it into the sign-in prompt, or send it in the private chat where you ran /login google. The prompt also accepts the address in quotes, or only its code=…&state=… part.

    Limits and errors

    Daily limits

    Each model has its own daily pool. gemini-flash-lite-latest shares the gemini-3.5-flash-lite pool. Pools reset at midnight Pacific time.

    When a model reaches its limit, OpenClaw shows:

    You've reached today's Google AI Ultra plan limit for <model>. It refreshes in <time>. Until then, switch to another Gemini model or use a Gemini API key.

    Switch to another plan model (its pool is separate), wait for the reset, or use a Gemini API key.

    No eligible plan

    If the Google Account has no eligible Google AI Ultra plan, for example because the subscription ended, OpenClaw shows:

    This Google account has no eligible Google AI Ultra plan. Upgrade to Google AI Ultra: <link to Google AI plans> Or use a Gemini API key.

    Check that you signed in with the right Google Account, upgrade at Google AI plans, or use a Gemini API key.

    Sign out or disconnect

    In Models → Providers, select the account:

    • Sign out on this device removes the sign-in from this Gateway only.
    • Disconnect Google Account also asks Google to remove OpenClaw's access. If Google cannot do that right now, the sign-in stays saved and OpenClaw shows the error so you can try again.

    You can also remove OpenClaw at Google Account Connections. OpenClaw notices the next time it renews access and asks you to sign in again.

    Privacy

    • Your sign-in is stored on your Gateway host, and your Gateway talks to Google directly.
    • When you send a sign-in address in chat, OpenClaw replaces it in the saved history with [Google sign-in address hidden · <id>].
    • Plan requests follow Google's Gemini API Unpaid Services Terms: Google may use prompts and responses to improve its products. For Paid Services data terms, use a Gemini API key.

    Troubleshooting

    You've reached today's Google AI Ultra plan limit

    Each model has its own daily pool that resets at midnight Pacific time. Switch to another plan model, for example from google/gemini-4-hydrogen to google/gemini-4-neon, or use a Gemini API key. google/gemini-flash-lite-latest and google/gemini-3.5-flash-lite share one pool.

    This Google account has no eligible Google AI Ultra plan

    The signed-in account has no active Google AI Ultra plan. Check that you picked the right account, upgrade at Google AI plans, or use a Gemini API key.

    Google sign-in finished without the Gemini permission

    The Use your Google Account to access generative AI capabilities checkbox was cleared at Google, or the permission was removed later. Sign in again and keep it checked.

    The browser opened a 127.0.0.1 page that can't load

    This is expected when the browser runs on another computer than the Gateway, with no SSH tunnel or paired computer. Copy the page's full address (it starts with http://127.0.0.1:8787) and paste it into the sign-in prompt or your private /login google chat.

    Send the address in a private chat with me, not in a group

    Send the address in a private chat with OpenClaw. If OpenClaw replies No Google sign-in is waiting for this address, the sign-in timed out after 10 minutes or was replaced. Run /login google again.

    This Google sign-in is not bound to this device

    The sign-in was copied from another computer, or its device key is missing. Sign in again on this Gateway host.

    Google could not revoke access right now

    The Gateway could not reach Google, so the sign-in stays saved. Select Disconnect Google Account again later, or remove OpenClaw at Google Account Connections and then select Sign out on this device.

    A Gemini model is missing on the plan

    A plan account lists only the five models above. Use a Gemini API key for other Gemini models, such as google/gemini-4-argon.

    Was this useful?