Skip to content

Instantly share code, notes, and snippets.

@scottrfrancis
scottrfrancis / local-agentic-ai-mlx-opencode.md
Last active June 9, 2026 19:38
Local Coding on Mac with MLX-LM and OpenCode

Run Local Agentic AI on the Mac with MLX + OpenCode

A reproducible recipe for a fully on-device coding agent on Apple Silicon: an MLX-served LLM exposed through an OpenAI-compatible endpoint, driving OpenCode in the terminal. Nothing leaves the machine — which is the point if you care about privacy, latency, or offline work.

Source / inspiration: Apple WWDC26 Session 232 — Run local agentic AI on the Mac using MLX (). The snippets below are

@scottrfrancis
scottrfrancis / reverse-ssh-tunnel-guide.md
Created May 21, 2026 16:56
Persistent reverse SSH tunnel with autossh + systemd: reach a NAT'd Linux host from your home server, using the home server as a bastion (ProxyJump) for LAN access.

Persistent Reverse SSH Tunnel with autossh + systemd

Overview

This guide shows you how to establish a persistent SSH connection from a remote Linux system back to your home server, so you can reach the remote host with plain SSH instead of going through vendor remote-desktop tools, web portals, or layered jump-host workflows.

Why a reverse tunnel?

The remote system usually sits behind a corporate firewall or NAT that won't accept inbound SSH — you can't just ssh remote-box from home, because nothing at the remote network's edge will route the connection to it. But that same firewall almost always lets the remote system make outbound connections, including SSH to a server you control.