Two APIs, one port
/api + /v1Keep the client you have
The native Ollama API lives under /api and an OpenAI-compatible API under /v1, both on port 11434. An OpenAI SDK, a LangChain client or a plain fetch all work by pointing the base URL at your Egg.
Private by default
No public doorNobody drains your box
An open inference endpoint is a magnet for abuse: a single exposed instance is free compute for whoever finds it. An Ollama Egg is never published to the internet. It is reachable from your peered Eggs and your own shell, and nowhere else.
the private AI stackyour web Egg calling your LLM Egg, over the Coop network
// In your app Egg, OPENAI_BASE_URL references the LLM Egg,
// so Ruust fills in its private address for you.
const res = await fetch(`${process.env.OPENAI_BASE_URL}/chat/completions`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
model: 'llama3.2',
messages: [{ role: 'user', content: 'Summarise this ticket.' }],
}),
});