Terminal dashboard for Litter Robot (LR3/LR4/LR5) via the Whisker cloud API
Project description
Asher CLI
A Claude Code-style terminal dashboard for monitoring and controlling Litter Robot via the Whisker cloud API.
Features
- Live status bar — unit name, online/offline, drawer fill level, last activity, cat weight
- Human-readable robot status — translates raw API states into plain English (
Ready,Cleaning,Cat Detected,Drawer Full, etc.) - Scrollable activity log with timestamps
- Commands:
clean,status,lock,unlock,sleep,wake,night-light,history,help,quit - Slash commands for app management:
/login,/logout,/exit - Cat animation panel that reacts to robot state
- Command history (↑/↓ arrows)
- Auto-refreshes every 30 seconds
Install
With pipx (recommended)
pipx install asher-cli
asher
pipx installs the CLI into an isolated environment and puts asher on your PATH automatically. Install pipx with pip install pipx if you don't have it.
With pip
pip install asher-cli
asher
With uv
uv tool install asher-cli
asher
Run from source
git clone https://github.com/karanshukla/asher-cli
cd asher-cli
uv sync
uv run asher
Credentials
On first run, type /login at the command prompt. Your credentials are saved to the OS keyring (Windows Credential Manager / macOS Keychain / Linux Secret Service) and reused automatically on subsequent runs.
To sign out: /logout
.env fallback (for CI or existing users):
LITTER_ROBOT_USER=your@email.com
LITTER_ROBOT_PASSWORD=yourpassword
Commands
Robot commands
| Command | Description |
|---|---|
clean |
Start a clean cycle |
status |
Refresh and show what matters — online state, drawer level, last activity |
info |
Full dump of all robot properties (serial, firmware, all settings) |
lock / unlock |
Toggle panel lockout |
sleep / wake |
Toggle sleep mode |
night-light on|off |
Toggle night light |
history |
Show last 25 activity events |
clear |
Clear the log |
help |
Show command list |
quit |
Exit |
Slash commands
| Command | Description |
|---|---|
/login |
Sign in or switch accounts |
/logout |
Sign out and clear saved credentials |
/exit |
Exit Asher CLI |
Keyboard shortcuts: Ctrl+L clears the log, Ctrl+C quits.
Releasing
# bump version, commit, and tag in one step
uv run bump-my-version bump patch # 0.0.1 → 0.0.2
uv run bump-my-version bump minor # 0.0.2 → 0.1.0
uv run bump-my-version bump major # 0.1.0 → 1.0.0
# then push the release branch to trigger PyPI publish
git checkout -b release/0.0.2
git push origin release/0.0.2
Troubleshooting
asher not found after pip install asher-cli
Python's Scripts folder isn't on your PATH. Use pipx instead — it handles this automatically:
pip install pipx
pipx install asher-cli
asher
If you're in a virtualenv, deactivate it first:
deactivate
pip install pipx
pipx install asher-cli
pipx: command not found
Run it as a module instead:
python -m pip install pipx
python -m pipx install asher-cli
Dev Setup
1. Clone and install
git clone https://github.com/karanshukla/asher-cli
cd asher-cli
uv sync # installs all deps including the dev group
git config core.hooksPath .githooks # lint + type checks run before every push
2. Configure environment (optional)
Copy .env.example to .env and fill in your credentials:
cp .env.example .env
LITTER_ROBOT_USER=your@email.com
LITTER_ROBOT_PASSWORD=yourpassword
ASHER_CLI_DEV_MODE=true # sets version to "dev" instead of the installed package version
3. Run with hot reload
CSS hot reload — Textual's devtools watch inline CSS strings and .tcss files and reload them in-place without restarting:
uv run poe dev
# equivalent to: textual run --dev asher/__main__.py
Python auto-restart — true in-process reload isn't possible with Textual's event loop, but watchfiles will kill and relaunch the app whenever a .py file changes in asher/:
uv run poe watch
# equivalent to: watchfiles --filter python 'python -m asher' asher
You can combine both — run poe watch for Python changes and it will naturally pick up CSS changes too on restart.
4. Run tests
uv run poe test # run all tests
uv run pytest tests/ --cov=asher # with coverage report
5. Lint, format, type-check
uv run poe fix # auto-fix ruff issues
uv run poe lint # check only (no fixes)
uv run poe fmt # check formatting
uv run poe types # mypy
uv run poe check # run all of the above + tests (same as CI)
CI runs on Python 3.10 / 3.11 / 3.12 across Ubuntu, Windows, and macOS on every push.
Notes
- Uses the unofficial pylitterbot library — supports LR3, LR4, LR5, and other Whisker robots
- The Whisker API is reverse-engineered and may change without notice
- Auth errors and network failures are shown in the UI with friendly messages
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 asher_cli-0.0.3.tar.gz.
File metadata
- Download URL: asher_cli-0.0.3.tar.gz
- Upload date:
- Size: 243.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6ef655a7d6dc52bf568a69360f632972af71af8a4f72dc359d479b401f68b97
|
|
| MD5 |
c11e217f139c627fb19a14c4560458f5
|
|
| BLAKE2b-256 |
30967b38ff2335ee31f6d71fdf07f3f163fb265a013423e553ce578816919b5a
|
Provenance
The following attestation bundles were made for asher_cli-0.0.3.tar.gz:
Publisher:
release.yml on karanshukla/asher-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
asher_cli-0.0.3.tar.gz -
Subject digest:
b6ef655a7d6dc52bf568a69360f632972af71af8a4f72dc359d479b401f68b97 - Sigstore transparency entry: 1837795988
- Sigstore integration time:
-
Permalink:
karanshukla/asher-cli@d7e29ec18731c0354214fc10590b4ca08881cb8a -
Branch / Tag:
refs/heads/release/0.0.3 - Owner: https://github.com/karanshukla
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d7e29ec18731c0354214fc10590b4ca08881cb8a -
Trigger Event:
push
-
Statement type:
File details
Details for the file asher_cli-0.0.3-py3-none-any.whl.
File metadata
- Download URL: asher_cli-0.0.3-py3-none-any.whl
- Upload date:
- Size: 22.4 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 |
b1bbdf57e8dc2dce820b70852b582df0b15892aae42622396f9132f589c1fdde
|
|
| MD5 |
d3f0bca9fcd46e95957d04a13b396c5f
|
|
| BLAKE2b-256 |
4c3f00fc6fc87aef73ed6e540641eeb12002a0178248d6b6f39a928ffdb4782e
|
Provenance
The following attestation bundles were made for asher_cli-0.0.3-py3-none-any.whl:
Publisher:
release.yml on karanshukla/asher-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
asher_cli-0.0.3-py3-none-any.whl -
Subject digest:
b1bbdf57e8dc2dce820b70852b582df0b15892aae42622396f9132f589c1fdde - Sigstore transparency entry: 1837796069
- Sigstore integration time:
-
Permalink:
karanshukla/asher-cli@d7e29ec18731c0354214fc10590b4ca08881cb8a -
Branch / Tag:
refs/heads/release/0.0.3 - Owner: https://github.com/karanshukla
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d7e29ec18731c0354214fc10590b4ca08881cb8a -
Trigger Event:
push
-
Statement type: