# Protect and recover your coding-agent sessions

Unlose captures Claude Code and Codex session files into an owner-only local vault. Hosted sync encrypts the complete capsule on your machine before upload.

## First backup

```sh
npx unlose init
npm install -g unlose
unlose watch --install
```

`init` defaults to https://unlose.sh; pass a URL for your own server. `unlose watch --install` keeps later sessions current. Every run saves locally, then uploads encrypted changes when signed in. GitHub is the default provider. Add `--provider google` to use Google and use that same provider on the dashboard.

## Choose a guide

- [Security and key custody](https://unlose.sh/docs/security.md)
- [Sync, restore, and sharing](https://unlose.sh/docs/sync.md)
- [Hosted service boundaries](https://unlose.sh/docs/hosting.md)
- [CLI and development checks](https://unlose.sh/docs/development.md)

