Tutorial
Step-by-Step Guide: How to Add Custom and Local AI Models to STURIO

You’ve seen the power of AI, but have you experienced the freedom of your AI? STURIO was built with an open architecture that doesn’t lock you into one provider. Whether you prefer the privacy of Ollama, the versatility of LM Studio, or the raw power of a Custom API, this guide will show you exactly how to set it up.
1. Connecting LM Studio: The Powerhouse for PC
LM Studio is the easiest way to run local models on Windows and Mac. To connect it to STURIO:
- Open LM Studio and download your favorite model (e.g., PHI-3 or Llama-3).
- Head to the "Local Server" tab (the double-square icon).
- Click "Start Server". Note the URL (usually
http://localhost:1234). - In STURIO, go to Settings > AI Integration and enter that URL into the LM Studio field.
2. Integrating Ollama: Advanced Sovereign Mode
Ollama is the king of command-line local AI. It’s ultra-efficient and perfect for "hidden" background tasks.
- Install Ollama from ollama.com.
- Run your model in the terminal:
ollama run llama3. - As shown in our Sovereign Mode blog, remember to set your origins environment variable so your browser has permission to talk to the model.
3. Adding Custom API Endpoints
Do you have credits for a specific AI provider not listed in our defaults? No problem. STURIO supports any OpenAI-compatible API.
How to add a custom endpoint:
- Get your Base URL and API Key from your provider (e.g., Together AI, Groq, or your own server).
- In STURIO, select "Custom" under the Provider dropdown.
- Paste your URL and Key.
- Click "Scan Models" to see all available options from that custom provider.
Why This Setup is a Game Changer for Students
By connecting your own models, you bypass all the limitations of standard free tools. You get unlimited message counts, zero censorship on your academic documents, and the ability to study even when you are completely offline.
STURIO doesn't just give you a fish; we give you the entire ocean and the tools to navigate it. Whether you are adding a local LLM or a custom cloud API, you are taking control of your educational future.
Join the Local AI Revolution
Take your FIRST step towards sovereign studying now.
CONFIGURE SETTINGS →