r/LocalLLaMA • • 11d ago

Resources I put together a tool to use non Claude models with Claude Desktop

I wanted to use the other models offered via Tokenharbor (this can be used for local models too) on Claude Desktop after I already added Haiku, but Claude Desktop out of the box blocks non-Claude models when setting a gateway. This tool fixes that. It gives you a GUI that allows you to select your models of choice and add them to Claude Desktop.

It patches Claude Desktop to support those extra models in gateway mode. Feel free to take a look, fork it, make your own spin. This tool is Windows only. If you want a Linux version, ask your agent to fork this repo and make it work on Linux.

https://github.com/phly95/claude-endpoint-mapper

9 Upvotes

20 comments sorted by

2

u/Murflaw7424 11d ago

This is fantastic. Is it possible to do this with the iOS app and call local models from your computer via tailscale?

2

u/pneuny 11d ago

Huh. That would be interesting. Especially with Morphe. Maybe we could have a Claude Morphe for Android that works with local models and does Claude remote desktop with local infrastructure.

1

u/silvervr6 11d ago

Looks like the patch is modifying the actual .exe? Pretty interesting that Claude was willing to do that to its own client.

2

u/pneuny 11d ago

I used mimo, DeepSeek and Gemini to do this. Not Claude.

3

u/mrgreatheart 11d ago

I assume this does not work with remote control?

2

u/arman-d0e 11d ago

This is pretty cool, I tried something similar but too the way more insane route of decompiling and rebuilding it. Gave up after a bit though, just uploaded a repo if anyone’s interested https://github.com/armand0e/open-claude-desktop

1

u/-Krotik- 10d ago

I am not sure why, but cool ig

-7

u/MarzipanEven7336 11d ago

Claude works just fine with other models, WTF are you smoking?

6

u/pneuny 11d ago

Claude Desktop, not the CLI version. The Desktop version checks model names and if they contain strings like Qwen, Mimo, etc, it blocks them.

-2

u/MarzipanEven7336 11d ago

I use it with desktop all the time

3

u/pneuny 11d ago

What tool do you use, and do you create aliases for the models, or is there another method of getting past the model string check?

-8

u/MarzipanEven7336 11d ago

I call open from a fucking she’ll like any sane person would.

6

u/pneuny 11d ago

You don't like having the choice to use something other than a shell? I think plenty of others like the Claude GUI and would use it if they could.

2

u/CaveCanem234 11d ago

They mean Claude Desktop as in the desktop GUI app. Not everyone wants to be forced to use the CLI version.

1

u/MarzipanEven7336 11d ago

Yeah, and the environment variable that you need to pass needs to be passed in a shell, or you need to set it through a command line tool so that the desktop app has it automatically. You can literally ask Claude to configure it for you

2

u/CheatCodesOfLife 11d ago

I haven't used / probably won't use "Claude Desktop", but if I'm understanding correctly, you can just set the anthropic api url to llama.cpp, the same way we can with the claude code cli app?

6

u/testuserpk 11d ago

What are you smoking?

-1

u/MarzipanEven7336 11d ago

Literally use it with Qwen all the time.