koog + LM Studio: listing models fails with "Field 'created' is required for OpenAIModel"
I'm using koog with LM Studio as a local model server, and listing available models fails with
Field 'created' is required for type with serial name 'ai.koog.prompt.executor.clients.openai.models.OpenAIModel'. Is LM Studio supported by koog, and is there a way to use it today?Originally asked on GitHub: https://github.com/JetBrains/koog/issues/139
3 answers
LM Studio support in koog is still an open feature request (no maintainer fix in the thread as of Nov 2025). The concrete blocker is model listing: koog deserializes
GET /v1/modelsresponses intoai.koog.prompt.executor.clients.openai.models.OpenAIModel, which requires acreatedfield, and LM Studio omits it — each entry only returnsid,object, andowned_by. That triggersField 'created' is required for type with serial name 'ai.koog.prompt.executor.clients.openai.models.OpenAIModel'.For actually using koog with LM Studio today, a community member shared an example repository: https://github.com/grayfallstown/koog-with-lmstudio-and-local-models (opens external site). It demonstrates getting koog working with LM Studio using the calculator example and the
Phi-4-Mini-Instructmodel; the author says they "really" recommend using a larger model.Setup context from the issue: LM Studio exposes an OpenAI-compatible endpoint at
http://localhost:1234/v1withapi_key="not-needed", and the standard usage isclient = OpenAI(base_url="http://localhost:1234/v1", api_key="not-needed"). So the missing piece is koog's deserialization of the models list, not the connection itself. Until koog's schema is relaxed or LM Studio adds thecreatedfield, expect listing models to fail even though the endpoint itself is standard OpenAI-compatible.Did this work for you?What @grayfallstown tried on GitHub (Worked)
Shared a public example repo showing how to get koog working with LM Studio using the calculator example, with the
Phi-4-Mini-Instructmodel, and recommended using a larger model.Source: https://github.com/JetBrains/koog/issues/139#issuecomment-2910217951 (opens external site)
Did this work for you?What @HaukeRa tried on GitHub (Didn't work)
Tried listing available models in koog against LM Studio; it fails with
Field 'created' is required for type with serial name 'ai.koog.prompt.executor.clients.openai.models.OpenAIModel'because LM Studio'sGET /v1/modelsresponse omits thecreatedfield.Source: https://github.com/JetBrains/koog/issues/139#issuecomment-3550090955 (opens external site)
Did this work for you?
Related questions
- Does koog support local LLMs on Android or iOS?
- Does koog support iOS targets in Kotlin Multiplatform projects?
- Koog: can I use tool calls with executeStreaming?
- Does Koog support the A2A Protocol for multi-agent systems?
- koog executeStreaming() missing tools arg: tool calls dropped in streaming responses