# PyMobileDevice3
[](https://github.com/doronz88/pymobiledevice3/actions/workflows/python-app.yml "Python application action")
[](https://pypi.org/project/pymobiledevice3/ "PyPi package")
[](https://pepy.tech/project/pymobiledevice3)
[](https://discord.gg/52mZGC3JXJ)
[](https://deepwiki.com/doronz88/pymobiledevice3)
`pymobiledevice3` is a pure Python 3 implementation for interacting with iOS devices (iPhone, iPad, ...).
It ships both a **command-line tool** and a **Python API**, and runs on Windows, Linux, and macOS.
Highlights: device discovery, port forwarding, syslog/oslog streaming, app & profile management, AFC
file access, crash reports, PCAP sniffing, firmware update, recovery/DFU, backup/restore, WebInspector
automation, a [CDP bridge](https://doronz88.github.io/pymobiledevice3/guides/webview-debugging/) that
lets Chrome DevTools, VS Code and Playwright debug Safari and WebViews on the device, and DDI/DVT
developer tooling (iOS 17+ over a tunnel).
## Install
```shell
python3 -m pip install -U pymobiledevice3
```
PyPI is the only official distribution channel. Third-party packages (for example the AUR's
`python-pymobiledevice3`) are not maintained by this project and may be outdated.
Then verify connectivity:
```shell
pymobiledevice3 usbmux list
pymobiledevice3 syslog live
pymobiledevice3 apps list
```
## Documentation
📖 **Full documentation: **
- [Installation & platform notes](https://doronz88.github.io/pymobiledevice3/installation/)
- [CLI recipes](https://doronz88.github.io/pymobiledevice3/guides/cli-recipes/)
- [iOS 17+ tunnels & support matrix](https://doronz88.github.io/pymobiledevice3/guides/ios17-tunnels/)
- [Python API guide](https://doronz88.github.io/pymobiledevice3/guides/python-api/)
- [Python API reference](https://doronz88.github.io/pymobiledevice3/api/)
- [Protocol internals (RemoteXPC, DTX, iDevice layers)](https://doronz88.github.io/pymobiledevice3/internals/idevice-protocol-layers/)
The docs are built from [`docs/`](docs/) with MkDocs (`mkdocs.yml`).
## Claude Code plugin
The repository ships its
[device-operator agent skill](https://doronz88.github.io/pymobiledevice3/guides/codex-device-operator-skill/)
as a Claude Code plugin, teaching the agent to operate a connected iPhone or iPad through pymobiledevice3:
```
/plugin marketplace add doronz88/pymobiledevice3
/plugin install pymobiledevice3-device-operator@pymobiledevice3
```
## Community
Questions, ideas, or want to help? Join the community on [Discord](https://discord.gg/52mZGC3JXJ).
## Sponsors
A huge thank you to our sponsors for supporting this project! 💖
[](https://testingbot.com) [**TestingBot**](https://testingbot.com)
[](https://smartdust.me) [**SmartDust**](https://smartdust.me)
[](https://github.com/AnNEDoMini) [**AnNEDoMini**](https://github.com/AnNEDoMini)
Want to support the project as well? Sponsor it via [GitHub Sponsors](https://github.com/sponsors/doronz88) or
[Ko-fi](https://ko-fi.com/doronz).
## Contributing
See [CONTRIBUTING](CONTRIBUTING.md) and [Code of Conduct](CODE_OF_CONDUCT.md).
Agent-specific contributor guidance is in [AGENTS](AGENTS.md).
## License and Credits
This work is licensed under GPL 3.0 and credited to several major contributors:
- Hector Martin "marcan"
- Mathieu Renard
- [doronz](https://github.com/doronz88)
- [matan1008](https://github.com/matan1008)
- [Guy Salton](https://github.com/guysalt)
- [netanelc305](https://github.com/netanelc305)
- Inbar Agmon ([Project's logo](https://repository-images.githubusercontent.com/357904774/6d6fb035-5953-425d-9afd-cc1087df0cfb))