Cross-platform Crestron processor provisioning console
Project description
Crestron Processor Setup
Cross-platform interactive console for Crestron processor provisioning. Discovers devices on the LAN, creates accounts, configures settings, and manages firmware — all from a terminal menu.
Features
- Device Discovery — CIP protocol broadcast (UDP 41794) finds Crestron processors on the local network, with first-boot detection
- Interactive Console — Arrow-key menus, checkbox device selection, animated progress tracking
- Cross-Platform — Python + paramiko (works on macOS, Linux, and Windows — no
expectdependency) - Firmware Management — Download firmware from configurable URLs and upload to processors
- Firmware Audit — Scan discovered devices, compare firmware versions, report which need updates (read-only)
- Batch Provisioning — Import device lists from CSV or YAML files for bulk provisioning with per-device credentials and profiles
- Certificate Management — Generate CSRs, install CA-signed certs, configure TLS settings, and bulk-deploy wildcard certs
- IP Table Management — View, add, remove, and clear master/peer CIP entries on a device with an interactive submenu
- Network Configuration — Set static IP or DHCP per device during provisioning
- Restore & Erase — Factory-reset devices with
initialize+restorecommands - 6-Phase Provisioning:
- Account Creation — Detects first-boot state; creates admin account or verifies existing credentials
- Public Key Upload — SFTP
.pubkey to/user/ - Configuration — Timezone, NTP, web ports, login lockout policy, FIPS mode
- Network Configuration — DHCP or static IP with subnet, gateway, and DNS
- Reboot — Sends
REBOOTand polls until back online - Firmware Upload — Version comparison; uploads
.pufto/firmware/only if newer
Installation
Homebrew (macOS)
brew install mikejobson/tap/crestron-setup
pip (all platforms)
pip install crestron-setup
Standalone Binary
Download the latest binary from GitHub Releases:
| Platform | Download |
|---|---|
| macOS | crestron-setup-macos |
| Windows | crestron-setup-windows.exe |
# macOS — make executable and move to PATH
chmod +x crestron-setup-macos
sudo mv crestron-setup-macos /usr/local/bin/crestron-setup
Scoop (Windows)
scoop bucket add crestron https://github.com/mikejobson/scoop
scoop install crestron-setup
From Source
git clone https://github.com/mikejobson/Crestron-Processor-Setup.git
cd Crestron-Processor-Setup
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e .
Requirements
- Python 3.10+ (pip and source installs only — standalone binaries are self-contained)
- Root/admin privileges for device discovery (UDP broadcast)
Usage
# Launch the interactive console
crestron-setup
# Discovery requires elevated privileges
sudo crestron-setup
# If installed via pip / from source
python -m crestron_setup
sudo .venv/bin/python -m crestron_setup
Configuration
Settings are stored in ~/.config/crestron-setup/config.yaml (macOS/Linux) or %APPDATA%\crestron-setup\config.yaml (Windows). A local config.yaml in the working directory takes priority.
Copy config.example.yaml to get started. Key settings:
| Setting | Default | Description |
|---|---|---|
timezone |
33 (GMT Standard Time) |
Crestron timezone ID |
ntp_server |
pool.ntp.org |
NTP server address |
pubkey_file |
~/.ssh/id_rsa.pub |
SSH public key — local path or URL (e.g. https://github.com/user.keys) |
firmware_dir |
~/Downloads |
Local firmware directory (fallback) |
web_port |
8080 |
Web server port |
secure_web_port |
8443 |
Secure web server port |
firmware_urls |
(empty) | Per-model firmware download URLs |
firmware_server |
(empty) | Firmware server API base URL (see below) |
default_username |
(empty) | Pre-filled username for SSH connection prompts |
ssh_key_auth |
true |
Try SSH key auth (agent + key files) before prompting for password |
SSH Key Authentication
When ssh_key_auth is enabled (default), the tool tries key-based authentication before asking for a password. This works with:
- SSH agent — macOS Keychain, ssh-agent, 1Password, etc.
- Key files —
~/.ssh/id_rsa,~/.ssh/id_ed25519, etc.
Since provisioning already uploads public keys to devices via ADDPUBKEYTOUSER, subsequent connections can authenticate automatically — no password needed.
Set default_username in your config to skip the username prompt too:
default_username: "mike"
ssh_key_auth: true
When connecting, you'll be asked whether to enter a password or use key auth only. If key auth fails, the tool falls back to password authentication.
Firmware Server API
If you have a firmware server that exposes a JSON metadata API, set firmware_server to the base URL. The app queries {firmware_server}/{MODEL}/latest.json and expects:
{
"version": "2.8006.00284.01",
"originalFileName": "mc4_2.8006.00284.01.puf",
"fileHash": "8377fadbb1318853...",
"fileSizeBytes": 318169239,
"compatibleModels": ["MC4"],
"downloadUrl": "https://storage.googleapis.com/...signed-url..."
}
This enables version comparison without downloading the full firmware file, and verifies the SHA256 hash after download. The server is checked before falling back to per-model firmware_urls.
Batch Provisioning
Import a list of devices from a CSV or YAML file for bulk provisioning. Supports per-device credentials and profile assignments.
CSV format (examples/batch.csv):
hostname,username,password,profile
192.168.1.10,admin,admin,default
192.168.1.20,,,touch-panel
192.168.1.30,,,
YAML format (examples/batch.yaml):
devices:
- hostname: 192.168.1.10
username: admin
password: admin
profile: default
- hostname: 192.168.1.20
profile: touch-panel
- hostname: 192.168.1.30
hostname(orip/host) is requiredusername,password,profileare optional — devices without them use shared credentials/profile prompted at runtime- Supports both provision and dry-run modes
- Runs all devices in parallel with live progress display
Certificate Management
Manage SSL/TLS certificates on Crestron devices from the main menu:
- View Status — Shows current SSL mode (SELF/CA), installed webserver, intermediate, and root certificates
- Generate CSR — Creates a Certificate Signing Request on the device with SANs, downloads the
.csrfile via SFTP - Install Certificate — Uploads
.pem/.cer/.pfxfiles, installs into the correct stores (WEBSERVER, INTERMEDIATE, ROOT), activates CA-signed SSL - Deploy Certificate — Available from the Discover flow to deploy the same cert (e.g. wildcard) to multiple devices in parallel
- SSL/TLS Settings — Configure minimum TLS version, SSL verification, and self-signed cert auto-reboot
Save CSR defaults in your config to avoid re-entering them for every device:
csr_defaults:
country: "GB"
state: "England"
locality: "London"
organization: "Acme Corp"
organizational_unit: "AV"
email: "av@acme.com"
certificates:
cert_file: "/path/to/wildcard.pfx"
intermediate_file: "/path/to/intermediate.pem"
root_ca_file: "/path/to/root-ca.pem"
IP Table Management
View and manage CIP IP table entries on a device. Available from the main menu ("IP Table Management") or the Discover flow ("IP Table" action on a single device).
- View IP Table — Shows all entries in a formatted table with coloured online/offline status
- Add Master Entry — Add a master (gateway) entry with CIP ID and hostname or IP
- Remove Master Entry — Select entries to remove from a checkbox list
- Add Peer Entry — Add a peer entry with CIP ID, hostname/IP, and program number
- Remove Peer Entry — Select peer entries to remove
- Clear IP Table — Clear all entries for a program (with confirmation)
- Save to Flash — Persist changes so they survive reboots
Configuration Profiles
Profiles let you customise provisioning for different device types. The top-level settings act as the default; named profiles override specific fields.
profiles:
touch-panels:
models: ["TSW-*", "TS-*"] # Glob patterns for auto-matching
web_port: false # false = skip this command
secure_web_port: false
fips_mode: false
extra_commands: # Custom commands after standard config
- command: "VKENABLE OFF"
label: "Disable virtual key bar"
locked-down:
models: ["CP4*", "MC4*"]
fips_mode: "ON" # Override a value
user_login_attempts: 3
user_lockout_time: "30m"
Key concepts:
false= skip this command entirely (it won't be sent to the device)- Omitted = inherit the default value
models= glob patterns matched againstdevice.modelfor auto-suggestionextra_commands= custom CLI commands run after standard phase 3 configuration
Profiles are managed interactively via Settings → Manage Profiles, or edited directly in config.yaml.
Files
| Path | Purpose |
|---|---|
crestron_setup/ |
Python package — CLI, discovery, SSH, provisioning, firmware |
config.example.yaml |
Template configuration file |
setup_processor.sh |
Legacy bash script (macOS only, requires expect) |
crestron_command_reference.md |
CLI command reference (414 commands) from a live CP4 |
example commands.txt |
Reference log of a manual setup session |
Legacy Bash Script
The original setup_processor.sh is still included for reference. It requires macOS with expect and takes a single hostname argument:
./setup_processor.sh <hostname-or-ip>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crestron_setup-1.1.0.tar.gz.
File metadata
- Download URL: crestron_setup-1.1.0.tar.gz
- Upload date:
- Size: 183.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16d0c47d1181b8f383a776c45eb4bd782925025051b3cc17aba62620e06d0a46
|
|
| MD5 |
4ad9d067cd854f7f2f1af593a745aabf
|
|
| BLAKE2b-256 |
ac6c4e63649673952175e5206baf876fb994b4b7c532027bf35b4cb2d7c797d3
|
Provenance
The following attestation bundles were made for crestron_setup-1.1.0.tar.gz:
Publisher:
release.yml on mikejobson/Crestron-Processor-Setup
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crestron_setup-1.1.0.tar.gz -
Subject digest:
16d0c47d1181b8f383a776c45eb4bd782925025051b3cc17aba62620e06d0a46 - Sigstore transparency entry: 1523921575
- Sigstore integration time:
-
Permalink:
mikejobson/Crestron-Processor-Setup@c980b493b5f1734285ac21a55c9bbad8364be951 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/mikejobson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c980b493b5f1734285ac21a55c9bbad8364be951 -
Trigger Event:
push
-
Statement type:
File details
Details for the file crestron_setup-1.1.0-py3-none-any.whl.
File metadata
- Download URL: crestron_setup-1.1.0-py3-none-any.whl
- Upload date:
- Size: 126.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adc512070e0dfcd43324382cabc7ff78c3bdcb73c333074532acdcf347712ee0
|
|
| MD5 |
40512c45cb1eca82a631622eba67c95f
|
|
| BLAKE2b-256 |
68ff92ec1fa9801afda67c18b4436eb03173e19e045b930af9c24d16324bdfd8
|
Provenance
The following attestation bundles were made for crestron_setup-1.1.0-py3-none-any.whl:
Publisher:
release.yml on mikejobson/Crestron-Processor-Setup
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crestron_setup-1.1.0-py3-none-any.whl -
Subject digest:
adc512070e0dfcd43324382cabc7ff78c3bdcb73c333074532acdcf347712ee0 - Sigstore transparency entry: 1523921652
- Sigstore integration time:
-
Permalink:
mikejobson/Crestron-Processor-Setup@c980b493b5f1734285ac21a55c9bbad8364be951 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/mikejobson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c980b493b5f1734285ac21a55c9bbad8364be951 -
Trigger Event:
push
-
Statement type: