@mopitu/agent
v1.0.0
Published
Secure loopback bridge for using Ollama and LM Studio with Mopitu Web IDE.
Maintainers
Readme
Mopitu Local Model Bridge
Use local Ollama or LM Studio models from Mopitu Web IDE without exposing the
model runtime to the network. The bridge binds only to 127.0.0.1, permits
approved Mopitu origins, and proxies only to configured loopback runtimes.
Requirements
- Node.js 18.17 or newer
- Ollama on
http://127.0.0.1:11434, or LM Studio onhttp://127.0.0.1:1234
Run
npx @mopitu/agentKeep that terminal open while using local models. Then open Mopitu Web IDE, choose Local AI, and select Scan.
Stop the bridge with Ctrl+C.
Configuration
The defaults are appropriate for normal Web IDE use. To authorize an additional Mopitu development deployment, set:
| Variable | Purpose | Default |
| --- | --- | --- |
| MOPITU_WEB_ORIGIN | Additional allowed web origin; comma-separated | empty |
Remote binding and remote proxy targets are always rejected.
Example for a custom Mopitu development origin:
MOPITU_WEB_ORIGIN=http://localhost:5173 npx @mopitu/agentHealth Check
curl http://127.0.0.1:37654/healthThe bridge does not install, download, or manage models. Models remain on the user's machine and requests are sent only to the selected local runtime.
