Skip to main content

AI-powered lab instrument connection assistant

Project description

hardware-connector

AI-powered CLI tool that helps engineers connect to lab instruments. It uses an LLM agent to diagnose connection issues, install dependencies, fix permissions, and generate working Python code — all from your terminal.

How it works

  1. Detects your OS, Python environment, USB devices, and VISA backends
  2. Loads device-specific knowledge (pinouts, quirks, known errors)
  3. Runs an AI agent loop that iteratively diagnoses and fixes connection issues
  4. Outputs working Python code that communicates with your instrument

Supported devices

Device Manufacturer Type
DS1054Z Rigol Oscilloscope

More devices coming soon.

Requirements

Installation

pip install hardware-connector

Setup

Set your Anthropic API key:

export ANTHROPIC_API_KEY='sk-ant-...'

Usage

Connect to a device

# Auto-detect connected device
hardware-connector connect

# Specify a device
hardware-connector connect --device rigol_ds1054z

# Auto-confirm all actions (no prompts)
hardware-connector connect --device rigol_ds1054z --yes

Other commands

hardware-connector list-devices     # Show supported devices
hardware-connector detect           # Show environment info + detected devices
hardware-connector config get       # View configuration
hardware-connector config set model claude-sonnet-4-20250514  # Change LLM model
hardware-connector version          # Print version

Options

Flag Description
--device, -d Device identifier (e.g. rigol_ds1054z)
--yes, -y Auto-confirm all actions
--model, -m LLM model to use
--max-iterations Max agent iterations (default: 20)

Configuration

# Disable telemetry
hardware-connector config set telemetry off

# Change default model
hardware-connector config set model claude-sonnet-4-20250514

Model resolution order: --model flag → HARDWARE_AGENT_MODEL env var → config DB → default.

License

Copyright (c) 2026 Yash Prakash. All rights reserved. See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hardware_connector-0.1.0.tar.gz (65.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hardware_connector-0.1.0-py3-none-any.whl (43.7 kB view details)

Uploaded Python 3

File details

Details for the file hardware_connector-0.1.0.tar.gz.

File metadata

  • Download URL: hardware_connector-0.1.0.tar.gz
  • Upload date:
  • Size: 65.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for hardware_connector-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4e6847d92873cc314b944c0799473cf87810c4b2eaf8a26c7135b2db2375e417
MD5 59aec0a7c2275885be089504f80fa898
BLAKE2b-256 e4ac88fcea642c74876650cd6f4d51b8ac8bc3dcaa91892eaf7fc9ac0bdfb9ed

See more details on using hashes here.

File details

Details for the file hardware_connector-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hardware_connector-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 619aa5dc817a7826315216a27a9c7dcbcdcd32f5fc093a1fa3d7347d5840bc4b
MD5 2abf92bb84ce2b2c07906a3082f2817b
BLAKE2b-256 b9bfd3bbae3190cccedd9e08ac0bb6eb4962c1fd32865e5e2d8af012561332c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page