GitHub remote
GitHub is the default Git backend for claude-second-brain. Your vault is stored as a private GitHub repository — you get version history, access from any device, and Obsidian mobile sync via the bundled Git plugin.
Prerequisites
- A GitHub account
ghCLI — used for authentication and repo creation during setup
Setup (automatic)
When you run npx claude-second-brain and select GitHub as your remote, the CLI handles everything:
- Checks
gh auth status— runsgh auth loginif not authenticated - Creates a private repo:
gh repo create <name> --private --source=. --remote=origin --push - Pushes the initial commit
Manual setup
If you skipped GitHub during setup, or gh wasn't installed, connect it manually:
# With gh CLI
gh repo create my-brain --private --source=. --remote=origin --push
# Without gh CLI
git remote add origin https://github.com/you/my-brain.git
git push -u origin mainSyncing from Obsidian
The vault ships with obsidian-git enabled, so Obsidian commits, pulls and pushes on a schedule.
For iPhone and iPad, see iCloud sync.