Skip to main content
Glama

Run OFI OFO on a spare mini-PC, a NAS, or a Proxmox container. Pair devices in the dashboard, give each agent a scoped key, and connect over standard MCP or REST. An optional OpenTunnel connection lets cloud clients reach the gateway without inbound port forwarding.

Pre-release. The one-line installers require anonymous access to the repository. The operator guide also covers installation from an authenticated checkout or a local archive.

What you can connect

Device or service

What an agent can do

Android via ADB

Check status, launch allowed apps, send input, and separately grant screen reads, screenshots, or camera photo imports.

Home Assistant

Read entity states and history, or call a service to control a device.

Printers, routers, and NAS devices

Call HTTP APIs and check DNS or TCP reachability from the gateway.

Wake-on-LAN hosts

Wake a sleeping machine on the local network.

Private OpenSSH servers

Run fixed, owner-approved SSH actions with separately granted read, run, and sudo access.

Workspaces and paired desktops

Use workspace tools or supervise a time-limited remote desktop share.

The dashboard manages devices, keys, per-tool access, and the audit log. See the full tool list.

Use Home access to give an assistant named rooms and devices, read room state and recent changes, run scenes, capture still images, control playback, announce a message, submit a print job, or find a document on an approved NAS mount.

Related MCP server: SelfHostDesktopMCP

Quick start

Docker on Linux

With Docker Engine and the Compose plugin installed, clone using a GitHub SSH key with access to the repository. The same commands work from an existing authorized checkout; skip git clone in that case.

git clone git@github.com:Sh3nron/ofi-ofo.git
cd ofi-ofo
docker compose up -d --build --wait
docker compose exec -T ofi-ofo node src/main.ts setup-token

Open http://<gateway-ip>:7420/ from your LAN. Enter the setup token and create your admin account. Compose uses host networking and stores keys, devices, and tunnel identity in a named volume.

Compose enables OpenTunnel on first run. For a fresh LAN-only install, prefix docker compose up with OFIOFO_TUNNEL=0. For an existing installation, change the tunnel setting in the dashboard.

Run directly from source

Use Node.js 22.18+ on the 22.x line, 24.x, or 26.x. Install adb if you want to pair Android devices. In your authenticated checkout, run:

npm ci --omit=dev
npm start -- --bind 127.0.0.1

Open http://127.0.0.1:7420/ on the gateway and use the setup token printed in the terminal. The source install starts with the tunnel off and persists state in ~/.ofi-ofo by default. For an existing Debian or Ubuntu systemd LXC, run these commands inside the guest. See the operator guide for LAN binding and the separate Proxmox node wrapper.

Connect an MCP client

  1. In the dashboard, go to Agents → Create key. Start with a viewer key scoped to system_info and copy the token when it appears.

  2. Add a Streamable HTTP MCP server in your client. Use http://<gateway-ip>:7420/mcp on the LAN, or copy the HTTPS MCP URL from the dashboard’s Tunnel section for a remote client.

  3. Set the Authorization header to Bearer ofo_<keyId>.<secret>, using your full token.

For a quick check from the gateway host, the same key works against REST:

curl --fail --silent --show-error \
  -H "Authorization: Bearer $OFIOFO_KEY" \
  http://127.0.0.1:7420/v1/tools

Here OFIOFO_KEY is a shell variable containing the copied token. See Alia setup and the HTTP contract for more.

Where traffic goes

Listener

Serves

Available from

Dashboard, :7420

Dashboard, admin API, MCP, REST

The configured bind address. Keep this on your trusted LAN or loopback.

Tunnel listener, 127.0.0.1:7421

Key-authenticated MCP and REST, credential-scoped desktop companion endpoints, and a public health check

Loopback, and remote clients when OpenTunnel is enabled.

OpenTunnel carries encrypted traffic to the gateway; dashboard, setup, and login routes stay off the tunneled listener. viewer keys can call only read tools, operator keys can also call write tools, and both can be scoped to specific tools and revoked. The tunnel URL itself grants no access. See the security model.

Development

nvm use            # optional; .nvmrc selects Node 26
npm ci
npm run check      # JavaScript and Bash syntax, TypeScript checks, and tests

Node runs the TypeScript directly; there’s no compile step. Start with src/app.ts for gateway wiring, src/tools/ for device integrations, or src/web/ for the dashboard. The contributor guide covers isolated development, CI, and where to make changes.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      It enables MCP-compatible AI clients to run local device, filesystem, shell, PowerShell, Git, browser, HTTP, clipboard and application actions on a Windows PC and a paired Android phone, with session-based device routing. Sensitive operations are gated behind configurable one-use approvals and recorded in a local SQLite audit.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      A self-hosted MCP gateway that lets an owner register remote MCP servers, review and grant specific tools and account connections to agent clients, and issue revocable tokens with one-use approvals for protected calls.
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Exposes an OAuth-gated MCP endpoint that lets web-based AI clients work directly on a local machine through 38 governed tools covering files, shell commands, search, Git, SQLite, browser automation, DevTools, background tasks, localhost services, clipboard, notifications, ports, and Postman control. Local tools can connect straight to the loopback address for offline, low-latency use, while remote clients reach the same machine over an optional public ingress.
      MIT