Skip to content

Compaction fails for providers with authHeader: false #3298

@OSA-0XA40

Description

@OSA-0XA40

Bug Description

Compaction fails with "No API key found for provider" even when the provider has authHeader: false configured.

Steps to Reproduce

  1. Configure Ollama as primary model with authHeader: false
  2. Run /compact command
  3. Error: No API key found for provider 'ollama'

Expected Behavior

Compaction should work without requiring auth for providers that have authHeader: false set.

Workaround

Add a dummy auth profile to auth-profiles.json:

"ollama:local": {
  "type": "api-key",
  "provider": "ollama",
  "key": "not-needed-local"
}

Environment

  • Clawdbot version: 2026.1.24-3
  • OS: Windows 10
  • Provider: Ollama (local)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions