Skip to content

agents/model-providers: Ollama discovery logs at INFO level even when not configured #26354

@Gamedesigner

Description

@Gamedesigner

Summary

OpenClaw logs [agents/model-providers] No Ollama models found on local instance at INFO level on every agent invocation, even when Ollama is not configured and not intended to be used.

Environment

  • OpenClaw: 2026.2.24
  • Platform: WSL2 / Ubuntu on Linux
  • Ollama: binary removed, not configured in config

Steps to Reproduce

  1. Run OpenClaw with no Ollama configuration
  2. Send any message to the agent
  3. Check gateway logs

Expected Behavior

Either:

  • No log output when Ollama is not configured/unavailable
  • Log at debug level (not info) so it doesn't pollute production logs

Actual Behavior

Every agent invocation logs:

[agents/model-providers] No Ollama models found on local instance

Notes

  • This occurs unconditionally on Linux/WSL even with no models.providers.ollama config entry
  • macOS does not appear to exhibit this behavior (same OpenClaw version)
  • The ollama-stub.service (included with OpenClaw) suppresses errors but the INFO log persists
  • Suggested fix: drop to debug level, or skip the check entirely when no Ollama config/env is present

Metadata

Metadata

Assignees

No one assigned

    Labels

    dedupe:parentPrimary canonical item in dedupe cluster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions