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

# Store Checkpoints in Another Repository

> Push checkpoint history to a repository separate from your source code.

Configure a [checkpoint remote](https://docs.entire.com/glossary.md#checkpoint-remote) when checkpoint history should follow a different sharing boundary than your source code, such as keeping agent transcripts private for a public project. Your code continues to live in the main repository, and Entire pushes checkpoint data to the separate one.

## Configure the Checkpoint Remote

Create a separate, empty repository for checkpoint data, then run this from your project:

```bash theme={null}
entire configure --checkpoint-remote github:owner/repo
```

The value uses the format `provider:owner/repo`, where the provider is `github` or `gitlab`. This writes:

```json .entire/settings.json theme={null}
{
  "strategy_options": {
    "checkpoint_remote": {
      "provider": "github",
      "repo": "owner/repo"
    }
  }
}
```

Commit and push `.entire/settings.json` when the checkpoint remote should apply to the whole project. That setting is what entire.com reads to locate checkpoint data.

> [!NOTE]
>
> If you mirror your code repository from GitHub, mirror the checkpoint repository too, in the same region. entire.com reads checkpoint data through that mirror, so without it the project shows no checkpoints even though your pushes succeed.

## Keep Checkpoints under the Same Owner

Use a checkpoint repository with the same owner or organization as your code repository. Code at `github.com/acme/app` pairs with `github:acme/app-checkpoints`, because `acme` owns both.

A committed `checkpoint_remote` is inherited by everyone who clones or forks the project. To keep a contributor's session data out of the upstream project's checkpoint repository, Entire ignores the setting when it looks inherited, and uploads checkpoints to the remote you push to instead, following the rules in [Choose Where Checkpoints Are Uploaded](https://docs.entire.com/guides/checkpoints/checkpoint-destination.md). `entire status` shows when and why the setting is ignored.

Entire treats the setting as yours when either of these is true:

* It is in the gitignored `.entire/settings.local.json`.
* Your `origin` and every push URL of the remote you push to are owned by the same account or organization as the checkpoint repository.

Requiring the push remote as well covers contributors who cloned the upstream repository and added their own fork, where `origin` belongs to the upstream project. If your checkpoint repository is owned by a different account or organization than your code, configure it in `.entire/settings.local.json` so it is always used:

```bash theme={null}
entire configure --local --checkpoint-remote github:owner/repo
```

## Push Behavior

When you push code, Entire pushes checkpoint data to the checkpoint repository separately, using the same protocol, SSH or HTTPS, as your Git remote. The checkpoint repository is used regardless of which of your remotes would otherwise receive checkpoints.

If the checkpoint repository cannot be reached, your main Git push still succeeds. Entire keeps the checkpoint data locally and warns that it could not sync.

With the legacy branch storage backend, Entire also fetches existing checkpoint data from the checkpoint repository once, if it has data you don't. The default `git-refs` backend fetches checkpoints on demand instead.

## Use a Separate Token

Set `ENTIRE_CHECKPOINT_TOKEN` to authenticate checkpoint fetches and pushes with a dedicated token, without changing the credentials for your code repository. When it is set, Entire:

* Adds the token to the HTTPS Git operations it runs for checkpoints.
* Rewrites SSH remotes, including `origin`, to the equivalent HTTPS URL for checkpoint operations, so the token can authenticate. If a URL cannot be rewritten, the operation runs over SSH without the token and Entire prints a warning.
* Without a `checkpoint_remote`, applies the token to the remote chosen as described in [Choose Where Checkpoints Are Uploaded](https://docs.entire.com/guides/checkpoints/checkpoint-destination.md).

```bash theme={null}
ENTIRE_CHECKPOINT_TOKEN=<token> git push
```
