H388X-CLI
A command-line interface to manage your ZTE H388X modem (TIM HUB+),
firmware family AGZHM_* (tested on AGZHM_1.4.4).
Inspect modem status and manage supported settings from the terminal. Commands return readable tables or JSON for scripts. Firmware support is specific to the AGZHM family. The CLI does not support every H388X firmware.
Quick start
For versions listed on PyPI, use uv tool install h388x-cli or uvx --from h388x-cli h388x --help.
You need Python 3.10 or later, uv and Git. Try the released CLI's help without a persistent installation or a modem session:
uvx --from "git+https://github.com/alsd4git/h388x-cli.git@v0.2.1" h388x --help
For regular use, install the same released tag:
uv tool install "git+https://github.com/alsd4git/h388x-cli.git@v0.2.1"
h388x --help
Modem commands require access to the local network and WebUI administrator credentials.
Firmware differences matter; see the AGZHM firmware notes.
Set H388X_PASSWORD in your process environment or a private configuration file
using the configuration guide. H388X_HOST defaults to
192.168.1.1; set it if your modem uses another address. Avoid putting the
password in command-line arguments or shell history.
Read device information without changing modem settings:
h388x --json info
The raw output includes your serial number. Keep it private. For a shareable subset, the example below uses jq to replace the serial and omit all other fields. Captured from a real H388X on 2026-10-27; only the serial was replaced, and no network settings were changed:
$ h388x --json info | jq '{model, serial_number: "REDACTED", software_version}'
{
"model": "H388X",
"serial_number": "REDACTED",
"software_version": "AGZHM_1.4.4"
}
Continue with the command reference or the WebUI coverage inventory. This static walkthrough uses the real captured output above.
Command reference
Start with these inspection commands:
| Command | Purpose |
|---|---|
h388x info |
Model and firmware information. |
h388x health |
Combined modem status overview. |
h388x stats |
DSL summary; --watch N refreshes it. |
h388x wan |
WAN connections and addressing. |
h388x devices |
Clients and DHCP reservations. |
h388x wifi |
Radio and SSID status. |
h388x capabilities |
Firmware capability and coverage inventory. |
Put --json before the subcommand, for example h388x --json wan.
For supported writes, options, and discovery commands, use the
full command reference and
WebUI coverage inventory.
Sensitive local output
Router output may contain serial numbers, MAC/IP addresses, device names or
credentials. Keep discovery reports and configuration backups private.
devices export, discover and configuration backup commands refuse to
overwrite existing files. Custom output paths still need local ignore rules.
--json changes formatting; it does not authorize writes. Deletion and reboot
commands require explicit confirmation or --yes in non-interactive mode.
Read the output-safety details
and error-handling guide before automation.
Installation
The quick start uses the released Git tag. The guide also covers one-off execution, SSH installation and release assets. For source development and shell completion, see local development and shell completion.
Configuration
See the configuration guide for environment variables, private configuration files, saved sessions and the optional real-device smoke test. A modem session is a credential; do not commit it.
Usage
The usage recipes include JSON output, live status refresh, read-only inspection and operational commands. The preview image above comes from the redacted device-information capture reproduced in the quick start, recorded on 2026-10-27. It is a static capture, not a live status display.
Notes on AGZHM firmware quirks
Support is firmware-specific. In particular, renew-ip is not available on
the observed AGZHM_1.4.4 firmware; rebooting instead interrupts connectivity.
Read the firmware notes
before using write commands.
Testing
Use the committed lockfile and fixture-based checks:
uv sync --locked --dev
uv run ruff check h388x_cli tests
uv run ruff format --check h388x_cli tests
uv run pytest
See testing and optional device checks. A live router is not required for the automated suite.
License
MIT. See LICENSE.
Metadata
Release files for h388x-cli 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| h388x_cli-0.2.2.tar.gz | 114.6 kB | With provenance | Details for h388x_cli-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| h388x_cli-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for h388x_cli-0.2.2-py3-none-any.whl |
Total release size: 206.6 kB
Release files / h388x_cli-0.2.2.tar.gz
| Download URL | h388x_cli-0.2.2.tar.gz |
|---|---|
| Size | 114.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0934d991362f2b011e7d2693e2bb72af34c8c58489c5220d2db5b9c030020a74
|
|
BLAKE2b-256 checksum How to use checksums |
a14dbea328eb956be3483b6ccad9a690fb5a653d986360eb4597b5d20237fb9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logRelease files / h388x_cli-0.2.2-py3-none-any.whl
| Download URL | h388x_cli-0.2.2-py3-none-any.whl |
|---|---|
| Size | 92.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5606fe617a2b9547eef47b92c99b075b01d02f392e51f61a4c5a7cd04af630f3
|
|
BLAKE2b-256 checksum How to use checksums |
a173664654c7c36201c5c668e12d6e4fc51d98e710f5263c67bf780841e864ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logSecurity for h388x-cli 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for h388x_cli-0.2.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.