Hey community! I've been struggling with an imageModel issue and just filed GitHub Issue #69620.
The problem:
My primary model is ollama/glm-5:cloud — no vision capability. So I configured agents.defaults.imageModel.primary: anthropic/claude-haiku-4-5. The Anthropic API key is correctly set up via SecretRef (env:ANTHROPIC_API_KEY) in auth-profiles.json.
openclaw models status shows:
anthropic:default=ref(env:ANTHROPIC_API_KEY)
Direct curl with the same key works (HTTP 200 )
But when sending an image:
401 {"type":"authentication_error","message":"invalid x-api-key"}
Setup:
OpenClaw 2026.4.15
Ubuntu 24.04, npm global
Auth via API key (sk-ant-api03-...), no OAuth/oat01 token
models auth order explicitly set to anthropic:default
profile field in imageModel config rejected by schema
Looks like the imageModel doesn't correctly inherit the auth profile from the anthropic provider config. Has anyone seen this or found a workaround?
GitHub Issue: https://github.com/openclaw/openclaw/issues/69620
Tnx
Madelaine