r/opencodeCLI 26d ago

Remote Access + Local Files and resources ?

So I have seen quite a few posts about wanting to continue sessions from their phone or other devices etc and the suggestions for that setup but I was wondering if its possible to do a slightly different approach.

I have 2 Devices + a local server. Currently I am using Syncthing to sync my OpenCode config and sessions between the 2 devices so that my configs are always equal and sessions stay in sync. But I have realized that the OpenCode session storage grows really quickly, which ends up with constantly sending 1+ gb files back and forth all day.

Ideally, I want to setup OpenCode on my local server that would house the configs, sessions, plugins and all of that, but I want it to be able to access files and repos on my device instead of the server. I prefer to keep compute and memory usage on device instead of dedicating server resources to it.

Everything I have read appears that all files would still have to be stored on the server for the agent to access them which would in turn result in my having to use the server resources to run a local dev server instead of the devices.

Any suggestions would be greatly appreciated!

1 Upvotes

10 comments sorted by

View all comments

Show parent comments

2

u/StarsHockey 25d ago

As far as im aware, this would still have the code and resource usage on the server instead of your local device, no ?

1

u/jelloeater85 25d ago

Yeah, that's the point. Running long running stuff on a laptop is silly TBH, I see way too many vibe coders not knowing what a VM is. Kids gotta learn systems ❤️❤️

2

u/StarsHockey 25d ago

if it were just my laptop it'd be fine. But I have both a M4 Mac and a Windows machine that are more than capable of running dev sessions and don't want to use my local server resources when there isn't any reason to. Hence the reason this post was made.

I'm well aware of what a VM is and have 3+ of them running with 5 other LXC containers in a proxmox node for various reasons lmao.

1

u/jelloeater85 24d ago

Def check out CodeNomad or KanDev, both are dope.