spacedrive README

项目的 README,来自 github.com/spacedriveapp/spacedrive。合并为一个 markdown 文件:README.md。

Spacedrive

Spacedrive

Your data should not have to live on somebody else's computer to be useful.

Apache-2.0 license Rust and TypeScript Spacedrive Discord

Download • Docs • Discord • Build from source


[!IMPORTANT] Spacedrive 2.0 Beta is planned for November 27, 2026.

Beta commits to Spacedrive's data model and to preserving your library as it evolves. The release makes self-owned storage practical across your devices. It brings portable source indexes, private remote access, mounts, history, and one API for people and software. beta.1 supports macOS and Linux; Windows builds stay in the nightly.

Nightly CLI and daemon builds are available now from the nightly release. They are unsigned, move with every push to main, and can break, so keep backups of any library you point them at. See Install a nightly. The beta will appear on the releases page when it ships.

Spacedrive is open personal data infrastructure. It turns the storage you control into one private filesystem across your devices, drives, servers, and the clouds you choose.

Bring your data home without giving up search, protection, intelligence, sharing, or access from anywhere. No hosted account, no vendor control plane, no telemetry.

Spacedrive browsing files across devices and locations

Own where your data lives

Cloud services made it feel normal for your files to live on someone else's computer. Personal files and behavioral data piled up on infrastructure whose security, policies, and future you do not control. Automated attacks increase the scale of that exposure. AI increases the value of accumulated data for training, inference, and profiling.

Owning the drive is the easy part. You still need to find files, reach them from another device, know what is backed up, recover earlier states, share on your terms, and notice when something changes.

Spacedrive does all of that while you decide where the bytes and metadata live. Local disks, removable media, NAS datasets, private servers, and offline archives are first-class homes. Cloud services remain optional sources and destinations.

Read the Product Direction for the complete product boundary.

One filesystem, every source

A source can be a folder, a complete drive, a dataset on your NAS, another Spacedrive node, a cloud bucket, or an external service. Every source uses the same record shape and the same operations.

Each source has a portable store with two kinds of knowledge: a generation that can be refreshed while the origin is available, and durable assertions that cannot be reconstructed from the files alone. Disconnect a drive and its catalog remains searchable. Move a source to another machine and its metadata can travel with it.

Protection is part of the filesystem

Keeping files safe is filesystem work.

An index snapshot preserves evidence about the filesystem. Provider versions and backups preserve the bytes. Spacedrive connects the two so you can understand what existed, where it lived, and how to recover it.

See every change before it happens

The everyday threat to your files is an operation: a copy that overwrites the wrong folder, a cleanup that deletes the last copy, a merge that lands somewhere unintended. A durable filesystem protects your files from its own operations.

Every operation that changes files answers two questions before it runs. Validation answers whether it may run and how: permissions, capacity, safety rules, and the exact strategy, enforced by the daemon rather than the dialog. Preview answers what will exist afterward, projected from the index without touching a file.

Access anything from anywhere

Pair Spacedrive nodes to browse and operate their authorized sources through the same interface. A live node serves queries, snapshots, byte ranges, jobs, and logs. Other nodes can cache projections and content without claiming authority over the source.

Share a source or subtree with another person, device, or agent without merging libraries. The host decides what the recipient can see and do. The grant stays visible and revocable, while the recipient sees the shared data beside their own sources.

Mount any source or subtree into macOS, Windows, or Linux. Files stream on demand from a local disk, another device, or a cloud provider through one byte plane. Range reads power mounts, transfers, previews, media playback, and video scrubbing without copying the whole file first.

Peer connections use Iroh and QUIC with end-to-end encryption. Devices connect directly when they can and fall back to relays when they must.

One API for people and software

The desktop app, web interface, mobile clients, CLI, generated SDKs, skills, and MCP server all call the same registered operations. A copy has the same input, progress, conflicts, and result whether a person clicks it or software invokes it.

Spacedrive does not bundle an agent or choose a model for you. Use the CLI, skill, SDK, or MCP server with the agent you trust. Your agent gains a consistent filesystem interface without becoming the owner of your data. An agent validates first, shows you the plan, and commits the exact input it previewed. That is what makes destructive file operations safe to delegate.

Extend the filesystem

The default installation stays small. Extensions add specialized support only when you need it.

An extension can contribute:

Platform bridges can discover handlers already registered with macOS, Windows, and Linux. Heavy codecs, provider SDKs, and models remain outside the default binary. Extensions install from explicit packages and declare the access they need.

Architecture

flowchart TB
    people[Desktop, web, mobile, CLI]
    software[SDKs, skills, MCP]
    operations[Typed operation registry]
    daemon[Spacedrive daemon]
    stores[Source stores, history, jobs]
    local[Local drives and NAS]
    remote[Remote Spacedrive nodes]
    cloud[Cloud providers]
    adapters[Adapters and extensions]

    people --> operations
    software --> operations
    operations --> daemon
    daemon --> stores
    daemon --> local
    daemon --> remote
    daemon --> cloud
    daemon --> adapters

The Rust daemon owns filesystem identity, indexing, operations, policy, and durable work. Clients connect through JSON-RPC over local sockets or WebSockets. Network protocols use Iroh and QUIC. OpenDAL provides cloud storage backends. SQLite gives each source a portable store and FTS5 index.

Core operations are registered at compile time with type-safe inputs and outputs. Specta generates the TypeScript and Swift clients from those Rust types, so every interface shares one contract.

Install a nightly

