To fully utilize local models in Xcode 27 beta 6 you need three things: A MLX model from 🤗Hugging Face (https://huggingface.co/models?library=mlx&sort=trending) An inference server, I'm using oLMX (https://omlx.ai) A tool using agent, I use OpenCode (https://opencode.ai) There is lots of info on how to configure OpenCode to use oLMX IMPORTANT Xcode 27 Beta 5 and later requires that the Agent executable be signed or Xcode crashes. Every time you update OpenCode you will need to resign the new executable Self Sign OpenCode # locate you opencode which opencode # codesign it codesign --force -s - /Users/gdunham/.opencode/bin/opencode # verify it codesign --verify --verbose /Users/gdunham/.opencode/bin/opencode # later update opencode opencode upgrade Multiple Models with OpenCode The way to use multiple models with OpenCode in Xcode 27, is to create a custom agent for each model and use environmental variables to specify the model.