---
title: "Share a private file with a teammate"
url: https://loot.build/docs/guides/grant-a-key
group: "Guides"
status: written
summary: "Register their key, seal a grant, let them pull it."
---

# Share a private file with a teammate

> Register their key, seal a grant, let them pull it.

Register their public key (from `loot whoami` on their machine), then deliver a sealed grant over the relay.

```bash
loot peer add bob "ssh-ed25519 AAAA..."
loot grant --relay origin .env bob

# on bob's machine:
loot pull-grants   # verifies alice's signature, checks the peer registry
loot surface       # now bob can read .env
```
