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
- Detects your OS, Python environment, USB devices, and VISA backends
- Loads device-specific knowledge (pinouts, quirks, known errors)
- Runs an AI agent loop that iteratively diagnoses and fixes connection issues
- Outputs working Python code that communicates with your instrument
Supported devices
| Device | Manufacturer | Type |
|---|---|---|
| DS1054Z | Rigol | Oscilloscope |
More devices coming soon.
Requirements
- Python 3.10+
- An Anthropic API key
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.
Metadata
Release files for hardware-connector 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hardware_connector-0.2.0.tar.gz | 86.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hardware_connector-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 144.7 kB
Release files / hardware_connector-0.2.0.tar.gz
| Download URL | hardware_connector-0.2.0.tar.gz |
|---|---|
| Size | 86.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed152f1986d193557eac8de30b4f4ef383acd345ed4fd7eedaf493f141f789a8
|
|
BLAKE2b-256 checksum How to use checksums |
c10209758b4013a5e5886716579595f05ad9704a955c1972f709b014114fae9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / hardware_connector-0.2.0-py3-none-any.whl
| Download URL | hardware_connector-0.2.0-py3-none-any.whl |
|---|---|
| Size | 58.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
566b919d0d8a321164af39dcfba788abffc0b14c23063dda4347b9f4034ce54b
|
|
BLAKE2b-256 checksum How to use checksums |
3a98710e8ec22d1be2f9cfdf69212c0ed64a5822ca60512bc434b61fdff2acbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|