Experimental Rust workspace for a standalone WhatsApp primary-device client. The goal is phone-number registration and messaging without a paired phone or another running WhatsApp client.
What works live (experimental lab path): registration by SMS code with the APK-derived recipe, authenticated login, and end-to-end encrypted messaging: direct text, images, voice notes, view-once images, replies, reactions, polls, group send/receive, status posts and receipts. Calls, stickers/video sending, privacy settings and companion pairing are not done, and some features are server-acknowledged but not yet confirmed on a handset. The per-feature matrix is feature-parity; dated evidence is in STATUS.md.
Linux x86_64 is the initial proof target. Install Rust through rustup; this repository pins Rust 1.98.1 in rust-toolchain.toml.
cargo build --locked --workspace
cargo run --locked -p whatsapp-cli -- --help
cargo run --locked -p whatsapp-cli -- profile
cargo run --locked -p whatsapp-cli -- capabilitiesThese inspection commands need no account or APK. For local storage and the
HTTP control plane, see Getting started.
Enqueueing a message stores an intent; outbox-send or listen --send-outbox
transmits it.
Onboarding a phone number is two commands (accounts new, then lab-signup begin); see docs/accounts.md.
Every command is listed in docs/cli.md and described in docs/api/openapi.json.
| Package | Purpose |
|---|---|
| whatsapp-api | Async library, encrypted store, codecs, protocol boundaries |
| whatsapp-cli | Operator CLI and local HTTP inspection |
| xtask | Rust-only schema, dependency, and APK analysis tools |
Optional experimental-noise, experimental-registration-https,
experimental-signal-crypto, and experimental-transport remain lab features.
HTTPS uses native ring crypto; the Signal adapter includes
AGPL-marked dependencies. See third-party notices.
cargo fmt --all -- --check
cargo clippy --locked --workspace --all-targets --all-features -- -D warnings
cargo test --locked --workspace --all-featuresRead CONTRIBUTING.md for setup, feature checks, generated code,
and the full validation workflow. The library, CLI and all build/CI automation
are Rust, and so are the research generators, ELF readers and the ARM64
decoder probe (xtask, tools/apk-research/native-probe). What remains in
Python under tools/apk-research/ are the checkers that execute native ARM64
code under the Unicorn/Qiling emulators (no pure-Rust equivalent exists) and
one SQLite oracle; nothing in the build, tests or CI runs them.
APK research input is described in APK research.
- API reference (OpenAPI) — every CLI command and HTTP route, machine-readable
- CLI reference — generated command tree
- Configuration reference — request.json fields and profiles
- Documentation index
- Running more than one account — profiles, onboarding a second number, the two-account pair check
- Current status
- Design plan and numbered section index
- Protocol evidence and APK research
- Architecture decisions
- Security reporting
First-party code is licensed under MIT OR Apache-2.0, matching the Cargo manifests. Third-party notices describe separately licensed inputs. This project is not affiliated with WhatsApp or Meta.