Skip to Content
New to Genbox? Check out our Getting Started guide
Commandsgb opencode

gb opencode

Coming Soon - OpenCode integration is under development.

Start or attach to an OpenCode AI session. OpenCode is an open-source AI coding assistant that works with multiple LLM providers.

Shortcut

gbo # Equivalent to: gb opencode gbod # Equivalent to: gb opencode --direct

Synopsis

gb opencode [options] gb opencode [subcommand] [args]

Description

The opencode command will provide a streamlined interface to start OpenCode sessions on genboxes (cloud or local) or directly on your machine.

Options

OptionDescription
--on <genbox>Use a specific genbox
--directRun directly on this machine (no isolation)
-y, --yesSkip confirmation prompts
-p, --prompt-modeInteractive prompt mode with optional images
-e, --editorUse $EDITOR for prompt input (with -p)
-b, --backgroundRun session in background (with -p)

Subcommands

SubcommandDescription
listList all OpenCode sessions
attach <session>Attach to an existing session
stop <session>Stop a session
kill <session>Kill/destroy a session
migrate <session>Migrate session to another genbox

See Also

Last updated on