The nightly release carries sd and sd-daemon for macOS ARM64 (macos-aarch64), Linux x86-64 (linux-x86_64) and Windows x86-64 (windows-x86_64, as .exe files), each with a .sha256 file. macOS and Linux are the supported platforms. Windows is a preview: the CLI and daemon build and pass their unit tests there, but the file operation, source and drive acceptance suites have not run on Windows, there is no desktop app, and sd daemon install does not set up auto-start, so run sd-daemon yourself. Download both binaries for your platform, verify them, and put them in a directory on your PATH:

shasum -a 256 -c sd-macos-aarch64.sha256 sd-daemon-macos-aarch64.sha256   # sha256sum -c on Linux
chmod +x sd-macos-aarch64 sd-daemon-macos-aarch64
mv sd-macos-aarch64 ~/.local/bin/sd
mv sd-daemon-macos-aarch64 ~/.local/bin/sd-daemon
sd daemon install

To let sd keep itself on the latest nightly:

sd config set update.channel nightly
sd update --yes
sd update install-timer

The binaries are not signed with a Developer ID. On macOS, a browser download carries the quarantine attribute and Gatekeeper refuses to run it until you remove it with xattr -d com.apple.quarantine sd sd-daemon. Nightly builds follow main and can break or change schemas without migrations, so keep backups of any library you point them at.

Build from source

You need Rust 1.95 or newer (rust-toolchain.toml pins 1.97.1), Bun 1.3.4 (the version package.json and CI pin; a newer Bun rewrites bun.lockb), Node 20, and just.

git clone https://github.com/spacedriveapp/spacedrive
cd spacedrive

# Installs system dependencies on macOS, Linux, or Windows.
./scripts/setup.sh              # .\scripts\setup.ps1 on Windows

bun install
cargo run -p xtask -- setup

Run the daemon and your preferred client:

just dev-daemon     # Rust daemon
just dev-desktop    # Desktop client
just dev-server     # Headless server and web interface
just dev-mobile     # Mobile client

The sd-ffmpeg crate is a default workspace member and links the FFmpeg development libraries installed on the host (libavutil, libavformat, libavcodec, libavfilter, libavdevice, libswscale, libswresample) and uses libclang to generate its bindings. scripts/setup.sh installs them (libav*-dev and libclang-dev on Debian and Ubuntu, ffmpeg on Homebrew). Without them the first cargo build fails in ffmpeg-sys-next with libavutil.pc not found.

The default build can use FFmpeg installed on the host for video thumbnails and thumbstrips. Install the native codec bundle only when developing code that links the optional FFmpeg, libheif, or Pdfium libraries:

cargo run -p xtask -- setup --native-deps

Run the checks before submitting a change:

just test
just check

See the documentation for deployment, source, extension, and architecture guides.

Project history

Spacedrive began in 2021 as one interface over files scattered across devices and cloud accounts. The first public version proved the demand and exposed the cost of carrying two file models, fragile transfers, and too much product in the default build.

V2 rebuilds the project around sources, portable stores, durable jobs, and one typed operation surface. Read the project history for the full account.

Contributing

License

Apache-2.0.

Releases before 2026-03-24 were published under AGPL-3.0 and remain available under that license.

spacedrive (spacedriveapp/spacedrive)

正在搜索数据库…

这是什么?Spacedrive 是一款跨平台的文件管理器,也是一个跨设备的数据平台。它可以索引文件、邮件、笔记和其他来源的数据,让你在一个地方搜索所有内容,并通过点对点连接在设备之间同步数据。
它是要取代我系统自带的访达或资源管理器吗?不是。Spacedrive 位于操作系统文件管理器之上,增加了跨设备搜索、内容识别、同步以及面向 AI 的安全访问等功能层,而不是取代底层的文件操作。
我该如何构建和运行 Spacedrive?README 中没有提供预构建的安装程序;你需要从源码构建,这需要 Rust 1.81+、Bun 1.3+、just,以及用于适配器的 Python 3.9+。
Spacedrive 现在是完全开源的吗?从传统意义上说还不是:每个版本都采用 FSL-1.1-ALv2(功能源代码许可证)授权,仅在两年后自动转换为 Apache 2.0。
它支持哪些设备和操作系统?它提供 macOS、Windows、Linux、iOS 和 Android 的原生应用,所有设备都通过同一个 P2P 网络同步。
我的数据会去哪里?会不会被追踪?Spacedrive 采用本地优先的设计:除非你选择同步,否则数据始终保存在你自己的设备上;它不收集遥测数据,你也可以自行搭建中继服务器。
什么是 Spacebot?Spacebot 是一个可选的独立 AI 智能体运行时,可与 Spacedrive 节点配合使用:Spacedrive 负责数据、权限和设备路由,而 Spacebot 提供实际的智能体能力。
Spacedrive 如何防止 AI 智能体访问不安全的内容?一个可选的安全流程会在已索引的内容上运行本地的 Prompt Guard 2 分类器,对邮件等不受信任的来源进行更严格的筛查,并隔离被标记的记录,使其不会出现在 AI 智能体的查询结果中。
什么是数据归档功能?它允许 Spacedrive 通过基于脚本的适配器索引 Gmail、Apple 备忘录、Chrome 书签、Slack 和 GitHub 等外部来源,并将每个来源变为一个可搜索的仓库,与你的文件并列存放。
Spacedrive 如何避免跨设备的重复文件?每个文件都会生成一个 BLAKE3 内容哈希值,因此同一文件在两台不同设备上会产生相同的哈希值,Spacedrive 据此跟踪你所有设备中的冗余和去重情况。
大小
274.3 MB
星标
39.5K
时长
5年
提交 · 90 天