Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
feat(b4): host-only Pro gate — connecting to a host is free
enes5b21237a0869
diff --git a/src/main/remote/client-service.ts b/src/main/remote/client-service.tsindex 1f9a6d7f2..914e40225 100644--- a/src/main/remote/client-service.ts+++ b/src/main/remote/client-service.ts@@ -22,7 +22,6 @@import { ipcMain, type BrowserWindow } from 'electron'import { IPC } from '../../shared/ipc'import type { PtyCreateOptions } from '../../shared/types'-import { isPremium } from '../license'import { genKeyPair } from './e2ee'import { OP, type Frame } from './framing'import { decodeOffer } from './pairing'@@ -159,7 +158,8 @@ interface ClientConnection {}/**- * Wire the client-mode IPC. `remote:client:connect` gates on Pro + the dev gate, decodes the+ * Wire the client-mode IPC. `remote:client:connect` gates on the dev gate only (the host's Pro+ * mints the pairing token, so the client needs no entitlement), decodes the* offer, connects to the relay as the client (triggering the host bridge), and returns a* `connectionId`. The renderer's RemoteTransport(connectionId) then drives remote PTYs over* the per-session create/write/resize/kill IPC, with output/exit arriving on per-session@@ -178,9 +178,9 @@ export function initRemoteClient(win: BrowserWindow, deps?: { isPackaged?: boole}ipcMain.handle(IPC.remoteClientConnect, async (_e, offerCode: string): Promise<string> => {- if (!isPremium()) {- throw new Error('Remote access requires nodeterm Pro.')- }+ // No Pro gate on the client: the paywall is the HOST minting the pairing token+ // (/v1/pair/token requires the host's entitlement). A valid offer is the credential, so a+ // user's free device can connect to their own Pro host. The dev/relay gate still applies.if (!relayAllowed()) {throw new Error('Remote access is unavailable in development builds (set NODETERM_RELAY_URL).')}diff --git a/src/renderer/components/SettingsPanel.tsx b/src/renderer/components/SettingsPanel.tsxindex 34d9ee752..c0b626d3a 100644--- a/src/renderer/components/SettingsPanel.tsx+++ b/src/renderer/components/SettingsPanel.tsx@@ -483,16 +483,16 @@ export function SettingsPanel({ onClose }: SettingsPanelProps) {)}</section>- {ent.isPremium ? (- <section>- <h3>Remote access</h3>- <p className="set-note">- Share this device's terminals with another nodeterm, or connect to one that's- sharing — end-to-end encrypted over the relay.- </p>+ <section>+ <h3>Remote access</h3>+ <p className="set-note">+ Open terminals that run on another machine you own — end-to-end encrypted over the+ relay. Hosting (sharing this machine) is Pro; connecting to a host is free.+ </p>- <h4 className="set-subhead">Allow remote access</h4>- {hostOffer ? (+ <h4 className="set-subhead">Allow remote access</h4>+ {ent.isPremium ? (+ hostOffer ? (<><p className="set-note">Share this pairing code with the other device (single use):@@ -515,33 +515,38 @@ export function SettingsPanel({ onClose }: SettingsPanelProps) {<button className="set-btn" disabled={hostBusy} onClick={() => void startHosting()}>{hostBusy ? 'Starting…' : 'Allow remote access'}</button>- )}+ )+ ) : (+ <p className="set-note">+ Hosting this machine requires nodeterm Pro — upgrade above. Connecting to a host+ you were given a code for is free.+ </p>+ )}- <h4 className="set-subhead">Connect to a host</h4>- <label className="set-row">- <span>Pairing code</span>- <input- type="text"- placeholder="paste the host's code"- value={clientCode}- onChange={(e) => setClientCode(e.target.value)}- />- </label>- <button- className="set-btn"- disabled={connecting || !clientCode.trim()}- onClick={() => void connectToHost()}- >- {connecting ? 'Connecting…' : 'Connect'}- </button>+ <h4 className="set-subhead">Connect to a host</h4>+ <label className="set-row">+ <span>Pairing code</span>+ <input+ type="text"+ placeholder="paste the host's code"+ value={clientCode}+ onChange={(e) => setClientCode(e.target.value)}+ />+ </label>+ <button+ className="set-btn"+ disabled={connecting || !clientCode.trim()}+ onClick={() => void connectToHost()}+ >+ {connecting ? 'Connecting…' : 'Connect'}+ </button>- {remoteError ? (- <p className="set-note" style={{ color: '#ff9f0a' }}>- {remoteError}- </p>- ) : null}- </section>- ) : null}+ {remoteError ? (+ <p className="set-note" style={{ color: '#ff9f0a' }}>+ {remoteError}+ </p>+ ) : null}+ </section></div></aside></div>,