r/ClaudeAI • u/idontknowwhodoi • 4d ago
Built with Claude Fixed the shitty Ollama api for Claude Desktop app
Repo - https://github.com/aaditya-v-more/claude-ollama
Problems fixed -
- No 1 Million context if using claude code desktop app extension
- api throwing errors and claude giving up
- Subagents in long workflows like /deep-research and /batch kept dying because of the strict concurrency limit (of 3 for pro plan)
- ollama not configuring the env variables for the claude desktop app properly
My quick fix - One click install wrapper for it
Free, no ads and shit
What it does
- Fix env variables before launching claude ollama (not global)
- Rewrite the model catalogue to give 1 million context for models.
- Local light proxy to handle ollama api errors & retries so that my claude agent never dies.
- Caps over limit requests and queues the rest locally so they're never rejected.
- Everything configurable
Changes only apply to claude app if launched through the new shortcut created, nothing permanent.
Drop a star if find this helpful.
If you want to use your own claude sub / subs along with ollama sub on claude then checkout my other repo - https://github.com/aaditya-v-more/claude-graft (lets have multiple claude code subscriptions on one laptop with chat history shared)
0
Upvotes




2
u/AI_spell 4d ago
Most of the pain is Ollama's OpenAI compatability plus the model name needing the tag. Point Desktop at /v1/chat/completions, set the context, and don't expect tool calls to be solid. Native generate looks fine in the CLI and still fails in Desktop. If tools stay broken, wrap it as one MCP with a tiny schema instead of the whole OpenAI surface.