Model-level authProfileId override not respected when switching models via /model command

Resolved 💬 1 comment Opened Jan 31, 2026 by jaceyang2026-droid Closed Jan 31, 2026

Description

When switching models using the /model command, the per-model authProfileId configuration is not being respected. Instead, the first profile in auth.order is always used.

Configuration

{
  "auth": {
    "order": {
      "google-antigravity": [
        "google-antigravity:jaceyang2026@gmail.com",
        "google-antigravity:dharmendraalmarzooq496@gmail.com",
        "google-antigravity:manual"
      ]
    }
  },
  "agents": {
    "defaults": {
      "models": {
        "google-antigravity/gemini-3-flash": {
          "alias": "flash",
          "params": {
            "authProfileId": "google-antigravity:dharmendraalmarzooq496@gmail.com"
          }
        },
        "google-antigravity/claude-opus-4-5-thinking": {
          "alias": "opus",
          "params": {
            "authProfileId": "google-antigravity:dharmendraalmarzooq496@gmail.com"
          }
        }
      }
    }
  }
}

Expected Behavior

When using /model flash or /model opus, the model should use dharmendraalmarzooq496@gmail.com as specified in the model's params.authProfileId.

Actual Behavior

The model uses jaceyang2026@gmail.com (the first profile in auth.order) instead of the explicitly configured authProfileId.

Verified via /status:

🧠 Model: google-antigravity/claude-opus-4-5-thinking · 🔑 oauth (google-antigravity:jaceyang2026@gmail.com)

Environment

  • OpenClaw: 2026.1.30 (76b5208)
  • OS: macOS (Darwin 25.1.0, arm64)
  • Node: v25.5.0

Steps to Reproduce

  1. Configure multiple auth profiles for google-antigravity
  2. Set auth.order with profile A first
  3. Configure a model with params.authProfileId pointing to profile B
  4. Use /model <alias> to switch to that model
  5. Check /status - it shows profile A instead of profile B

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