Connect your laptop
One sign-in in the browser, then every coding tool on your computer (Claude Code, Claude Desktop, Codex, Cursor) talks to Nexara as its own agent, and the coding memory those tools keep on your laptop (CLAUDE.md, AGENTS.md, Cursor rules, Claude Code's own memory files) lands in a Laptop memory project where you and your agents can read it from anywhere.
Three commands. No password ever goes through the terminal.
npm i -g nexara-cli # needs Node 22 or later
nexara login https://app.nexara.ac
nexara connect
nexara sync
Or without a global install: npx nexara-cli login https://app.nexara.ac.
1. nexara login: approve the laptop in your browser
nexara login <your Nexara address> opens a page in your browser called Connect <your computer> laptop. The terminal shows the same link in case the browser does not open.
On that page you choose, once:
- Tools on the laptop: each one you tick becomes its own agent (for example "Claude Code on my-laptop"), so Agents shows exactly which tool did what and you can revoke one without touching the others.
- Where its coding memory goes: a new project Laptop memory (recommended) or an existing project. One folder per repo is created right there, by you. Agents cannot create folders, so this step is what lets
nexara syncfile pages later. - Lock: every synced page gets at least this lock. Restricted is the default, because coding memory tends to name clients and internal systems. Secret is never given to a laptop.
- How its changes land: Suggest (recommended: every page the laptop sends waits for you in Changes), Autopilot, or Direct (needs a fresh two-factor code).
Press Approve this laptop. The browser hands a one-time code back to the terminal on your own computer (a 127.0.0.1 address; nothing leaves the laptop), and the CLI collects one key per agent. They are saved in your user config directory with owner-only permissions:
| OS | File |
|---|---|
| macOS, Linux | ~/.config/nexara/config.json (mode 0600) |
| Windows | %USERPROFILE%\.config\nexara\config.json |
Set NEXARA_CONFIG to put it elsewhere. nexara logout deletes it.
To pick the tools yourself: nexara login https://app.nexara.ac --tools claude-code,cursor. The default is every tool the CLI finds on the computer.
If you already hold an agent key, nexara login --url <origin> --key nxc_... still works without the browser.
2. nexara connect: wire each tool
nexara connect writes the Nexara server into each tool's own config file, with that tool's own key:
| Tool | File | How |
|---|---|---|
| Claude Code | ~/.claude.json (mcpServers.nexara) | streamable HTTP, key in the Authorization header |
| Claude Desktop | macOS ~/Library/Application Support/Claude/claude_desktop_config.json, Windows %APPDATA%\Claude\claude_desktop_config.json | nexara mcp-proxy over stdio (Claude Desktop only speaks stdio); key in the server's env |
| Codex | ~/.codex/config.toml ([mcp_servers.nexara]) | nexara mcp-proxy over stdio; key in [mcp_servers.nexara.env] |
| Cursor | ~/.cursor/mcp.json (mcpServers.nexara) | streamable HTTP, key in the header |
Before any file changes, a copy is saved next to it as <file>.bak-<timestamp>. The terminal prints what changed (keys masked). Other servers in those files are left alone; an older nexara entry is replaced.
nexara connect --dry-run prints the plan and writes nothing. --tools codex,cursor limits it.
Claude Code also gets a SessionEnd hook in ~/.claude/settings.json that runs nexara handoff --auto, so a session that ends without a hand-off still leaves an "Automatic note" in laptop-memory/global/handoff.md. --no-hook skips it; --hook-scope <project/folder> changes where the note goes.
Restart the tool afterwards. Each one shows in Agents as "Laptop (Claude Code)", "Laptop (Codex)" and so on, with the trust and lock you chose; change either there.
3. nexara sync: send coding memory to the cloud
nexara sync reads these files and writes one page each into the Laptop memory project, one folder per repo (global for the user-wide file):
| File on the laptop | Page |
|---|---|
~/.claude/CLAUDE.md | laptop-memory/global/claude-md |
<repo>/CLAUDE.md, <repo>/.claude/CLAUDE.md, <repo>/CLAUDE.local.md | laptop-memory/<repo>/claude-md and friends |
<repo>/AGENTS.md | laptop-memory/<repo>/agents-md |
<repo>/.cursorrules, <repo>/.cursor/rules/*.mdc | laptop-memory/<repo>/cursor-rule-<name> |
~/.claude/projects/<repo key>/memory/MEMORY.md and topic files (Claude Code auto memory) | laptop-memory/<repo>/memory, memory-<topic> |
Repos come from the projects Claude Code has opened on this computer, plus the current directory when it is a git repo, plus any --repo <dir>.
Rules the sync follows:
- Laptop to cloud only. Nothing is ever written back to your computer. Edit the file on the laptop, not the page; the next sync overwrites the page. (Cloud to laptop is out of scope.)
- Unchanged files are skipped (a hash of each file is kept in
sync-state.jsonnext to the config). - Credentials are refused, never stored. The server scans every page; a file that looks like it holds a password or key comes back as "refused (looked like a credential)" in the summary and the rest of the run continues. Move the credential out of the file (or into a
<!-- secret -->block) and sync again. - Caps: 200 KB per file, 5 MB per run.
.nexaraignore: one glob per line, in the repo root or next to the config file. Example:.cursor/**orCLAUDE.local.md.- Suggest trust means each page waits in Changes for you to accept; the summary says "waiting for review". A page for a repo whose folder you did not approve yet is held the same way ("folder not approved yet"): run
nexara loginagain, or make the folder in the app, and sync once more.
nexara sync --watch repeats every 30 seconds (--interval <s>) until you stop it. --dry-run lists what would be sent. --force resends everything.
Revoke a laptop
Open Agents, pick the laptop's agent (or each tool's) and delete it, or revoke its key. A lost laptop is one click per agent; the pages it synced stay. A workspace lockdown revokes every key at once.
Troubleshooting
| Symptom | Cause |
|---|---|
server refused the laptop link (404) | The server is older than the CLI. Ask the owner to update it |
This laptop request has expired in the browser | Requests last 10 minutes. Run nexara login again |
no approval within 10 minutes | The browser page was never approved. Run nexara login again |
| Only "Existing project" offered on the approval page | You are a Member; only an Owner or Admin can start a new project. Pick one you can edit, or ask them to make Laptop memory |
Guests cannot connect a laptop | Guests hold no standing credentials. Ask a Member or the owner |
nexara connect says no key for ... | That tool was not ticked at login. Run nexara login --tools <tool> again |
| A synced page says "waiting for review" | The laptop is on Suggest. Accept it in Changes, or set the agent to Direct in Agents |
| "refused (looked like a credential)" | The file holds something that looks like a key. Remove it and sync again; it was not stored |