Video wird geladen...
Video konnte nicht geladen werden
finally got around to setting up an always on opencode server so i can run sessions on any device from anywhere takes a few minutes - showed it off here
229,785 Aufrufe • vor 8 Monaten •via X (Twitter)
41 Kommentare

oh my god he is an excalidraw kiddy

lol I just drew this today I'm building my own clawdbot-style thing as an experiment, this is timely (only reason I'm wiring up iMessage is because it's useful to have a group chat with my wife there and we can ask about life stuff like how much have we spent on food)

I've got a self-hosted @opencode and I love it. Beats all the other web-based bots.

I tried setting this up yesterday and ran into 401s

oh i didn't see this lol i just pushed a commit

I love this a ton. Thanks for sharing this! I may finally look into using opencode

Do you have any tips for how to achieve this when I work on multiple projects in multiple folders? Right now I start open code in each folder, but would love to be able to flip through different projects I have OC working on from within one OC instance. Or web instance, etc.

one server can access all folders on web you can hit "open project" and on tui `opencode attach --dir={dir you want to run under}`

i’ve set it up a while ago and started autoinstalling it in my docker containers over tailscale: so it works w/ opencode + autosandboxing the agents

That's all I wanted. You should definitely add some kind of gpg/ssh authentication to make it safe when connecting, even if yeah yeah VPN only.

there's basic auth on the server, if you pause when i show the service file you can see how i setup a password not amazing but works for now

Yeah, would be nice to have better like ssl based. But it's a good step. Can you start your laptop, start a session and then since you forgot to connect to your server, send that session to the server *after* so it keeps running once closing your laptop?

The dream: one dev-env that lives in the background and just waits for you to open any device. The reality: 40 minutes digging into 401, ssh keys and vpn to look at one log for 5 minutes.

Made use of this recently for an opencode iOS app: Runs on my VPS for always on access and on-the-go coding! Sync via gh when i'm on the laptop.

You are very late to the party

Wrote a doc on how you can similar with Private Connect

@ivanfioravanti i use opencode web within my tailscale vpn to use it from my phone with glm, minimax and kimi plans. congrats this is a phenomenal tool

Keep fighting the good fight, big Free Time will tell you to stop, but we must always be working

i was doing so for some time, however at one moment you would like to check the modifications and now you either need to keep nodejs app always on or introduce a process manager in opencode web (the last one is preferred if jumping through multiple projects)

there's a terminal in opencode web - one of the buttons on top right opens it

another feature that would be nice, is to have an iframe to open the page, this can be nicely tied together with a process manager

I have been using opencode this way, there is one annoying thing that sometimes it doesn't sync between TUI and web client, so when I do something from web ui it doesn't show up in TUI and vice versa Hope the synchronisation stuff becomes more stable

Ok cool but when are we getting the opencode integration for American Truck Simulator

i swear i just saw this video after doing this myself to use open-code

been using i for a while. something i would find cool in a remote setup is to able to "re-hydrate" the skills/agents/plugins without needing to do something like `instance/dispose` would avoid needing to log back in on remote. skills,plugins,etc evolved rapidly. (additionally, having a better way to read/write skills/agents/plugin, from server/sdk would be killer) happy to do a PR for both, i currently have my own abstractions as workaroun.

This is very cool. Gonna try it out tonight.

Looks awesome! We ❤️ opencode. If anyone wants to run opencode (alongside claude code and codex) in cloud sandboxes from web and iPhone, check out superconductor.

this is the way. one machine to rule them all

cool!! all i could see was all those codex tokens wasted on "hey" and "asdasd" 😂

with this powerful approach it doesn’t make sense for opencode to have a concept of project which is your current directory almost every session i have now touches multiple directories outside of the one i started the session in.

I’ve been doing the same for the last couple of days. Start on computer, continue on phone. Caffeinate -d. living my best life

Dude… @BowTiedDevil …

Can you guys fix your SDK it doesn’t properly send completion events. Why do we have to poll

Dope! I didn't know there is a web UI.

The persistent session approach solves a real pain point for remote development. Worth considering how session state is handled during reconnection - whether it's full state restoration or just process continuity.

The OpenCode server is underrated! However, the mobile view was not great, so I built a Telegram interface with commands like /projects that basically maps to Opencode sessions, /project switch helps switch sessions. It's working pretty well!

Pro tip: use tmux sessions inside the opencode server. If the connection drops, your work state persists and you can reattach instantly. Been running dev sessions this way for years - saves me from losing progress during those inevitable network hiccups.

thank you, i got the set up done! pretty neat. mobile is looking really good!

There's also a pre-packaged setup for OpenCode + local LLMs in Harbor:

I’ve been running opencode (and other agents) like this for about 6 months. Pub/Priv key log in via Nostr, file browsers, agent sessions, app runners like a mini replit on your own devices.

So are you bald or not?
