Clone your entire development environment across machines using Claude Code, SMB shares, and automated PowerShell scripts.
Perfect for:
- Parents & kids coding together on separate machines
- Developers with multiple laptops (office + home)
- Teaching assistants managing student environments
- Pair programming setups with instant sync
PC 1 (Main) Network SMB Share (T:\) PC 2 (Secondary)
├── .env ├── secrets/ ├── .env
├── credentials ├── memory/ (80 files) ├── credentials
├── SSH keys ←→ ├── ssh/ ←→ ├── SSH keys
├── .claude/ ├── CLAUDE.md ├── .claude/
└── Node.js + Python └── INSTALL.ps1 └── Node.js + Python
Run one PowerShell script on PC 2. Everything syncs automatically:
- Secrets (
.env, API keys, credentials) - Claude Code configuration & memory (80 markdown files)
- SSH keys for VPS access
- Node.js + Python dependencies
- n8n MCP servers configuration
Result: Identical development environment, no manual copy-paste.
On both PCs:
Network:
- Both PCs on same local network (LAN)
- One PC with shared folder (Primary PC)
- Network access credentials (if using passwords)
On your main PC (ROGSTRIXJH in the example):
- Create a folder:
T:\TwinSetup\(orC:\TwinSetup\) - Copy this repo into it
- Right-click → Properties → Share → Allow network access
- Note the network path:
\\PCNAME\TwinSetup
On your second PC (ASUSZENBOOK in the example):
- File Explorer → This PC → Map Network Drive
- Choose drive letter (e.g.,
T:) - Paste network path:
\\ROGSTRIXJH\TwinSetup - ✅ Reconnect at sign-in (recommended)
Open PowerShell as Administrator and run:
# Option A: Run from mapped drive
cd T:\TwinSetup
.\INSTALL.ps1
# Option B: Run from GitHub (if drive mapping fails)
powershell -ExecutionPolicy Bypass -Command "& { (Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/WoodyJ2H/claude-code-family/main/INSTALL.ps1').Content | Invoke-Expression }"The script will:
- ✅ Verify Node.js, Python, Git are installed
- ✅ Install Claude Code CLI globally
- ✅ Create
C:\CLAUDE CODEfolder - ✅ Copy secrets from network share
- ✅ Copy Claude Code config & memory files
- ✅ Copy SSH keys for VPS access
- ✅ Install Python dependencies
| Item | Source (PC 1) | Destination (PC 2) | Purpose |
|---|---|---|---|
.env |
T:\secrets\ |
C:\CLAUDE CODE\ |
API keys, tokens, database URLs |
credentials.json |
T:\secrets\ |
C:\CLAUDE CODE\JOB SEEKING\ |
Google OAuth tokens |
token.json |
T:\secrets\ |
C:\CLAUDE CODE\JOB SEEKING\ |
Google API refresh tokens |
linkedin-cookie.md |
T:\secrets\ |
C:\CLAUDE CODE\Credentials\ |
LinkedIn session data |
CLAUDE.md |
T:\ |
~\.claude\ |
Global Claude Code instructions |
| Memory files (80 .md) | T:\memory\ |
~\.claude\projects\c--CLAUDE-CODE\memory\ |
Project context & learnings |
| SSH keys (9 files) | T:\ssh\ |
~\.ssh\ |
SSH access to VPS / GitHub |
| MCP config | T:\.mcp.json |
C:\CLAUDE CODE\ |
n8n-mcp, Hostinger, etc. |
- Primary PC: Verify the folder is shared. Right-click → Properties → Share tab → "Share..." button
- Secondary PC: Try UNC path directly:
\\ROGSTRIXJH\TwinSetup(replaceROGSTRIXJHwith your main PC's name) - Check Windows Firewall/Norton: Allow SMB (port 445)
- Open PowerShell as Administrator
- Navigate to
T:\TwinSetupfirst:cd T:\TwinSetup - Run:
.\INSTALL.ps1 - (Not: double-click the .ps1 file)
- Main PC: Set a network password (Microsoft Account or local password)
- Secondary PC: Enter credentials when prompted (domain\username format, e.g.,
ROGSTRIXJH\jhhig) - If still blocked: Disable password protection on the share temporarily
- Reopen File Explorer → This PC → Map Network Drive
- Check "Reconnect at sign-in"
- If network is "Public": Switch to "Private" in Windows Settings
- Download from nodejs.org (LTS version)
- Install, then restart PowerShell
- Verify:
node --version(should show v18+ or v20+)
After editing code on PC 2, sync changes back to PC 1:
# On PC 2
robocopy "C:\CLAUDE CODE\workflows-n8n" "T:\workflows-n8n" /MIR /R:3
robocopy "C:\Users\$env:USERNAME\.claude\projects" "T:\memory" /MIROr use Settings Sync built into VS Code (Ctrl+Shift+P → "Settings Sync: Turn On").
- ✅ No cloud dependency → faster, more private
- ✅ Works offline after initial sync
- ✅ Secrets stay on local network
- ✅ Zero cost, works on any Windows LAN
- ✅ Works on Windows without Linux VM
- ✅ No admin rights required (after initial share setup)
- ✅ Idempotent — safe to run multiple times
- ✅ Easy to customize for your own setup
- T: is the source of truth — always sync TO PC 2 FROM PC 1
- If you edit
.envon PC 2, manually copy it back to T:\ before syncing again - Workflows (n8n) live in the cloud (Hostinger) — not synced locally
Edit INSTALL.ps1 and add copy operations:
Copy-Item "T:\your-folder\*" "C:\CLAUDE CODE\your-folder\" -Force -RecurseCreate a SYNC-BACK.ps1 on the secondary PC:
robocopy "C:\CLAUDE CODE\projects" "T:\projects" /MIR
robocopy "$env:USERPROFILE\.claude\projects" "T:\memory" /MIRUse Task Scheduler to run SYNC-BACK.ps1 nightly:
- Create a task
- Trigger: "On a schedule" → Daily at 2 AM
- Action:
powershell.exe -File C:\path\to\SYNC-BACK.ps1
Scenario: You want your kids to code alongside you, but with their own PC.
- Set up Primary PC (yours) with all your workflows, secrets, and SSH keys
- Give Secondary PC to kid(s) with everything pre-configured
- Teach from same codebase — you edit on your machine, they see it instantly
- Collaborative debugging — both working in the same project folder structure
Example workflow:
Dad (PC 1): Writes n8n workflow
↓ (SMB share)
↓ (INSTALL.ps1)
Kid (PC 2): Sees workflow, asks questions
↓ (Live pair coding)
Kid (PC 2): Modifies the workflow
↓ (Manual copy back to T:\)
Dad (PC 1): Reviews changes
Scenario: You and a colleague each have a laptop, and you want to work on the same codebase.
- Main developer shares their setup folder
- Colleague maps the network drive and runs the script
- Both have identical environments in 5 minutes
- Collaborate using VS Code's Live Share extension (optional)
Found a bug or want to add a feature?
- Fork this repo
- Create a branch:
git checkout -b fix/your-issue - Commit your changes
- Push and open a Pull Request
Common issues to report:
- PowerShell execution problems on your Windows version
- Firewall/antivirus blocking the script
- Missing dependencies or incompatible tool versions
- Network share not appearing in File Explorer
MIT License — use, modify, and share freely.
Built to solve the "I want my second PC to be identical to my first" problem without cloud storage, manual copying, or complex tooling.
Inspired by DevOps practices (Infrastructure as Code) applied to personal development setups.
Ready to sync? Map that network drive and run INSTALL.ps1. 🚀