# Deploy keys

> An SSH key for one server and one repository, read-only by default.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://git.docs.sypnia.com/access/deploy-keys/

For agents: Deploy keys: an SSH public key added to one repository (Settings → Deploy keys or `npx @sypnia/git deploy-keys add <repo> key.pub [--write]`), read-only unless --write, never able to bypass protected branches; one key per repository; last-used shown; revoke anytime.

A deploy key lets one server read one repository, without a person's account.

```bash
npx @sypnia/git deploy-keys add laespiga/web ./deploy_key.pub
```

- **Read-only** by default; `--write` lets it push, but never past a protected branch.
- **One repository per key.** For several, use one key each.
- The repository shows when each key was **last used**; revoke any of them at once.
