Skip to content

omk doctor: false warnings when custom provider configured via config.toml #9

@aliatx2017

Description

@aliatx2017

Problem

omk doctor shows false-positive warnings when kimi CLI is configured with a custom provider (e.g. OpenAI-compatible endpoint) instead of native Moonshot auth:

  • "Kimi Session — kimi login may be required"
  • "Kimi Config — ~/.kimi/config.toml missing"
  • "Kimi Web Tools — web search tools not detected"

These are all Moonshot-native assumptions. A valid custom config.toml makes them incorrect.

Verified Working Config

kimi CLI v1.43.0 supports custom providers via ~/.kimi/config.toml:

default_model = "kimi26"
default_thinking = true

[providers.ollama]
type = "openai_legacy"
base_url = "https://ollama.com/v1"
api_key = "your-key"

[models.kimi26]
provider = "ollama"
model = "kimi-k2.6"
max_context_size = 256000
capabilities = ["thinking", "image_in"]

Test command:

kimi --config-file ~/.kimi/config.toml --print -p 'say hi' --thinking --model kimi26

Response received: 25,308 input / 35 output tokens. No kimi login required.

Suggested Fix

  1. omk doctor Kimi section: detect non-Moonshot providers in config, suppress login/web-tool warnings
  2. omk provider doctor: extend beyond DeepSeek to test custom endpoint reachability
  3. Docs: add "Custom OpenAI-compatible provider" section

Env

  • OMK v1.1.13
  • kimi-cli v1.43.0
  • Provider type: openai_legacy via config.toml
  • OS: macOS 26.5 / Apple Silicon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions