Attach
Open a shell in the project’s sandbox, load the generated server environment, then attach to the running server:Replace
<sandbox> with the project’s sandbox name (celly-<slug>). You can
find it with /project status <name>, which reports the host port, or from
sbx ls.opencode attach accepts -s, -p, and -c flags for selecting what to
attach to. Run opencode attach --help in the sandbox for the exact semantics
of your installed OpenCode version.
What is shared
- The
opencode serveprocess is the same one Celly supervises, so sessions created in Discord appear in the terminal and vice versa. - The server password lives in
~/.config/celly/opencode.envinside the sandbox (mode0600) and in the bot database. Sourcing it is what letsopencode attachauthenticate to the loopback server. /project statusshows the sandbox state, host port, and session count. Any reply that would contain the server password is ephemeral and masked.
Caveat: terminal-started sessions
A session you start only from the terminal, with no Discord thread behind it, is not routed to Discord. The event router only renders turns into a thread that owns the session; terminal-originated turns are rendered into the owning session’s most recent thread if one exists, otherwise they are ignored. To keep a conversation on both surfaces, start it from Discord (or/resume it
into a thread) and then attach from the terminal.
Related
- Commands —
/project status,/resume, and the rest. - Deployment — running Celly as a service.