MagicHandy

module
v0.1.0-alpha.66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: GPL-3.0

README

MagicHandy

MagicHandy is a free, open-source, local-first app for controlling The Handy with a customizable AI chatbot, hands-free modes, pattern library, and video funscript playback. App data stays on your machine, with cloud services available only when you enable them.

Download | Getting Started | Roadmap | Contributing

[!IMPORTANT] MagicHandy is still in early development (alpha). The current Windows build is v0.1.0-alpha.66 and remains unsigned.

Highlights

  • Local LLM chat through managed llama.cpp or an existing Ollama installation.
  • Immediate speed, stroke, and direction controls with safe Esc Stop.
  • Handy Cloud, browser Bluetooth, and Intiface support, plus a DG-LAB Coyote 3.0 alone or alongside the Handy (details).
  • Optional local speech input and output modules.
  • Guided Local only, LAN + local, and Public access, with automatic HTTPS certificates and explicit port instructions. Remote access requires accounts; session management and control permissions remain in Access settings. HTTPS setup explains client trust, public-port requirements, and the advanced reverse-proxy option.

Install On Windows

Download the installer package from the latest release:

  • Setup EXE: standard installation, shortcuts, and Windows integration.
  • Portable ZIP: no installer or Windows integration.

Build From Source

Open PowerShell in the folder where MagicHandy should be installed and paste:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$bootstrap = Join-Path $env:TEMP 'MagicHandy-bootstrap.ps1'
Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/MagicHandy/MagicHandy/main/bootstrap.ps1' -OutFile $bootstrap
powershell.exe -NoProfile -ExecutionPolicy Bypass -File $bootstrap

The bootstrap installs missing build prerequisites. Device, model runtime, and voice choices remain in the GUI. To update the same source installation later:

.\update.ps1

Developers with Go 1.26.10+ (Go 1.27 requires 1.27.3+) can run go run ./cmd/magichandy and open http://127.0.0.1:49717. See the Getting Started guide for manual setup, deployment flags, and validation commands.

Requirements

  • Windows x64 is the primary supported platform. Linux and macOS are best-effort.
  • A Handy with firmware v4 and API v3 access, or a supported linear actuator connected through Intiface Central.
  • A local LLM is needed for Chat and Autopilot, but not for manual, pattern, or video control. Models are not bundled. Easy setup checks your computer, picks a tested, checksum-verified model that fits and asks only how explicit chat should be and whether you want voice. Local chat needs an NVIDIA GPU: the recommended 12B model wants about 10 GB of graphics memory, and a smaller E4B model covers 6 to 8 GB cards. Settings > Chat > Model > Test model checks any model for common problems.

Safety And Privacy

  • Emergency Stop remains available on every screen, including read-only tabs.
  • All motion sources use the same bounded motion engine and selected limits.
  • The Handy connection key is private and excluded from UI readback, logs, diagnostics, and exports.
  • Remote access fails closed unless HTTPS and an enabled backend account are configured. Local only remains the default; LAN mode rejects public peers. Internet access requires the explicit Public setup and its port checklist.
  • Accounts gate entry but do not partition settings, chat, media, or libraries. A linked control profile does not impersonate another user or transfer the device-controller lease.
  • MagicHandy is for adults controlling an intimate device. Use it responsibly and at your own risk.

Project Status

Chat motion, Autopilot, Freestyle, personas, memory, pattern programs, video sync, voice providers, and model management are available for testing. Trusted Windows signing and broader release acceptance remain open work. See the implementation plan and risk register for current status.

Contributing

Changes use feature branches and merge into main through reviewed pull requests with green CI. Start with AGENTS.md, then use the validation guide.

Documentation

License

MagicHandy is licensed under the GNU General Public License v3.0 only. See LICENSE.

Directories

