/media-os:gphoto2-tether [action]from media-os
Tether DSLR/mirrorless cameras via USB or Wi-Fi (PTP/IP) using gphoto2. Supports capture, live-view, configuration, timelapse, and bulk download for Canon, Nikon, Sony, and more.
Ships in media-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Context: $ARGUMENTS
tether.py detect)tether.py shoot --download)tether.py preview)tether.py movie)tether.py bulk-download)tether.py config-*)tether.py timelapse)tether.py ptpip)media-exiftool after capture if you need to tag EXIF / IPTC / XMP.ffmpeg-transcode / moviepy after download.uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py detect
Expands to:
gphoto2 --auto-detect
Output is a table of "Model | Port" pairs. Port is usually usb:NNN,MMM (bus, device). Use tether.py config-list afterwards to confirm config keys exist for that camera.
Shoot one frame, keep it on the card:
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py shoot
Shoot and pull to the current directory:
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py shoot --download
Burst of 10 shots, all downloaded:
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py shoot --download --count 10
Under the hood (single shot):
gphoto2 --capture-image-and-download --filename "%Y%m%d-%H%M%S-%n.%C"
The %C specifier uses the file's actual extension (JPG, CR2, NEF, ARW, ...).
Dump a live-view JPEG to stdout once:
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py preview --once --out frame.jpg
Stream live-view at ~10 fps as a sequence to a directory:
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py preview --fps 10 --dest ./live/
Under the hood:
# Single frame:
gphoto2 --capture-preview --filename frame.jpg --force-overwrite
# Loop: gphoto2 --shell in a pipe, or repeated --capture-preview.
Note: live-view requires mirror-up (DSLR) or EVF-mode (mirrorless). Cameras that only expose live-view through the proprietary USB mode may not work.
Start movie record for N seconds then stop:
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py movie --duration 30
Expands to:
gphoto2 --capture-movie=30s
Captures to the card; use bulk-download afterwards to pull the MOV/MP4 off.
Pull every file on the card (leaves originals on card):
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py bulk-download --dest ./ingest/
Expands to:
cd ./ingest && gphoto2 --get-all-files --skip-existing
Add --delete to wipe the card after successful download.
List every config key the camera exposes:
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py config-list
Expands to gphoto2 --list-config.
Get one key's current value + allowed values:
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py config-get --key /main/capturesettings/shutterspeed
Expands to gphoto2 --get-config /main/capturesettings/shutterspeed.
Set a value:
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py config-set --key /main/imgsettings/iso --value 400
Expands to gphoto2 --set-config /main/imgsettings/iso=400.
Key names differ per manufacturer. Read references/config-keys.md for the Canon / Nikon / Sony mapping (e.g. Canon uses aperture, Nikon uses f-number).
Shoot 120 frames, one every 5 seconds, into ./tl/:
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py timelapse \
--interval 5 --count 120 --dest ./tl/
Under the hood the script loops:
gphoto2 --capture-image-and-download --filename "./tl/%Y%m%d-%H%M%S-%n.%C"
# sleep 5
Convert the result to a video afterwards with ffmpeg-frames-images.
Modern Nikon / Canon bodies expose PTP over Wi-Fi. Pair the camera once in its own menu (store an entry in ~/.gphoto/), then:
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py ptpip --host 192.168.1.120 -- shoot --download
The trailing -- separates the ptpip host args from the nested subcommand and its options. Expands to:
gphoto2 --port ptpip:192.168.1.120 --capture-image-and-download
Port defaults to 15740 (PTP/IP standard). Override with --port 15741.
http://gphoto.org uses HTTP only — their HTTPS cert has long been invalid. Don't curl https://gphoto.org/... in scripts; use http:// or pin to the mirror. Documentation URLs: manual at http://gphoto.org/doc/manual/, API at https://gphoto.org/doc/api/, supported-cameras list at http://gphoto.org/proj/libgphoto2/support.php.gphoto2-cam-conf and gphoto2-config DO NOT EXIST. Camera config is a subcommand family of the single gphoto2 binary: --list-config, --get-config, --set-config, --set-config-index, --set-config-value. Correct the user if they reference a separate binary./main/capturesettings/aperture on Canon is /main/capturesettings/f-number on Nikon. ISO is commonly /main/imgsettings/iso (both). Always run config-list first on an unknown body.PTPCamera (or the Image Capture app) grabs the camera on USB connect. Run killall PTPCamera before gphoto2, or disable ~/Library/Image Capture/Devices/ hot-plug handlers. Linux doesn't have this problem.udev/ rules; without them you get Claiming USB device: Could not claim the USB device. Install via apt install libgphoto2-dev or copy /lib/udev/rules.d/40-libgphoto2.rules from the source tree, then udevadm control --reload.--capture-preview is not supported on every camera. Some cameras (older Canon Rebels, most Sony A7 series via USB) only expose preview over their proprietary protocol. If you get Operation not supported here, the camera needs to be put in movie/live-view mode manually.~/.gphoto/. Delete that file to re-pair; some cameras refuse a second connection without forgetting the host on the camera menu too.--capture-image-and-download may write to the card first AND pull the file. Some cameras can be set to "sdram" (memory-only) via /main/settings/capturetarget=0; others force card writes. To save both: leave default. To skip card: try capturetarget=0 first.%n counter in --filename template is per-gphoto2-invocation, not per-camera. Start a fresh invocation and your numbering resets. Use %Y%m%d-%H%M%S timestamps for monotonicity across runs.capture-preview loops drains the battery fast. Use a dummy battery / DC coupler for long sessions.input( for confirmations in scripts. gphoto2 itself doesn't prompt; keep the wrapper non-interactive.uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py detect
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py shoot --download --count 100 \
--template "shoot-%Y%m%d-%H%M%S-%04n.%C"
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py config-set --key /main/capturesettings/aperture --value 8
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py config-set --key /main/imgsettings/iso --value 200
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py config-set --key /main/capturesettings/shutterspeed --value 1/125
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py shoot --download
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py timelapse \
--interval 60 --count 1440 --dest ./24h-tl/
Then assemble with ffmpeg: ffmpeg -framerate 30 -pattern_type glob -i '24h-tl/*.JPG' -c:v libx264 -crf 20 timelapse.mp4.
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py preview --fps 1 --duration 300 --dest ./lv/
uv run ${CLAUDE_SKILL_DIR}/scripts/tether.py ptpip --host 192.168.1.50 -- bulk-download --dest ./ingest/
Could not claim the USB deviceCause: Another process (PTPCamera on macOS, gvfs-gphoto2-volume-monitor on GNOME) is holding the device.
Solution: macOS: killall PTPCamera. GNOME: systemctl --user stop gvfs-gphoto2-volume-monitor.
Unknown modelCause: Camera is in wrong USB mode or libgphoto2 is too old for that body.
Solution: Check camera menu for "PC Remote" / "PTP" / "MTP" and pick PTP. Update libgphoto2 (brew upgrade libgphoto2 / apt install libgphoto2-6).
bad parameter on --set-configCause: The value isn't in the allowed list for that key.
Solution: config-get --key <key> shows the allowed values (Choice: 0 Auto, Choice: 1 100, ...). Pass the exact string or the index via --set-config-index.
--capture-preview returns "Operation not supported"Cause: Camera doesn't expose live-view over PTP, or is in the wrong mode. Solution: Put camera into movie / live-view mode manually; for Sony, switch mode to "PC Remote". Some bodies only give preview when the mirror is up (press live-view button on body).
Cause: USB driver bug — libgphoto2 leaves file handle open. Solution: Upgrade libgphoto2 to >= 2.5.28. Or run each shot in a fresh subprocess (the wrapper does this by default).
Cause: Camera hasn't saved the host, or Wi-Fi is on wrong SSID.
Solution: Re-pair in camera menu; verify camera IP via ping; confirm port 15740 is open (no firewall).
references/config-keys.md. Load when user asks about shutter/aperture/ISO keys.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
110 skills in this plugin
/audio-coreaudioManipulate macOS audio at the Core Audio HAL layer: afinfo (audio file metadata), afplay (play), afconvert (convert format/rate/bit-depth/channel layout), say (TTS), SwitchAudioSource (change default input/output/system device — brew install switchaudio-osx), audiodevice CLIs (npm/Go variants), AppleScript via osascript to drive System Preferences Sound. HAL plugins at /Library/Audio/Plug-Ins/HAL/ load virtual drivers (BlackHole 2ch/16ch/64ch, Loopback, Background Music). Aggregate Device (drift-corrected multi-in) and Multi-Output Device via Audio MIDI Setup.app or AudioHardwareCreateAggregateDevice. Use when the user asks to change default macOS audio device, route audio between apps on Mac, install BlackHole, build an Aggregate Device, convert audio files with afconvert, or script Mac audio from the terminal.
/audio-jackRoute professional low-latency audio with JACK Audio Connection Kit (jackaudio.org): jackd server (ALSA/CoreAudio/PortAudio/ASIO backends), jack_control (D-Bus JACK2 config), jack_lsp (list ports/connections), jack_connect/jack_disconnect (manage links), jack_cpu_load, jack_samplerate, jack_bufsize (runtime period size), jack_transport, jack_rec (multi-channel WAV recording), jack_iodelay (round-trip latency), jack_wait, jack_midi_dump. JACK1 C maintenance vs JACK2 C++ multicore. Modern Linux swaps jackd for PipeWire's libjack shim — same client API. JackTrip for uncompressed multichannel UDP over the Internet. Use when the user asks to run a JACK server, connect audio clients, measure roundtrip latency, record from JACK ports, set JACK period size, or bridge JACK over the network with JackTrip.
/audio-pipewireRoute and introspect Linux audio/video/MIDI graphs with PipeWire: pw-cli (interactive object/module control), pw-dump (full graph JSON with --monitor), pw-link (list/create/destroy port links), pw-cat / pw-play / pw-record (playback+record), pw-top (real-time DSP load + xrun viewer), pw-metadata (shared metadata store), pw-loopback (source/sink bridges), pw-midiplay/pw-midirecord, pw-jack (JACK client compat shim), pw-mon, pw-profiler. WirePlumber session manager handles routing/defaults/profiles. Replaces PulseAudio (via pipewire-pulse) and JACK (via libjack.so shim) simultaneously. Use when the user asks to route Linux audio, link two apps, list audio devices on Linux, create a loopback, record system audio, monitor the audio graph, or set up a virtual audio device on modern Linux.
/audio-wasapiManipulate Windows audio via WASAPI (learn.microsoft.com/coreaudio): SoundVolumeView + svcl.exe (NirSoft — set default device, per-app volumes, save/load profiles), AudioDeviceCmdlets PowerShell module (Get-AudioDevice, Set-AudioDevice, Get-AudioDevicePlaybackMute), nircmd setdefaultsounddevice. Shared mode (Windows engine resamples all streams to endpoint fixed format) vs Exclusive mode (bit-perfect, audiophile, ~sub-3ms latency with IAudioClient3 + event-driven callbacks). WASAPI then MMDevice then Audio Engine (audiodg.exe) then WDM/KS. ASIO is Steinberg's parallel stack bypassing Windows audio. Virtual audio devices: VB-Audio Virtual Cable, VoiceMeeter/Banana/Potato. Use when the user asks to change Windows default audio device, route app audio, use VoiceMeeter, install VB-Cable, set a specific device from PowerShell, or enable exclusive-mode low-latency output.
/cv-mediapipeGoogle MediaPipe Tasks API (current supported, NOT legacy mediapipe.solutions): Vision Tasks (Face Detector, Face Landmarker, Face Stylizer, Hand Landmarker, Gesture Recognizer, Pose Landmarker, Holistic Landmarker, Object Detector, Image Classifier, Image Segmenter, Interactive Segmenter, Image Embedder, Image Generator), Audio Tasks (Audio Classifier), Text Tasks (Text Classifier, Text Embedder, Language Detector), GenAI Tasks (LLM Inference — on-device Gemma/Phi-2/Falcon/StableLM). Three run modes: IMAGE, VIDEO, LIVE_STREAM (async). Python: mediapipe.tasks.python.vision/audio/text/genai. Docs at ai.google.dev/edge/mediapipe/solutions. Model Maker for transfer learning. Use when the user asks to detect pose/face/hand landmarks, classify an image, run a body-pose model, segment people, recognize gestures, do on-device LLM inference via MediaPipe, or build a mobile/embedded CV pipeline.
/cv-opencvComputer vision on images + video with OpenCV (docs.opencv.org/4.x/): core (Mat / ndarray, linalg), imgproc (filtering, morphology, geometric transforms, color conv, histograms, contours), imgcodecs (imread/imwrite — PNG, JPEG, TIFF, WebP, EXR), videoio (VideoCapture / VideoWriter — FFMPEG, GStreamer, V4L2, AVFoundation, MSMF backends), calib3d (camera calibration, stereo, solvePnP, homography), features2d (ORB, AKAZE, BRISK, KAZE, SIFT), objdetect (FaceDetectorYN, FaceRecognizerSF, HOG, ArUco, QRCode), dnn (ONNX/TF/Caffe/Darknet, CUDA + OpenVINO + Vulkan backends, model zoo at github.com/opencv/opencv_zoo), photo (inpainting, denoising, HDR Debevec/Robertson), stitching (panorama), video (optical flow Farneback/LK/DIS, BackgroundSubtractorMOG2/KNN, tracking KCF/CSRT/MIL/Nano/Vit/DaSiamRPN). Python-first via cv2. Use when the user asks to detect faces, track objects, run YOLO inference, capture + process webcam frames, calibrate a camera, stitch a panorama, or use OpenCV from Python/C++.
npx claudepluginhub damionrashford/media-os --plugin media-osOther plugins' skills for the same job