Mendloop Docs Request access

AI models and providers

Bring your own key for Gemini, OpenAI, DeepSeek, Anthropic or a local model, map tiers and set budgets.

Mendloop uses AI models to triage errors, spot duplicates, find root causes and write fixes. You bring your own key. Everything happens in Settings → Models and budgets, and you need to be an Admin.

1. Get a key#

Provider Where Notes
Google Gemini aistudio.google.com → Get API key → Create API key. Starts with AIza. The quickest start. The free tier has low limits, and Google may use free-tier prompts to improve its products. Turn on billing for real use.
OpenAI platform.openai.com/api-keys → Create new secret key. Starts with sk-. Add credit under Settings → Billing, or every call fails with a quota error.
DeepSeek platform.deepseek.com → API keys → Create new API key. Starts with sk-. Top up your balance first. DeepSeek processes data in China; check that's fine for your code.
Anthropic console.anthropic.com → API keys Recommended for code work and the strongest tier.
Ollama (local) No key Enter the URL where Ollama runs, as seen from the Mendloop server, for example http://localhost:11434 or http://ollama:11434 in Docker.
OpenAI-compatible endpoint vLLM, LM Studio, a LiteLLM proxy or your own gateway The base URL, and a key only if it asks for one.

2. Add it and test it#

  1. Click Add provider (or Connect on the provider's row), pick the provider, paste the key and click Test and save.
  2. The key is stored encrypted with your organization's key. Nobody can read it back, not even Admins; the page shows only its last four characters. The key is never sent to a model and never written to a log.
  3. Mendloop makes one tiny call. The row shows Connected (green), Partly working (amber) or Failing (red), and the test table shows each model with its latency.

Click N models on the row to see the models your key can use.

3. Map the tiers#

Workflow steps and agents don't ask for a model. They ask for a tier:

Tier Used for
Fast Triage, duplicate checks, summaries. Called often, so it should be cheap.
Balanced Investigating: reading logs and traces, writing reports.
Strongest Root cause and the code fix.
Embed Similar-incident search. Leave it on Built-in (free, runs on your server).

In Model map, pick a model for each tier and add fallbacks: if a model fails, the next one in the chain takes over. Click Save model map, or choose Start from a preset. Until you save a map, Mendloop uses a preset that fits the providers you've connected.

Starting with only Gemini (the "Google Gemini" preset):

Tier Model Fallback
Fast Gemini 2.5 Flash-Lite Gemini 2.5 Flash
Balanced Gemini 2.5 Flash Gemini 2.5 Pro
Strongest Gemini 2.5 Pro Gemini 2.5 Flash
Embed Built-in

On the free tier, Gemini 2.5 Pro may have no quota. If Strongest fails with a quota error, map Gemini 2.5 Flash as Strongest until billing is on.

A mix (the "Mix" preset, once Gemini, DeepSeek and OpenAI are all connected):

Tier Model Fallbacks
Fast Gemini 2.5 Flash-Lite DeepSeek chat
Balanced Gemini 2.5 Flash DeepSeek chat, GPT-5 mini
Strongest GPT-5 Gemini 2.5 Pro, DeepSeek reasoner
Embed Built-in

You can pick any model your key lists, even one Mendloop's catalog doesn't know yet. Models without tool calling still work: Mendloop asks them which evidence they want, fetches it for them, and has them answer in JSON.

4. Try it#

In Try it, choose a tier, type a prompt and click Send. The prompt goes through the same path a workflow step uses: the model map, fallbacks, redaction of secrets and personal data, and budgets. You see the answer, the model that answered, tokens in and out, the cost and the time. Each try counts toward the month's spend.

5. Set a budget#

Budget Limits
Organization All model spend in a month
Each run One workflow run
Test mode Test mode, per day

Leave a box empty for no limit, then Save budgets. A budget is a hard stop: when it's spent, model calls stop before they reach the provider, runs finish their current step and wait for an Admin, and Try it says "The organization's monthly model budget is spent." Raise the limit to continue.

Tip:

On your own keys, the model bill is usually many times the server bill. Automatic root-cause analysis is gated by severity for that reason; see Configuration.

Troubleshooting#

The page says What to do
"The provider rejected the API key" The key is wrong, incomplete or deleted. Copy it again, remove the provider (⋯ → Remove key) and add it again.
"The key has no quota or credit left" Add billing or credit. For the Gemini free tier, wait for the limit to reset, or use Flash instead of Pro.
"The provider is rate limiting this key" Wait a minute. Add a fallback from another provider.
"The provider doesn't serve this server's region" Google doesn't offer the Gemini API (or its free tier) where the Mendloop server runs. Use another provider, or run the server in a supported region.
"The provider doesn't know this model" The model was retired, or your key can't use it. Click N models and pick another.
"Mendloop couldn't reach the provider" No internet from the server, a proxy, or a wrong base URL. For Ollama, the URL must work from the server, not from your browser.
"Model calls are switched off on this server" MENDLOOP_LLM_NETWORK=off is set. Remove it and restart.
"No model for the … tier can do this" No connected provider is mapped to that tier. Map a model in Model map.

For operators#

  • Instance-wide keys can be set in the server environment (LLM_GEMINI_API_KEY, LLM_OPENAI_API_KEY, LLM_DEEPSEEK_API_KEY, …). They show as read-only "server environment" rows; an organization's own key wins.
  • MENDLOOP_LLM_TIMEOUT sets the seconds per call (default 60).