MindStudio Docs
  • Get Started
    • Overview
    • MindStudio Chrome Extension
    • Quickstart Guide
    • What is an AI Agent?
    • AI Agent Use Cases
  • Free vs. Paid AI Agents
  • Building AI Agents
    • Editor Overview
    • Workflow Generator
    • Writing Prompts
      • Templating
    • AI Models
    • Variables
      • Working with JSON
      • Using Handlebars Templating
    • Dynamic Variables
    • Data Sources
    • Automations
      • Start Block
      • Generate Text Block
      • Generate Image Block
      • Generate Chart Block
      • Generate Asset Block
      • Display Content Block
      • Text to Speech Block
      • Analyze Image Block
      • User Input Block
      • User Context Block
      • Query Data Block
      • Run Function Block
      • Scrape URL Block
      • Extract Text from File Block
      • Post to Slack Block
      • Menu Block
      • Logic Block
      • Checkpoint Block
      • Jump Block
      • Run Workflow Block
      • Terminator Block
    • Integrations
      • Search Bluesky Posts
      • Scrape Facebook Page
      • Scrape Meta Threads Profile
      • Scrape Instagram Comments
      • Scrape Instagram Mentions
      • Scrape Instagram Posts
      • Scrape Instagram Profile
      • Scrape Instagram Reels
      • Create LinkedIn Post
      • Create X Post
      • Search X Posts
      • Search Google
      • Search Google Images
      • Search Google Trends
      • Search Google News
      • Create Google Doc
      • Fetch Google Doc
      • Update Google Doc
      • Create Google Sheet
      • Fetch Google Sheet
      • Update Google Sheet
      • Enrich Company via Domain
      • Find Contact Email for Website
      • Find Email
      • Verify Email
      • Enrich Person via Email
      • Fetch YouTube Captions
      • Fetch YouTube Channel
      • Fetch YouTube Comments
      • Fetch YouTube Video
      • Search YouTube
      • Search YouTube Trends
      • Create Notion Page
      • Update Notion Page
      • Apify
      • Run Scenario
      • Post to Slack
      • HTTP Request
      • Run Node
      • Create Contact
      • Add Note
      • Send Email
      • Send SMS
    • Packaged Workflows
    • Publishing & Versioning
  • Embedding AI Agents
  • Using Webhooks
  • Workspace Management
    • Workspace Overview
    • Workspace Settings
    • Usage Explorer
    • Billing Settings
    • Account Settings
    • Team Settings & Access Controls
  • Test & Evaluate
    • Testing Suite Overview
    • Evaluations
    • Profiler
    • Debugger
  • Integration Guides
    • Zapier + MindStudio
    • Make.com + MindStudio
    • n8n + MindStudio
  • Developers
    • API Reference
    • NPM Package
    • Custom Workflow Functions
  • Additional Resources
    • Self-Hosted AI Models (Quickstart Tutorial)
    • Glossary
    • Allowing Access to Mindstudio From Your Network
  • Solutions
    • MindStudio Solutions Partners
    • MindStudio For Developers
    • MindStudio for Enterprises
Powered by GitBook
On this page
  • Prerequisites
  • Step-by-Step Instructions
  • Using the Model in an Agent
Export as PDF
  1. Additional Resources

Self-Hosted AI Models (Quickstart Tutorial)

Learn how to quickly connect self-hosted models to MindStudio for testing & hobbyists

Last updated 2 days ago

Prerequisites

Before getting started, ensure you have the following installed on your machine:


Step-by-Step Instructions

1. Start an Ngrok Tunnel

Open a terminal window and run the following command to expose port 11434 to the internet:

ngrok http http://localhost:11434

Copy the forwarding HTTPS URL Ngrok provides (e.g. https://xxxx.ngrok.io). You'll need this later.


2. Pull and Serve the AI Model

Open a second terminal window:

a. Pull the llama3.2 model:

ollama pull llama3.2

b. Serve the model with the proper environment variables:

Replace the Ngrok URL below with your actual forwarding address from Step 1:

On Mac / Linux:

OLLAMA_HOST=0.0.0.0:11434 OLLAMA_ORIGINS="https://xxxx.ngrok.io/" ollama serve

On Windows:

First

$Env:OLLAMA_HOST   = "0.0.0.0:11434"
$Env:OLLAMA_ORIGINS = "https://xxxx.ngrok.io/" 

then

ollama serve

This command makes your local Ollama instance accessible through the Ngrok tunnel.


3. Add the Self-Hosted Model to MindStudio

  1. Click "Add Model"

  2. Use the following fields:

    • API Name: (Ex: llama3.2 )

    • Endpoint: https://xxxx.ngrok.io/v1 (replace xxxx with your actual Ngrok subdomain)

Your self-hosted AI model is now ready to be used in any MindStudio AI Agent.


Using the Model in an Agent

Once added, you can:

  • Select your AI Model in the Model Settings tab when editing an AI Agent.

  • Use it across workflows, prompts, and block-level overrides in your automation.

Go to

Ollama
Ngrok (for macOS)
MindStudio Self-Hosted Models