> ## Documentation Index
> Fetch the complete documentation index at: https://capy.sc/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# capy redeem: Accept an Invite to a Capy Org

> Join a Capy organization with capy redeem <code>. The service unwraps the outer layer; your machine unwraps the inner layer locally using the invite token.

## Synopsis

```bash theme={null}
capy redeem <code>
```

## Description

Accepts a one-time code produced by `capy invite`. Authenticates you (if you aren't already logged in), verifies your identity matches the invite, strips the outer wrap via the service, and strips the inner wrap locally using the invite token baked into the code.

If the authenticated email doesn't match the one the inviter targeted, decryption fails cryptographically - not by policy.

On success, Capy:

1. Switches the active org to the one you just joined.
2. Writes the org's master key to `~/.capy/orgs/{orgId}/users/{userId}/key.enc`, double-wrapped for local storage.
3. Records the org as the default for future commands.

## Example

```bash theme={null}
$ capy redeem CAPY-INV-k3n4...ZxYw
✔ Signed in as alice@example.com
✔ Joined organization "Acme Corp"

Next: cd into a project that uses Acme Corp, then run `capy` to sync.
```

## See also

* [`capy invite`](/cli/invite)
* [Cryptography → Inviting a new member](/internals/cryptography#inviting-a-new-member)
