r/opencode • • 8d ago

How can I sync my local opencode setup with vm?

I'm using opencode locally in my pop os. It has various skills, Subagents, plugins, MCP, memory and sessions, I want to migrate this to my Oracle vps which has ubuntu os. What's the easiest way to do it?

I want migration bcz I want to use OpenCode with my mobile - I can easily do ssh with termux and since I'm using vps it runs 24/7. Opencode android app doesn't support ssh as of now it requires a pro version.

Also I want bi directional sync, so when I'm coding through my mobile and added some extra MCPs or skills in vps, it will be synced with my pop os. It can have a cron job like everyday at 7 pm. Or a command which I can use to sync both machines.

0 Upvotes

7 comments sorted by

1

u/shikabane 8d ago

Why have 2 separate installs, just install on VPS and connect to it from your pop OS / phone / etc

1

u/RiseAlternative15 8d ago

I have my main projects and repos installed on pop os. 3 years of data - projects, files, images, documents, obsidian notes, CLIs, and much more. I want mobile usage for remotely working on a side project. Like if I'm on vacation for a week and not have laptop with me so I can code from my mobile and sync it later to my pop os

3

u/shikabane 8d ago

The tokens required to migrate from one system to another will be in the area of a few pennies / cents. Ask your agent to review current install on pop OS, give it ssh access to your VPS, and ask it to prepare the migration with a script and do it.

Then update your local opencode app and phone all to point and connect to the VPS instead. Your VPS will then become the central server with opencode agent. Really no need to have 2 separate installations.

Regarding you having years of projects etc, you should really be using Git (github, gitea, gitlab, forgejo, take your pick) - that way, if you do want separate installation for whatever reason, the separate installs would all be working off a central git repo.

1

u/shikabane 8d ago

Ask your agent to migrate from pop OS to VPS and be done with it

1

u/RiseAlternative15 8d ago

It will take extra tokens. I want script/ repository which can automate this task seamlessly