Improvements
Todo
Model Provider: Allow changing openai base url
What could be better?
Currently only a few major providers are supported. As any is about privacy: I want to use local models. Allowing to change the openai base url would make this possible in the easiest way, as it allows connecting almost everything (pretty much everything supports the openai inference api)
3 Comments
Sign in to comment

Thanks for the suggestion — we see the privacy angle and the appeal of the OpenAI-compatible API as a universal bridge.
To scope this properly: are you looking to swap the base URL globally (one local model provider at a time for your whole workspace), or per-conversation (pick which endpoint to hit for each chat)? And do you have a specific local setup in mind — something like Ollama, vLLM, or LM Studio — that you've tested against an OpenAI-compatible endpoint?
The best abstraction I have seen so far is:


1. A list of providers, the user can add an arbitrary amount
2. For every provider you add you can select a list of predefined ones based on their api compatibility, mainly openai, anthropic, openrouter, lmstudio/ollama maybe as well
3. You enter base url (prefilled with providers default) + api key (with link to the page of the provider where to create a key)
4. If the api has a models endpoint to request available models, call it and show them in a searchable list, let users select which models they are interested in plus allow them to add aribtrary text /custom ones as well (about that already another request exists)
The result is a list of providers and associated models. In the model picker you can choose from models, ordered by providers.
This gives the most flexibility for all kinds of setups
And example of how devonthink does it (sadly they don't support multiple providers at the same time):
Why are multiple providers at the same time necessary?
Some data has higher requirements regarding privacy and has to be done locally while other stuff is more complex and requires a cloud model. Even the same model you might sometimes want to use in the cloud because its faster and sometimes locally.
But I guess hiding this all behind an advanced option is a good idea for many people
hey Lukas, thanks again for your feedback on this! about multiple providers: technically you can set different providers for different tiers of llm. But you only have one global llm config in place, not sure how to do multiple configs and easy switch in a meaningful way in our case -- but I'm keep thinking about related topics on background. As for UI for switching providers -- I was looking at UI examples and they look too heavy. We will come to some middleground eventually, but for now I left this escape hatch: ask your agent to set it, with the link which describes how to do it in details.

What I currently settled on, one missing piece we need to do is to be able to create and save custom configs to switch between them easily, i.e. you will have custom pills in addition to these four hardcoded we have now.
current agent skill link: https://raw.githubusercontent.com/anyproto/anybao/main/docs/skill-bao-config.md