Path Synopsis
cmd
bluetooth-worker command
Command bluetooth-worker is the shared native Bluetooth helper.
Command bluetooth-worker is the shared native Bluetooth helper.
import-curated-patterns command
Command import-curated-patterns explicitly loads generated review files into a local library.
Command import-curated-patterns explicitly loads generated review files into a local library.
magichandy command
Command magichandy starts the MagicHandy local HTTP server.
Command magichandy starts the MagicHandy local HTTP server.
retarget-validate command
Command retarget-validate runs the Phase 7 live-device retarget checklist.
Command retarget-validate runs the Phase 7 live-device retarget checklist.
voice-elevenlabs-worker command
Command voice-elevenlabs-worker is the ElevenLabs cloud TTS worker (ADR 0007) speaking the ADR 0003 protocol on stdio.
Command voice-elevenlabs-worker is the ElevenLabs cloud TTS worker (ADR 0007) speaking the ADR 0003 protocol on stdio.
voice-openai-tts-worker command
Command voice-openai-tts-worker adapts OpenAI-compatible speech servers to MagicHandy's ADR 0003 protocol.
Command voice-openai-tts-worker adapts OpenAI-compatible speech servers to MagicHandy's ADR 0003 protocol.
voice-parakeet-worker command
Command voice-parakeet-worker is the ASR worker (ADR 0007) speaking the ADR 0003 protocol on stdio.
Command voice-parakeet-worker is the ASR worker (ADR 0007) speaking the ADR 0003 protocol on stdio.
voice-stub-worker command
Command voice-stub-worker is a model-free voice worker speaking the ADR 0003 protocol on stdio.
Command voice-stub-worker is a model-free voice worker speaking the ADR 0003 protocol on stdio.
internal
accounts
Package accounts owns authenticated user identities and opaque browser sessions.
Package accounts owns authenticated user identities and opaque browser sessions.
architecture
Package architecture contains tests for internal package dependency rules.
Package architecture contains tests for internal package dependency rules.
audit
Package audit owns bounded access/control history.
Package audit owns bounded access/control history.
ble
Package ble defines the byte-oriented contract between a device driver and an isolated native Bluetooth worker.
Package ble defines the byte-oriented contract between a device driver and an isolated native Bluetooth worker.
ble/bleworker
Package bleworker is the radio side of the native Bluetooth worker.
Package bleworker is the radio side of the native Bluetooth worker.
ble/workerclient
Package workerclient starts the shared native Bluetooth worker process and adapts it to ble.Connector and ble.Link.
Package workerclient starts the shared native Bluetooth worker process and adapts it to ble.Connector and ble.Link.
ble/workerproto
Package workerproto defines the NDJSON protocol between the MagicHandy core and the native Bluetooth worker process.
Package workerproto defines the NDJSON protocol between the MagicHandy core and the native Bluetooth worker process.
buttplugsim
Package buttplugsim is a minimal in-process Buttplug message spec v3 server for -simulate-motion review builds.
Package buttplugsim is a minimal in-process Buttplug message spec v3 server for -simulate-motion review builds.
chat
Package chat orchestrates local LLM turns into app-level semantic actions.
Package chat orchestrates local LLM turns into app-level semantic actions.
chatapp
Package chatapp coordinates conversation use cases above chat persistence.
Package chatapp coordinates conversation use cases above chat persistence.
companion
Package companion holds what every companion output shares when it follows the shared motion frame instead of moving a stroker: a bounded read-only copy of the frame, the clock that maps stream time to local time, and the coverage rule that turns a frame that ran out into silence and a reported starvation.
Package companion holds what every companion output shares when it follows the shared motion frame instead of moving a stroker: a bounded read-only copy of the frame, the clock that maps stream time to local time, and the coverage rule that turns a frame that ran out into silence and a reported starvation.
config
Package config defines startup defaults, versioned settings, and durable settings storage.
Package config defines startup defaults, versioned settings, and durable settings storage.
console
Package console draws MagicHandy's launch console: the window that opens with the app on Windows.
Package console draws MagicHandy's launch console: the window that opens with the app on Windows.
diagnostics
Package diagnostics records safe app traces and diagnostic exports.
Package diagnostics records safe app traces and diagnostic exports.
estim
Package estim models DG-LAB Coyote 3.0 electrical stimulation output: the documented Bluetooth packet formats, the user-owned strength handshake, and the conversion profile that turns the shared motion frame into two-channel pulse frames.
Package estim models DG-LAB Coyote 3.0 electrical stimulation output: the documented Bluetooth packet formats, the user-owned strength handshake, and the conversion profile that turns the shared motion frame into two-channel pulse frames.
handyble
Package handyble implements firmware-4 Handy RPC over a byte-oriented BLE link.
Package handyble implements firmware-4 Handy RPC over a byte-oriented BLE link.
httpapi
Package httpapi exposes the local browser UI and core HTTP API routes.
Package httpapi exposes the local browser UI and core HTTP API routes.
llm
Package llm provides local model provider adapters.
Package llm provides local model provider adapters.
logging
Package logging creates structured loggers for the MagicHandy core.
Package logging creates structured loggers for the MagicHandy core.
media
Package media owns MagicHandy's bounded local video catalog.
Package media owns MagicHandy's bounded local video catalog.
memory
Package memory owns the user-managed long-term memory store: short facts the user chooses to keep, inject into chat, disable, or remove.
Package memory owns the user-managed long-term memory store: short facts the user chooses to keep, inject into chat, disable, or remove.
modes
Package modes implements autonomous motion behaviors (Freestyle, continuous chat) as clients of the motion engine.
Package modes implements autonomous motion behaviors (Freestyle, continuous chat) as clients of the motion engine.
motion
Package motion will own semantic motion targets, plans, sampling, retargeting, and active motion state.
Package motion will own semantic motion targets, plans, sampling, retargeting, and active motion state.
netaccess
Package netaccess validates the installation's explicit network boundary.
Package netaccess validates the installation's explicit network boundary.
notices
Package notices stores explanatory-notice preferences in the app datastore.
Package notices stores explanatory-notice preferences in the app datastore.
openaiauth
Package openaiauth owns host-only OpenAI registrations and credentials.
Package openaiauth owns host-only OpenAI registrations and credentials.
patterns
Package patterns owns the durable motion pattern and program library, authoring transforms, import/export, and visible preference feedback.
Package patterns owns the durable motion pattern and program library, authoring transforms, import/export, and visible preference feedback.
persona
Package persona owns named personalization presets.
Package persona owns named personalization presets.
processtree
Package processtree keeps app-owned worker descendants within one lifecycle.
Package processtree keeps app-owned worker descendants within one lifecycle.
remote
Package remote relays intent from a signed-in phone to the desktop tab that holds control: play, pause or seek its open video, open another video, or open the chat and send it a message.
Package remote relays intent from a signed-in phone to the desktop tab that holds control: play, pause or seek its open video, open another video, or open the chat and send it a message.
startup
Package startup owns local launch coordination and bounded, credential-free startup diagnostics.
Package startup owns local launch coordination and bounded, credential-free startup diagnostics.
store
Package store owns MagicHandy's embedded SQLite datastore, schema migrations, transaction helpers, and legacy JSON import bookkeeping.
Package store owns MagicHandy's embedded SQLite datastore, schema migrations, transaction helpers, and legacy JSON import bookkeeping.
transport
Package transport defines Handy transport contracts and deterministic fake implementations used before real device integration exists.
Package transport defines Handy transport contracts and deterministic fake implementations used before real device integration exists.
updatecheck
Package updatecheck compares the running build with MagicHandy's latest compatible GitHub release.
Package updatecheck compares the running build with MagicHandy's latest compatible GitHub release.
validation
Package validation drives repeatable hardware validation workflows.
Package validation drives repeatable hardware validation workflows.
vibration
Package vibration converts the shared motion frame into a vibrator drive level.
Package vibration converts the shared motion frame into a vibrator drive level.
voice
Package voice implements the optional voice worker boundary (ADR 0003): worker process lifecycle, the core-owned request queue, and status.
Package voice implements the optional voice worker boundary (ADR 0003): worker process lifecycle, the core-owned request queue, and status.
voice/elevenlabsworker
Package elevenlabsworker implements the ADR 0003 worker protocol for the ElevenLabs cloud TTS API (ADR 0007's premium non-Python path).
Package elevenlabsworker implements the ADR 0003 worker protocol for the ElevenLabs cloud TTS API (ADR 0007's premium non-Python path).
voice/openaittsworker
Package openaittsworker adapts an OpenAI-compatible text-to-speech HTTP service to MagicHandy's ADR 0003 worker protocol.
Package openaittsworker adapts an OpenAI-compatible text-to-speech HTTP service to MagicHandy's ADR 0003 worker protocol.
voice/parakeetworker
Package parakeetworker implements the ADR 0003 worker protocol for ASR by proxying to an OpenAI-compatible transcription server.
Package parakeetworker implements the ADR 0003 worker protocol for ASR by proxying to an OpenAI-compatible transcription server.
voice/protocol
Package protocol defines the versioned voice worker wire format (ADR 0003): NDJSON frames exchanged between the core and a worker process over stdio.
Package protocol defines the versioned voice worker wire format (ADR 0003): NDJSON frames exchanged between the core and a worker process over stdio.
voice/stubworker
Package stubworker implements the ADR 0003 worker protocol with no models attached.
Package stubworker implements the ADR 0003 worker protocol with no models attached.
voice/workerhost
Package workerhost shares the bounded job lifecycle used by provider workers.
Package workerhost shares the bounded job lifecycle used by provider workers.
Package web embeds the static single-page application built by Vite into web/dist.
Package web embeds the static single-page application built by Vite into web/dist.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL