← Agent and Access

Connect an app to AI Hub

These instructions connect Open Interpreter to the Hub's model API. The screenshots show Interpreter's model settings. AI Model Connections inside the Hub are the providers the Hub calls, such as Ollama; MCP servers supply tools through a separate connection.

1. Create and enable the Hub identity

  1. Sign in to the Hub account with access to your local Ollama AI connection.
  2. Open Agent and Access, select Add client or agent, and name the identity Open Interpreter.
  3. Ensure Enabled is on. For local models, leave Local only on and cloud access off.
  4. Under the allowed model routes, explicitly check private-hub-auto. Assign at least one enabled local AI connection, such as Ollama. Both permissions matter: an unassigned route returns HTTP 403 even when the key is valid.
  5. Save and copy the newly displayed pah_agent_… key. It is shown once. If it is lost, rotate the key on this identity and use the new one in Interpreter.

For model replies alone, you do not need to assign memory, email, calendar, Vault, or MCP tools.

2. Pick the correct Interpreter option

  1. Open Interpreter → Settings → Models → New Model.
  2. Select Custom API from the choices shown below. On the form, the provider is API.
  3. The Local (Ollama / LM Studio) option expects Interpreter to talk to Ollama directly and may show Could not verify Ollama at this endpoint when pointed at the Hub. Use Custom API for this Hub connection.
Interpreter New Model screen showing the Custom API option and the separate Local Ollama option
Interpreter's New Model screen: choose Custom API.
Why the Local option did not work
Interpreter Local provider form showing an Ollama verification warning and localhost 11434 base URL
The Local form probes Ollama and defaults to localhost:11434/v1, which refers to the computer running Interpreter. The Hub uses a separate HTTPS API address.

3. Enter the working profile settings

On the API form, change the Base URL dropdown from the example OpenAI selection to Custom endpoint. Replace the example URL, key and GPT model with these values:

FieldValue
Model NameAI Hub — a label shown in Interpreter.
ProviderAPI.
Base URL dropdownCustom endpoint.
Base URL text fieldhttps://aihub.mini.bebz.net/v1 — keep the /v1 suffix.
API KeyThe enabled Open Interpreter identity's pah_agent_… key. Paste the complete key, without Bearer or surrounding quotes.
Model IDprivate-hub-auto (exact spelling). private-auto-hub is a different, invalid name.
Use Chat CompletionsOn. The Hub offers /v1/chat/completions, not a Responses API endpoint.
Vision model overrideOff for the first connection test.
Interpreter API model form showing locations of Model Name, Base URL dropdown and text box, API Key and Model ID; the screenshot contains default example values to replace
This screenshot locates the fields. It still shows Interpreter's example api.openai.com and GPT model; replace those values using the table. Scroll to Use Chat Completions and switch it on before saving.

Select Create Model or Save Changes, select AI Hub as the active model, and start a new chat. Ask: Reply with one sentence confirming this model is connected. Once that works, try a read-only Interpreter tool task in a folder you choose. Interpreter executes approved computer actions on its own machine.

4. Resolve a failed connection

Interpreter reporting HTTP 403: This agent is not allowed to use that model alias
This HTTP 403 error was fixed by checking private-hub-auto in the agent's allowed routes. The local 127.0.0.1 address in Interpreter's error belongs to Interpreter's runtime; the Hub's error message identifies the permission to fix.

To check the key independently, call GET https://aihub.mini.bebz.net/v1/models with Authorization: Bearer YOUR_AGENT_KEY. HTTP 200 confirms the key is accepted; it does not mean every model route is assigned. The list can contain many models, so a route missing from the first 20 results might still appear later. Never share the key in screenshots or messages.

Open WebUI and other compatible clients

For Open WebUI, add an OpenAI-compatible connection. Use https://aihub.mini.bebz.net/v1, a separate enabled agent key with its allowed routes and connections, and a model ID returned by /v1/models. Each client should have its own key so access can be changed independently.

Optional: MCP tools for an agent

  1. In the Hub's MCP servers section, add the tool provider using its exact URL. Test it, discover its tools and approve only the tools the Hub is allowed to expose.
  2. Edit the agent identity in Agent and Access. Assign the server and the specific approved tools it may use. Keep write operations subject to approval unless you explicitly decide otherwise.
  3. If the client supports Streamable HTTP MCP, add https://aihub.mini.bebz.net/mcp separately, authenticating with the same agent key. Keep the model provider URL at https://aihub.mini.bebz.net/v1.

Assigning MCP tools in the Hub does not automatically expose them through Interpreter's model profile. Configure a supported Interpreter MCP client separately from the AI model.