Skip to main content

FreeFox: reliable rosbag offloading for ROS 2 robots

CI PyPI Docs Docker image License: Apache 2.0 PRs welcome

FreeFox gets every ROS 2 bag off your robots, reliably. It is a small Linux service that watches your recording folder and ships finished rosbags to Google Drive, a NAS over rsync/SSH or any S3-compatible bucket. Uploads resume after a crash, every file is verified with BLAKE3, and a live dashboard shows what is happening.

Status: 0.2, beta. The core (queue, resume, integrity, three backends) is implemented and tested; the configuration format may still change before 1.0. Release notes · Roadmap · Français

Why FreeFox?

Field robots generate gigabytes of rosbags per run, often on flaky Wi-Fi or 4G. Copying them by hand gets bags lost, duplicated or corrupted, and nobody notices until the data is needed.

flowchart LR
    rec["🎥 ros2 bag record"] --> bags[("📁 bags folder<br/>on the robot")]
    bags --> ff["🦊 FreeFox<br/>watch · verify · upload"]
    ff --> gd["☁️ Google Drive"]
    ff --> nas["🗄️ NAS or server<br/>rsync over SSH"]
    ff --> s3["🪣 AWS S3 / MinIO"]

    classDef default fill:#FFF3E8,stroke:#FF9A4D,color:#1A0A00
    linkStyle default stroke:#FF8A33,stroke-width:1.6px
    classDef fox fill:#FF6B00,stroke:#E63200,color:#ffffff,font-weight:bold
    class ff fox

FreeFox runs on the robot and takes care of that job:

  • Complete bags only. It waits until a recording is finished before touching it.
  • Nothing gets lost. Every transfer is remembered in a local SQLite queue, across crashes and reboots.
  • Resume, don't restart. An interrupted 20 GB upload continues where it stopped.
  • Proof of integrity. A BLAKE3 fingerprint shows the file arrived intact, and identical content is never sent twice.
  • Your storage, no subscription. Free, self-hosted, no vendor lock-in.

FreeFox dashboard (blurred preview)
The local dashboard: progress, throughput, ETA, retries and integrity status per bag.

Features

Hands-off collection Runs as a systemd service or a Docker container, starts at boot, watches folders recursively.
Complete bags only A file is queued only once its size has been stable for stable_seconds; *.active, *.tmp and metadata.yaml are ignored.
Durable queue Every transfer lives in SQLite (queued → uploading → done / failed / conflict) and survives crashes and reboots.
Resumable uploads Google Drive resumable sessions and S3 multipart state are persisted; rsync uses --partial.
Smart retries Exponential backoff, dedicated delays for quota and network errors, failed items requeued on start.
BLAKE3 integrity Fingerprint computed locally, stored remotely (Drive appProperties, S3 metadata, rsync sidecar) and checked.
Deduplication and conflict safety Identical content is never re-uploaded. A different file at the same path is flagged as a conflict and never overwritten.
Tidy layout Files land under <prefix>/<robot_id>/<YYYY-MM-DD>/<filename>, ready for a whole fleet.
Three backends Google Drive (OAuth2 or service account / Shared Drive), rsync (local disk, NAS, SSH), AWS S3 and MinIO-compatible.
Live dashboard Built-in web UI: per-bag progress, MiB/s and Mbps throughput, ETA, retries, errors and watched files.
Secure by default S3 secrets are rejected in YAML (standard AWS credential chain only), and secrets are redacted from logs. The systemd unit is hardened.
Multi-arch image ghcr.io/thoukam/freefox for linux/amd64 and linux/arm64 (Jetson, Raspberry Pi, industrial PCs).

Works with both ROS 2 bag formats: .mcap and .db3.

Quick start

pip

pip install "freefox[s3]"        # drop [s3] if you do not need S3 / MinIO
freefox --config config.yaml     # the upload service
freefox-dashboard --config config.yaml --host 0.0.0.0   # dashboard on :8765
freefox-status /var/lib/freefox/queue.db                # queue status in the terminal

Start from config/config.example.yaml.

Docker

git clone https://github.com/thoukam/freefox && cd freefox
cp config/config.docker.example.yaml config/config.docker.yaml   # choose your backend
cp .env.example .env                                              # set the bags folder on the host
docker compose pull && docker compose up -d

Open the dashboard at http://<robot-ip>:8765. Full guide: docs/docker-deployment.md.

systemd (bare metal)

git clone https://github.com/thoukam/freefox && cd freefox
sudo ./install.sh                       # installs the package, /etc/freefox and the unit
sudo nano /etc/freefox/config.yaml      # set watch.directory and your backend
sudo systemctl enable --now freefox
journalctl -u freefox -f

Try it locally in 2 minutes (no cloud account)

python3 -m venv .venv
.venv/bin/pip install -e ".[dev]"
.venv/bin/python scripts/local_smoke.py

Minimal configuration

robot_id: robot-01            # or FREEFOX_ROBOT_ID, defaults to the hostname

