{
  meta: { lastTouchedAt: "$TS" },
  commands: { native: "auto", nativeSkills: "auto", text: true, restart: true },
  models: {
    mode: "merge",
    providers: {
      cliproxyapi: {
        baseUrl: "http://127.0.0.1:11434/v1",
        api: "openai-responses",
        authHeader: true,
        models: [
          { id: "gpt-5", name: "OpenAI GPT-5", api: "openai-responses", reasoning: true, input: ["text","image"] },
          { id: "gpt-4.1", name: "OpenAI GPT-4.1", api: "openai-responses", input: ["text","image"] },
          { id: "grok-2", name: "xAI Grok 2", api: "openai-responses", input: ["text","image"] }
        ]
      },
      anthropic: {
        baseUrl: "https://api.anthropic.com",
        api: "anthropic-messages",
        models: [
          { id: "claude-3-opus-20240229", name: "Claude 3 Opus", api: "anthropic-messages", reasoning: true, input: ["text","image"] },
          { id: "claude-3-5-sonnet-20241022", name: "Claude 3.5 Sonnet", api: "anthropic-messages", input: ["text","image"] }
        ]
      },
      antigravity: {
        baseUrl: "https://antigravity.google", // placeholder; resolved by plugin auth
        api: "anthropic-messages",
        headers: { "x-ag-auth": "profile:ag1" },
        models: [
          { id: "claude-3-opus", name: "Claude Opus via Antigravity", api: "anthropic-messages", reasoning: true, input: ["text","image"] },
          { id: "claude-3-5-sonnet", name: "Claude Sonnet via Antigravity", api: "anthropic-messages", input: ["text","image"] }
        ]
      },
      gemini: {
        baseUrl: "https://generativelanguage.googleapis.com",
        api: "google-generative-ai",
        models: [
          { id: "gemini-3.0-pro", name: "Gemini 3 Pro", api: "google-generative-ai", input: ["text","image"] },
          { id: "gemini-3.0-flash", name: "Gemini 3 Flash", api: "google-generative-ai", input: ["text","image"] }
        ]
      }
    }
  },
  agents: {
    defaults: {
      model: {
        primary: "cliproxyapi/gpt-5",
        fallbacks: [
          "antigravity/claude-3-opus",
          "antigravity/claude-3-5-sonnet",
          "cliproxyapi/gpt-4.1",
          "cliproxyapi/grok-2"
        ]
      },
      imageModel: {
        primary: "cliproxyapi/gpt-5"
      },
      models: {
        "cliproxyapi/gpt-5": { alias: "GPT-5" },
        "antigravity/claude-3-opus": { alias: "Opus" },
        "antigravity/claude-3-5-sonnet": { alias: "Sonnet" },
        "cliproxyapi/gpt-4.1": { alias: "GPT-4.1" },
        "cliproxyapi/grok-2": { alias: "Grok" },
        "gemini/gemini-3.0-pro": { alias: "Frontend (Gemini Pro)" },
        "gemini/gemini-3.0-flash": { alias: "Frontend (Gemini Flash)" }
      },
      userTimezone: "Asia/Taipei",
      contextTokens: 64000
    },
    list: [
      {
        id: "main",
        default: true,
        identity: { name: "小雲", emoji: "☁️", avatar: "avatars/xiaoyun.png" },
        model: {
          primary: "cliproxyapi/gpt-5",
          fallbacks: [
            "antigravity/claude-3-opus",
            "antigravity/claude-3-5-sonnet",
            "cliproxyapi/gpt-4.1",
            "cliproxyapi/grok-2"
          ]
        },
        tools: {
          profile: "full",
          deny: [],
          byProvider: {}
        }
      },
      {
        id: "project-manager",
        name: "Project Manager",
        model: { primary: "antigravity/claude-3-opus", fallbacks: ["antigravity/claude-3-5-sonnet", "cliproxyapi/gpt-5"] },
        tools: { profile: "full", deny: [] }
      },
      {
        id: "code-reviewer",
        name: "Code Reviewer",
        model: { primary: "antigravity/claude-3-opus", fallbacks: ["cliproxyapi/gpt-5", "antigravity/claude-3-5-sonnet"] },
        tools: { profile: "coding", alsoAllow: ["read","edit","write","exec","process","web_fetch"] }
      },
      {
        id: "frontend-designer",
        name: "Frontend Designer",
        model: { primary: "gemini/gemini-3.0-pro", fallbacks: ["gemini/gemini-3.0-flash"] },
        tools: { profile: "full" }
      }
    ]
  },
  auth: {
    profiles: {
      ag1: { provider: "anthropic", mode: "api_key" },
      ag2: { provider: "cliproxyapi", mode: "api_key" },
      ag3: { provider: "cliproxyapi", mode: "api_key" },
      user: { provider: "cliproxyapi", mode: "api_key" }
    },
    order: {
      anthropic: ["ag1"],
      cliproxyapi: ["user","ag2","ag3"],
      gemini: ["user"]
    }
  },
  tools: {
    profile: "full",
    byProvider: {},
    web: { search: { enabled: false }, fetch: { enabled: true, maxChars: 240000 } }
  },
  ui: { assistant: { name: "小雲", avatar: "avatars/xiaoyun.png" } },
  gateway: { port: 18789, bind: "loopback", reload: { mode: "hybrid", debounceMs: 300 }, controlUi: { enabled: true, basePath: "/openclaw" } },
  channels: { webchat: { enabled: true } },
  agentsNote: "Configured per 2026-02-16: GPT-5 primary via cliproxyapi; fallbacks opus -> sonnet -> gpt-4.1 -> grok; frontend -> gemini 3 Pro; fallback -> gemini 3 Flash"
}
