{"id":47785088,"url":"https://github.com/rhoopr/kei","last_synced_at":"2026-05-02T02:05:35.473Z","repository":{"id":336530154,"uuid":"1146984886","full_name":"rhoopr/kei","owner":"rhoopr","description":"Photo sync engine. Parallel downloads, incremental sync, state tracking, and unattended Docker operation, all in a single binary.","archived":false,"fork":false,"pushed_at":"2026-04-25T22:02:37.000Z","size":2784,"stargazers_count":69,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-25T22:25:26.383Z","etag":null,"topics":["apple","backup","cli","docker","icloud","icloud-photos","photo-backup","rust","selfhosted"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"icloud-photos-downloader/icloud_photos_downloader","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rhoopr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":"audit.toml","citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"rhoopr","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2026-02-01T01:59:53.000Z","updated_at":"2026-04-25T20:33:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rhoopr/kei","commit_stats":null,"previous_names":["rhoopr/icloudpd-rs","rhoopr/kei"],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/rhoopr/kei","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhoopr%2Fkei","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhoopr%2Fkei/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhoopr%2Fkei/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhoopr%2Fkei/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhoopr","download_url":"https://codeload.github.com/rhoopr/kei/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhoopr%2Fkei/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32520155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple","backup","cli","docker","icloud","icloud-photos","photo-backup","rust","selfhosted"],"created_at":"2026-04-03T14:23:10.298Z","updated_at":"2026-05-02T02:05:35.464Z","avatar_url":"https://github.com/rhoopr.png","language":"Rust","funding_links":["https://ko-fi.com/rhoopr"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/logo.png\" alt=\"kei logo\" width=\"200\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003ekei: media sync engine\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  Sync your cloud photos and videos to local storage. Fast, resumable, runs unattended.\u003cbr\u003e\u003cbr\u003e\n  \u003ca href=\"https://github.com/rhoopr/kei/blob/main/Cargo.toml\"\u003e\u003cimg src=\"https://img.shields.io/badge/Rust_MSRV-1.91%2B-dea584?logo=rust\" alt=\"Rust MSRV 1.91+\"\u003e\u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/rhoopr/kei?color=8b959e\" alt=\"License: MIT\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/rhoopr/kei/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/rhoopr/kei?color=blue\u0026label=version\" alt=\"Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/rhoopr/kei/actions/workflows/docker.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/rhoopr/kei/docker.yml?branch=main\u0026label=build\u0026logo=github\" alt=\"Build\"\u003e\u003c/a\u003e\u003cbr\u003e\n  \u003ca href=\"https://github.com/rhoopr/homebrew-kei\"\u003e\u003cimg src=\"https://img.shields.io/badge/homebrew-tap-FBB040?logo=homebrew\" alt=\"Homebrew\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/rhoopr/kei/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/downloads/rhoopr/kei/total?logo=github\u0026label=downloads\" alt=\"Downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://ghcr.io/rhoopr/kei\"\u003e\u003cimg src=\"https://img.shields.io/badge/ghcr.io-kei-blue?logo=docker\" alt=\"Docker\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://ghcr.io/rhoopr/kei\"\u003e\u003cimg src=\"https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgithub.com%2Fipitio%2Fbackage%2Fraw%2Findex%2Frhoopr%2Fkei%2Fkei.json\u0026query=%24.raw_downloads\u0026logo=docker\u0026label=pulls\" alt=\"Pulls\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n- Parallel downloads with incremental sync (seconds on large libraries after the first run)\n- Resumable transfers verified by size and content hash\n- Watch mode, systemd integration, headless 2FA, Docker-ready\n- iCloud Photos supported today. Google Takeout and Immich next.\n\n---\n\n\u003e [!IMPORTANT]\n\u003e v0.13 (next release) reshapes selection and folder-structure flags. `--exclude-album NAME` becomes `--album '!NAME'`. `--library` accepts multiple values. `kei sync` with no flags now runs per-album passes plus an unfiled pass. Legacy `{album}` in `--folder-structure` auto-migrates with a warning until v0.20. Full migration guide: [docs/v0.13-migration.md](docs/v0.13-migration.md).\n\u003e\n\u003e | Flag | Default |\n\u003e |---|---|\n\u003e | `--album` | `all` |\n\u003e | `--smart-folder` | `none` |\n\u003e | `--library` | `primary` |\n\u003e | `--unfiled` | `true` |\n\u003e | `--folder-structure` | `%Y/%m/%d` |\n\u003e | `--folder-structure-albums` | `{album}` |\n\u003e | `--folder-structure-smart-folders` | `{smart-folder}` |\n\n\u003e [!TIP]\n\u003e Coming from `icloudpd`? The [Migration Guide](docs/migration-from-python.md) shows how to `kei sync` without re-downloading.\n\n---\n\n## Install\n\n```sh\nbrew install rhoopr/kei/kei          # Homebrew\ndocker pull ghcr.io/rhoopr/kei:latest # Docker\n```\n\nPre-built binaries for macOS, Linux, and Windows are on the [Releases page](https://github.com/rhoopr/kei/releases). For Docker Compose, building from source, FreeBSD, and other install paths, see the [Install wiki page](https://github.com/rhoopr/kei/wiki/Install).\n\n\u003e [!IMPORTANT]\n\u003e kei can't access your photos if Advanced Data Protection is on. Turn ADP off and enable \"Access iCloud Data on the Web\" in your Apple ID settings. Details: [Authentication wiki](https://github.com/rhoopr/kei/wiki/Authentication#advanced-data-protection-adp).\n\n---\n\n## Quick start\n\n```sh\nkei sync -u you@example.com -d ~/Photos/iCloud --save-password\n```\n\nYou'll be prompted for your password, then asked to approve 2FA on a trusted device. Downloads start right after. After the first run, just `kei sync` - username, directory, and password are all remembered.\n\nFor a guided walkthrough, run `kei config setup` instead.\n\n---\n\n## Docs\n\nEverything lives on the [wiki](https://github.com/rhoopr/kei/wiki): full CLI reference, filtering and folder templates, watch mode, Docker Compose, credentials, troubleshooting, and more.\n\n- [Commands](https://github.com/rhoopr/kei/wiki/Home#commands) - `sync`, `login`, `list`, `password`, `config`, `reset`, `status`, `verify`, `import-existing`\n- [Configuration](https://github.com/rhoopr/kei/wiki/Configuration) - TOML file, env vars, precedence\n- [Docker](https://github.com/rhoopr/kei/wiki/Docker) - Compose files and headless 2FA\n- [Credentials](https://github.com/rhoopr/kei/wiki/Credentials) - keyring, encrypted file, password files and commands\n- [Changelog](CHANGELOG.md)\n- [How iCloud's Incremental Sync Works](https://robhooper.xyz/blog-synctoken) - deep dive on CloudKit syncTokens\n\n---\n\n## Contributing\n\nContributions welcome. Open an issue first if you're planning something big.\n\n```sh\njust gate    # pre-push gate: fmt, clippy, tests, doc, audit, typos\njust --list  # see every recipe\n```\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) and [tests/README.md](tests/README.md) for the test catalog.\n\n## License\n\nMIT - see [LICENSE](LICENSE)\n\n## Acknowledgments\n\nkei started as `icloudpd-rs`, a Rust rewrite of [icloud-photos-downloader](https://github.com/icloud-photos-downloader/icloud_photos_downloader). Thanks to the original maintainers for their reverse-engineering work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhoopr%2Fkei","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhoopr%2Fkei","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhoopr%2Fkei/lists"}