/tap-python-sdk:tap-getting-startedfrom tap-python-sdk
Guides through connecting a Tap wearable device (Tap Strap, Tap Strap 2, TapXR) via the tap-python-sdk. Covers install, pairing, connection order, and callback registration.
Ships in tap-python-sdk. 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.
connect() returns TapSDK or TapSDK2 from the firmware. Do not call these "SDK v1" / "SDK v2". Write one path that handles both unless the user names the device.
TapBand uses the same BLE API as TapXR and is coming soon (not for sale yet): https://www.tapwithus.com/tapband-waitlist/
Use a project virtual environment. Python 3.10 or newer.
The PyPI name is tap-python-sdk. The import name is tapsdk. Do not run pip install tapsdk.
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install tap-python-sdk
python -c "from tapsdk import connect; print('ok')"
Platform notes:
sudo apt-get install bluez-tools libbluetooth-dev, then sudo usermod -G bluetooth -a $USER and log in again. The device name must start with Tap.Copy scripts/quickstart.py into the project and run it. The required order is:
sdk = await connect(): attach. Notifications are not running yet.sdk.register_*(callback): register every callback before start().await sdk.start(): start notifications.start()):
hasattr(sdk, "set_input_mode"): await sdk.set_input_mode(InputModeController()). TapSDK boots in Text mode, which types on the OS keyboard and sends no tap events to the SDK.set_feature(DeviceFeatures.MODEL_DETECTION, True), then set_vision_sensor_model(ModelTypes.TAPPING) and set_vision_sensor_op_mode(VisionSensorOpModes.TRIGGER) (see the tap-vision-models skill).await asyncio.Event().wait().| Callback | TapSDK | TapSDK2 |
|---|---|---|
register_tap_events | cb(identifier, tapcode: int) | cb(identifier, [tapcode]) |
register_air_gesture_events | cb(identifier, gesture: int) (AirGestures) | cb(identifier, [code]) (UnifiedAirGestures) |
register_connection_events | cb(sdk) | cb(serial: bytes) |
register_disconnection_events | cb(client) | cb(client) |
| mouse / motion | register_mouse_events: cb(id, vx, vy, proximity) | register_imu_motion_data_events: cb(id, (dx, dy, is_mouse, [roll, pitch, yaw])) |
Normalize with:
def first(value):
return value[0] if isinstance(value, (list, tuple)) else value
Enable input with hasattr(sdk, "set_input_mode"), not a product version name.
await or block in them.asyncio.get_running_loop().create_task(...), or put the event on an asyncio.Queue (see tap-build-an-app).send_vibration_sequence([on_ms, off_ms, on_ms, ...]) gives haptic feedback (10-2550 ms per value, up to 18 values).await sdk.get_device_info() reads the name, firmware, and battery.| Problem | Fix |
|---|---|
| No device found / scan timeout | Turn the Tap on, pair it in OS Bluetooth settings, close Tap Manager and other apps that hold the connection, then retry. |
Connected but no tap events (TapSDK) | Set InputModeController() after start(). |
Connected but no tap events (TapSDK2) | Enable MODEL_DETECTION and set the TAPPING model with TRIGGER op mode. |
| Letters appear in the editor when tapping | Device is in Text mode. Set Controller mode. |
ConnectionError: GATT services not available | Turn Bluetooth off and on, unpair and pair again. |
| macOS: nothing happens, no error | Grant Bluetooth permission to the terminal / IDE, then restart it. |
| Linux: permission denied | Add the user to the bluetooth group and log in again. |
| Events stop after some seconds | Keep the process alive (asyncio.Event().wait()); do not exit main(). |
Debug logging: logging.basicConfig(level=logging.INFO); logging.getLogger("tapsdk").setLevel(logging.DEBUG).
tap-tapping, tap-vision-models, tap-imu-motion, tap-raw-sensors, tap-knob, tap-dpad, tap-build-an-appWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tapwithus/tap-python-sdk --plugin tap-python-sdk8 skills in this plugin
/tap-build-an-appBuild a complete app or interactive experience controlled by a Tap - games, browser pages, presentations, media control, keyboard shortcuts, or creative tools. Use when the user asks to "build", "make", or "create" something with their Tap, especially if they are not a developer./tap-dpadBuild a D-Pad style controller with a Tap - swipes for directions, short pinches to select, pinch-hold that locks into rotate (twist) or drag (move) mode, fist-hold to hide. Use for D-Pad, menu navigation, select and move, drag and drop, rotate objects, or game controls with gestures./tap-imu-motionUse Tap hand motion - IMU motion data (dx, dy, roll, pitch, yaw) and mouse events - to move a cursor, steer, tilt, or rotate things. Use for air mouse, pointer, cursor control, tilt, orientation, euler angles, roll/pitch/yaw, or motion-driven UI./tap-knobBuild a virtual knob with a Tap - hold a pinch and twist the wrist to turn a value up or down (volume, brightness, zoom, scroll, color). Use for knob, dial, twist, rotate-to-adjust, slider, volume control, or continuous value control./tap-raw-sensorsStream raw accelerometer and gyroscope samples from a Tap (InputModeRaw or RAW_IMU_DATA), set sensitivity and scaling, log to CSV, and plot. Use for raw sensors, raw IMU, accelerometer, gyro, data logging, datasets, custom gesture recognition, or research./tap-tappingDecode Tap tapcodes (which fingers tapped), map finger combinations to app actions or keyboard shortcuts, and give haptic feedback. Use for tapping, finger combos, chords, tap-to-action, shortcuts, input modes, or the TAPPING vision model.Other plugins' skills for the same job