banksman
Lease shared Android devices and emulators to parallel coding agents on one machine.
Status: pre-alpha. The commands and the file formats can still change.
The problem
Run two or three coding agents in parallel worktrees of one app, and they reach for the same devices. One agent installs its build while another is in the middle of a UI test. A lock does not help, because it stays taken forever when its run dies.
What it does
- Leases, not locks. A lease ends when its agent process is gone, when nobody uses it for too long, or at a hard limit. Nothing needs to be renewed.
- Works with your setup. Your AVDs, your phones on USB or Wi-Fi, the default adb server, and your scripts stay as they are. Scripts behave as before on a machine without banksman.
- Requests by properties.
banksman acquire --where form=tablet --where 'api>=33'. Several devices and test accounts come in one call, all or nothing. - Work that stops with its lease.
banksman runruns a command withANDROID_SERIALset to the leased device, and stops the command when the lease is lost. - An optional guard on adb and Gradle. It refuses a call on a device that another agent holds, also in scripts that do not know banksman, and tells the agent how to get a device.
- Closed by default. Agents get only the devices that the operator allows.
- Emulators on request.
--startboots a leased emulator. banksman ends it when its holder is gone, onrelease --end, or after a timeout that the operator sets. - One view.
banksman statusshows who holds each device, why, and until when. - Small. Python standard library only, no daemon.
Requirements
- macOS or Linux.
- Python 3.11 or newer.
- The Android SDK platform tools and emulator.
Install
pipx install banksman
banksman version
banksman admin doctor
uv tool install banksman works too. To upgrade, run pipx upgrade banksman, then
banksman admin doctor: it names the saved files that you must save again. To work on
banksman from a clone, see CONTRIBUTING.md.
Documentation
- docs/PROJECTS.md: use banksman from a project, and set it up for agents.
- docs/DESIGN.md: the design and the roadmap.
- DECISIONS.md: the design decisions and why.
- SECURITY.md: what banksman protects, and what it does not.
License
Apache License 2.0. Contributions are welcome; see CONTRIBUTING.md.
Metadata
Release files for banksman 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| banksman-0.1.0.tar.gz | 520.9 kB | With provenance | Details for banksman-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| banksman-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for banksman-0.1.0-py3-none-any.whl |
Total release size: 730.4 kB
Release files / banksman-0.1.0.tar.gz
| Download URL | banksman-0.1.0.tar.gz |
|---|---|
| Size | 520.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d96d0bc32807c1596bb3991fa405eb90a55bb4c758d73cd193eca2dfc4cc62e
|
|
BLAKE2b-256 checksum How to use checksums |
77f56733a67cf78973278c830b8034862a839dc6e30f08d231cbccea57c51bda
|
| 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 Oct 29, 2026.
Transparency logRelease files / banksman-0.1.0-py3-none-any.whl
| Download URL | banksman-0.1.0-py3-none-any.whl |
|---|---|
| Size | 209.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
329045a3a3156bf2b0d8d09ee0f514da6d580070dbb7b4171ef81d84bac5c0de
|
|
BLAKE2b-256 checksum How to use checksums |
f7667937c245f96165b8377af64815589a00904c68c6826d9944fe4ed4f0dd2d
|
| 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 Oct 29, 2026.
Transparency logSecurity for banksman 0.1.0
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 banksman-0.1.0.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 Oct 29, 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.