Skip to content

wavyrai/MacSpark

Repository files navigation

MacSpark

An independent operator guide for using a Mac as the control surface for an NVIDIA DGX Spark. MacSpark documents secure networking, remote development, local model serving, optional routing, file exchange, desktop access, service lifecycle, and recovery.

Documentation review date: 2026-07-11. Hardware-dependent procedures remain subject to validation on the operator's exact DGX OS and runtime versions.

Warning

This is a manual and a set of reviewed examples, not an installer. Commands in this repository can change authentication, networking, packages, containers, file sharing, and remote access. Read each phase, keep a console recovery path, and adapt placeholders before running anything.

flowchart LR
  mac[Mac] -->|Tailscale or verified SSH| dgx[DGX Spark]
  mac -->|OpenAI-compatible client| gateway[Optional gateway]
  gateway --> runtime[vLLM or another runtime]
  mac -->|SMB, VNC, remote editor| services[Optional services]
  dgx --- runtime
  dgx --- gateway
  dgx --- services
Loading

What the guide covers

Capability Recommended boundary Start here
Architecture and capability selection One optional layer at a time Architecture
SSH and private reachability Verified host key plus Tailscale policy Networking and SSH
NVIDIA container baseline Read-only checks before changes Preflight
OpenAI-compatible local inference Pinned, reviewed vLLM container Model serving
Local and cloud model routing Authenticated LiteLLM gateway Gateway
Finder, Zed, and remote desktop Explicit opt-in per service Mac integration
Persistence, updates, and rollback One service at a time Operations
Evidence-first fault isolation Client-to-service layers Troubleshooting

The engineering patterns chapter extracts the most reusable ideas from the original operational scripts: staged SSH hardening, safe bind resolution, plan-before-mutation launches, transactional service replacement, managed configuration includes, PID identity checks, token separation, and deliberate service handoff.

Recommended path

  1. Complete NVIDIA's official first-boot guide and retain local console access.
  2. Run the read-only preflight on the Mac and DGX.
  3. Establish the private network and SSH path.
  4. Bring up exactly one model runtime and test it locally on the DGX.
  5. Test the same endpoint from the Mac, then add optional services individually.
  6. Record observed versions and rollback steps before enabling persistence.

MacSpark deliberately avoids a universal copy-and-paste installation command. DGX OS, container images, model support, and client schemas change. Commands that are version-sensitive link to the current official source and use obvious placeholders such as <dgx-host> and <reviewed-image>.

Agent skills

Repository-local skills live under .agents/skills:

  • plan-macspark assesses a requested setup and produces a phased plan with changes, validation, and rollback.
  • diagnose-macspark investigates connectivity and service failures using read-only evidence before suggesting a minimal fix.

Agents working in this repository must also follow AGENTS.md. The skills do not grant permission to run privileged or destructive commands.

Examples

The examples directory contains small templates for SSH, Tailscale grants, Zed port forwarding, LiteLLM, and a systemd user service. They are reference material, not maintained deployment artifacts. Review the linked upstream documentation and replace every placeholder.

Scope and status

The guide targets a current macOS controller and an ARM64 NVIDIA DGX Spark running DGX OS. It assumes the operator owns or administers both machines. The procedures are intentionally conservative and still require hardware verification on the operator's exact OS, driver, runtime, model, and network.

Not in scope:

  • public-internet exposure;
  • unattended OS provisioning or upgrades;
  • a hosted control plane or telemetry;
  • redistributing models or third-party container images;
  • claiming that every model or client is compatible with every release.

Primary references

Contributing and license

Corrections with exact versions and observed output are especially useful. See CONTRIBUTING.md and SECURITY.md.

MacSpark is available under the MIT License. See NOTICE.md for attribution and trademark notices.

About

Independent operator guide for securely using a Mac with NVIDIA DGX Spark.

Topics

Resources

License

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages