This guide walks through a local BrainDrive test run with OpenRouter and validates Memory Backup end to end.
- Docker Desktop (or Docker Engine + Compose) is installed.
- BrainDrive local stack is installed and running.
- You have an OpenRouter API key.
- You have a git repository for memory backups and a PAT that can push to that repository.
From repo root:
./installer/docker/scripts/start.sh localOpen:
http://127.0.0.1:8080
In BrainDrive UI:
- Open
Settings. - Set provider credentials for OpenRouter.
- Save settings and verify chat responses are working.
In BrainDrive UI, open Settings -> Memory Backup and set:
Repository URL: HTTPS git URL (for examplehttps://github.com/<org>/<repo>.git)Git Token (PAT/Classic): token with repo push accessFrequency: choose one (Manual,After changes,Every hour,Every day)
Click Save Backup Settings.
- Click
Save Now. - Confirm UI fields update:
Last successful saveStatus = success
- Confirm backup branch exists remotely:
braindrive-memory-backup
- Set frequency to
After changes. - Make a memory change (send a message, create/edit a memory document, etc.).
- Wait roughly 1-2 minutes.
- Confirm
Last successful saveadvances.
- Set frequency to
Every hourorEvery day. - Leave service running past interval window.
- Confirm next backup attempt updates status fields.
- Ensure at least one backup exists in
braindrive-memory-backupbranch. - Mutate a known memory file/content locally (for example, update a memory note).
- Click
Restore from Backup Repoand confirm prompt. - Verify memory content returns to backup state.
Expected restore behavior:
- Restore applies memory snapshot only.
- Secrets are not restored from git backup.
- Runtime/adapter config is not changed by restore.
Use minimum required scope:
- Private repo:
repo - Public repo only:
public_repo
Authentication failed for the backup repository- PAT invalid/expired, missing scope, or missing push permission.
Backup repository was not found or is not accessible- Bad repository URL or insufficient repository access.
Unable to reach the backup repository URL- Network/DNS/proxy issue, or incorrect URL host/path.
Backup branch is not available in the configured repository(restore)- Run
Save Nowfirst to create/sync backup branch.
- Run
memory_backup.repository_url must use https://- SSH URLs are unsupported; use HTTPS URL.