You can use Claude Code with a self hosted model no problem. I don't believe you can switch during a session though.