Trouble understanding Ollama base api url and api

I have bolt successfully installed on ubuntu system through WSL 2. I have what I believe to be the base api url for Ollama which i guess is http://localhost:11434 but i’m not sure and added it to the .env.local file. I installed ollama on the ubuntu system and ran it using ollama serve, it generated an api that i in turn added to my ollama keys on ollama.com. but bolt.diy doesn’t show any of the models when choosing ollama and gives an error when trying to run.

I did not use docker desktop.

I would probably just suggest run it on straight windows using the npm install pnpm & pnpm install method. I can only imagine the headache of getting it to run within WSL.

Have you entered the host for Ollama in Bolt.diy via settings…?

1 Like

Make sure there’s no trailing spaces after the URL. I did this and had a hell of a time.

added this cleanup built in the code itself for newer releases. :sweat_smile:

1 Like

Hello there, sorry to bump this topic but no matter what I try I cannot get ollama to show my models on bolt, everything else seems to work, just want to work with local

{
  "System": {
    "os": "Windows",
    "browser": "Chrome 133.0.0.0",
    "screen": "2055x1028",
    "language": "en-US",
    "timezone": "America/Bogota",
    "memory": "4 GB (Used: 128.56 MB)",
    "cores": 2,
    "deviceType": "Desktop",
    "colorDepth": "24-bit",
    "pixelRatio": 1.25,
    "online": true,
    "cookiesEnabled": true,
    "doNotTrack": false
  },
  "Providers": [
    {
      "name": "LMStudio",
      "enabled": false,
      "isLocal": true,
      "running": false,
      "error": "No URL configured",
      "lastChecked": "2025-02-09T03:39:59.034Z",
      "url": null
    },
    {
      "name": "Ollama",
      "enabled": true,
      "isLocal": true,
      "running": true,
      "lastChecked": "2025-02-09T03:39:59.064Z",
      "responseTime": 29.96500000357628,
      "url": "http://127.0.0.1:3000"
    },
    {
      "name": "OpenAILike",
      "enabled": true,
      "isLocal": true,
      "running": false,
      "error": "No URL configured",
      "lastChecked": "2025-02-09T03:39:59.035Z",
      "url": null
    }
  ],
  "Version": {
    "hash": "no-git-",
    "branch": "main"
  },
  "Timestamp": "2025-02-09T03:40:02.457Z"
}

Hi @toxykdude,

take a look at my youtube video on this, if not done already:

If you still get problems, please open a seperate topic to investigate deeper (provide screenshots of the settings and dev-console then as well)