watch:
  directory: /home/ros/bags
  stable_seconds: 5.0

storage:
  backend: rsync              # gdrive | rsync | s3

rsync:
  destination: user@nas:/data/freefox

Every option is documented in config/config.example.yaml. Backend guides:

How it works

flowchart LR
    W["👁️ Watcher<br/>waits until the bag<br/>stops growing"] -->|new bag| Q[("🗃️ SQLite queue<br/>durable state")]
    Q -->|next bag| P["⚙️ Workers<br/>BLAKE3 · retries · resume"]
    P -->|progress and result| Q
    P --> GD["☁️ Google Drive"]
    P --> RS["🗄️ rsync / NAS"]
    P --> S3["🪣 S3 / MinIO"]
    D["📊 Dashboard"] -. reads .-> Q

    classDef default fill:#FFF3E8,stroke:#FF9A4D,color:#1A0A00
    linkStyle default stroke:#FF8A33,stroke-width:1.6px
    classDef core fill:#FF6B00,stroke:#E63200,color:#ffffff
    class W,P core
  1. Watcher detects new .mcap / .db3 files and waits until they stop growing.
  2. Queue records the transfer together with a snapshot of its destination. Changing the config later never redirects a transfer that is already in progress.
  3. Workers compute BLAKE3, check the remote side (missing, identical or conflict), upload with resume, and classify errors (transient, quota, auth, config, conflict).
  4. Backends implement one small, provider-neutral interface, so adding a new one is easy.

More detail: docs/architecture.md.

Documentation

Guide
Installation Local dev setup, systemd, real-bag testing, resume behaviour
Google Drive OAuth2 vs service account, Shared Drives
S3 / MinIO Credentials chain, private CA, multipart resume
Docker Compose, GHCR image, rsync over SSH from a robot
Architecture Components, queue states, backend contract
Website Project site

Every guide is available in English (docs/en/) and French (docs/fr/).

Roadmap

Phase Focus Status
v0.1 Watcher, durable SQLite queue, Google Drive (resumable), rsync / NAS, BLAKE3 integrity and deduplication, dashboard, multi-arch Docker image ✅ Shipped
v0.2 AWS S3 / MinIO backend with durable multipart, conflict detection, per-transfer destination snapshots ✅ Shipped
v0.3 Observability and security: Prometheus /metrics, dashboard authentication, structured logs 🚧 Next
v0.4 Smarter uploads: rules by ROS 2 topic or bag metadata, bandwidth limits, upload time windows (Wi-Fi only, at night…) 📋 Planned
v0.5 More backends: Azure Blob, Google Cloud Storage, WebDAV 📋 Planned
v1.0 Fleet scale: central multi-robot view, native ros2 package, stable config format 🔭 Vision

Shipped changes are detailed in the CHANGELOG. Have a need from your lab or company? Open an issue. Real use cases shape the priorities.

Contributing

FreeFox is young, and contributions of every size are welcome: bug reports, docs, translations, new backends, dashboard work, field reports from real robots.

git clone https://github.com/thoukam/freefox && cd freefox
python3 -m venv .venv && .venv/bin/pip install -e ".[dev,s3]"
.venv/bin/python -m pytest

Read CONTRIBUTING.md to get started, and look for issues labelled good first issue. Please follow our Code of Conduct and report vulnerabilities privately as described in SECURITY.md.

Using FreeFox on a robot? Tell us in an issue. Real-world feedback shapes the roadmap.

License

Apache 2.0. Free for academic and commercial use.

Created and maintained by Yves Thoukam (thoukamy@gmail.com).

Metadata

Release files for freefox 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for freefox 0.2.2
File Size Uploaded Provenance Actions
freefox-0.2.2.tar.gz 88.0 kB With provenance Details for freefox-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for freefox 0.2.2
File Interpreter ABI Platform Actions
freefox-0.2.2-py3-none-any.whl Python 3 none any Details for freefox-0.2.2-py3-none-any.whl

Total release size: 169.1 kB

Release files / freefox-0.2.2.tar.gz

Download URL freefox-0.2.2.tar.gz
Size 88.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4030510aac7ce044ad9483f9cdfcb69e5c5b2f12412ffd170b0bc014779b736f
BLAKE2b-256 checksum
How to use checksums
ac88d72c283a596fe83966e7e24f9252982441102992869f301ab14a4c3f9862
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 Nov 9, 2026.

Transparency log

Release files / freefox-0.2.2-py3-none-any.whl

Download URL freefox-0.2.2-py3-none-any.whl
Size 81.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d39a689eeef6d86737bf369f1c77902be88d160b94f4ae68893d6485549b275
BLAKE2b-256 checksum
How to use checksums
6956297249948094014655c3b59646167fa968f43d2999c347779e66fc92afee
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 Nov 9, 2026.

Transparency log

Security for freefox 0.2.2

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.

Select from 2 files

Attestation for freefox-0.2.2.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 Nov 9, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page