Obsidian Git
The workspace is a normal git repository, so Obsidian can open it as a vault and sync it with the Obsidian Git plugin.
Before you start
- You must be a workspace owner. A clone carries everything, sealed secrets included, so fetch needs a workspace-wide secret-level read and push needs
writeplusadmin. - Create a git token: Settings, Git and Obsidian, Create git token. It asks for step-up (TOTP, or your password when TOTP is not enrolled). The token starts with
nxg_, is shown once, lasts 365 days, and works only on/git.
Clone
git clone https://app.nexara.ac/git/<workspace>.git nexara
# user: your email password: the nxg_ token
The workspace id is shown in the remote URL on the Settings page (the first owner's workspace is main unless WORKSPACE was set). Open the folder as an Obsidian vault, install Obsidian Git, and set pull on start and auto commit-and-sync. Add this to .gitignore:
.obsidian/workspace*.json
.obsidian/plugins/
Install plugins on each device. Nexara does not sync plugin code, because a plugin is a program: one shared through a vault would run on every machine that pulls it.
What a push may not contain
A pre-receive hook rejects the whole push if any commit:
- updates a ref other than
main, deletesmainor force-pushes; - adds a symlink or a submodule;
- contains an unsealed
<!-- secret -->block (in any letter case) or asensitivity: secretbody in clear; - contains raw credentials (private keys, cloud tokens, Nexara keys) in any text file, including
.canvas,.txtand.json; - lowers the lock of a page or removes a lock marker, including when the page moves in the same commit (pages are followed by their
id); - changes anything under
.nexara/(folder locks and project settings change only in the app, with step-up); - adds anything under
.obsidian/plugins/; - adds a note at the top of the vault (notes go inside a project folder, or agents and search would never see them);
- has an author or committer starting with
agent:orsystem:(those names are reserved for Nexara).
Secret content appears in the clone only as nxc-sealed:v1: ciphertext. Edit secrets in the web app.
After a push
- Pages without an
idget one, and a page you put inside a locked folder takes the folder's lock. Both happen in one Nexara commit, so pull before your next push. - Each page you changed is recorded as edited by you, the token's owner, whatever name your git client uses. It appears in the page history and the audit log.
- Autopilot treats it as a person's edit: for the quiet period (24 hours by default) agents' changes to that page wait for review.
Troubleshooting
| Symptom | Cause |
|---|---|
401 authentication required: use an nxg_ git token | You used your password or an nxc_ key. Use the nxg_ token as the password |
403 forbidden | You are not an owner of that workspace, or the token belongs to another workspace |
| Push rejected with a reason | One of the rules above. Fix the commit and push again |
Next push rejected: non fast-forward | Nexara added ids or a folder lock after your last push. Pull, then push |