flipper CLI · MIT · --json Contract

Drive Flipper Zero and Proxmark 5 from any terminal or AI agent.

One fast Rust binary for macOS, Linux, Windows, and FreeBSD over USB CDC or Bluetooth LE. Returns human-readable text interactively and exactly one clean JSON document under --json for Claude Code, Cursor, Codex, and scripts.

Single-document --json contract + stable exit codes + bundled SKILL.md

With --json, flipper writes exactly one JSON payload ({"ok": true, "data": ...} or {"ok": false, "error": "..."}) to stdout and routes progress or hints to stderr. Exit code 0 means success, 1 means operation failure, and 3 means device not found, letting coding agents automate safely without fragile regex scraping.

Get the CLI

CLI commands run directly. Mobile app approvals and audit logs do not apply.

Built for AI coding agents

Bundle skills/flipper/SKILL.md into Claude Code, Cursor, or Codex to teach your agent the command map, single-JSON stdout contract, and exit codes.

curl -fL -o flipper.tar.gz https://github.com/flipper-hero/cli/releases/download/v0.3.0/flipper-0.3.0-aarch64-apple-darwin-universal.tar.gz
tar -xzf flipper.tar.gz flipper
mkdir -p "$HOME/.local/bin"
install -m 755 flipper "$HOME/.local/bin/flipper"
"$HOME/.local/bin/flipper" info

Linux binaries need glibc and libudev. FreeBSD supports USB only.

Built for engineers and local coding agents

01 · Multi-Platform

macOS universal, Linux, Windows & FreeBSD

Ships standalone release archives with SHA-256 checksums: universal macOS Apple silicon + Intel binary, Linux x86-64/ARM64, Windows x86-64, and USB-only FreeBSD.

02 · USB CDC & BLE

Flipper + Direct Proxmark 5 Transports

Connect to Flipper Zero over USB without Bluetooth pairing, over BLE (--transport ble), or reach Proxmark 5 directly via --pm5-transport auto|usb|ble|tcp|flipper.

03 · Agent Skill Ready

Drop-in skills/flipper/SKILL.md

Copy skills/flipper into ~/.claude/skills/flipper so Claude Code, Cursor, Codex, or local agents immediately know safe Flipper Zero and Proxmark 5 commands.

04 · Raw RPC + Guards

Full protobuf access when scripts need it

flipper raw exposes the entire Flipper protobuf RPC surface as JSON, while storage, screen capture, IR, Sub-GHz, GPIO, Marauder, and PM5 all have typed subcommands.

Typed commands across Flipper Zero and Proxmark 5

Use the exact same binary for daily file management, firmware staging, GPIO bridges, or PM5 LF/HF badge telemetry.

flipper v0.3.0--json · exit 0/1/3
$ flipper info --json
$ flipper screen display.png
$ flipper subghz tx /ext/subghz/gate.sub
$ flipper pm5 info --json
$ flipper pm5 hf14a --save-to-flipper /ext/nfc/badge.nfc

Core command families in flipper CLI

Every command shares global --json, --transport auto|usb|ble, --device ID, --port PATH, and --timeout SECONDS flags.

DomainRepresentative CommandsTransport Support
Device & Screenscan, info, df, screen, press, alert, rebootUSB CDC & Bluetooth LE
Storage & Firmwarels, get, put, mkdir, rm, rename, updateUSB CDC & Bluetooth LE
RF & Protocolssubghz, ir, nfc, rfid, ibutton, badusb, rawUSB CDC & Bluetooth LE
Proxmark 5 (PM5)pm5 ports, scan, info, battery, tune, bwm, hf14aUSB, BLE, Wi-Fi TCP (18888), Flipper CEP
GPIO & Maraudergpio set|read|write, marauder scan|list|stationsFlipper GPIO + bridge FAPs

FlipperHero CLI FAQ

How is flipper CLI different from qFlipper or the Python CLI?

flipper is a single MIT-licensed native Rust binary with no Python runtime dependency, built-in Bluetooth LE and USB CDC transports, Proxmark 5 support, and a strict single-document --json contract with deterministic exit codes (0, 1, 3) designed for AI coding agents.

Can Claude Code, Cursor, or Codex use flipper CLI out of the box?

Yes. The repository bundles skills/flipper/SKILL.md containing safety boundaries, non-interactive command patterns, and exit codes so local AI agents can drive Flipper Zero and Proxmark 5 reliably.

Does flipper CLI work with Proxmark 5 over the Flipper Zero bridge?

Yes. Pass --pm5-transport flipper with /ext/apps/GPIO/pm5_bridge.fap installed on your Flipper microSD card, or use usb, ble, tcp, or auto directly.

Which desktop operating systems have prebuilt binaries?

macOS (universal Apple silicon and Intel), Linux (x86-64 and ARM64), Windows (x86-64), and FreeBSD (x86-64 USB-only) archives are published with sha256sums.txt on GitHub Releases.

What is the --json output contract and why does it use exit code 3?

Every --json command prints exactly one JSON object to stdout and sends warnings/progress to stderr. Exit code 3 specifically signals that no matching Flipper device was found, separating connection issues from operational errors (exit code 1).

Will flipper CLI support Flipper One at launch?

Yes. The same --json contract and SKILL.md pattern are being extended against Flipper Devices public Flipper One repositories for Day-One compatibility.