@osovv/vvcode
v0.5.4
Published
Packaged CLI for launching OpenCode with vvcode runtime semantics.
Readme
vvcode
vvcode is a Bun-based CLI package for launching OpenCode with preset-driven runtime overlays.
Install
bun add -g @osovv/vvcodeFor local development from this repo:
bun install
bun run cli -- --helpConfig layout
Global config path:
~/.config/vvcode/config.jsoncProject config path:
.vvcode/config.jsoncThe current behavior is:
- Global config is the source of shared presets and profiles.
- Project config is optional for launch if a project root already exists.
vvcode initcreates a minimal project config scaffold.vvcode preset add <name>copies a preset from global config into the project config.vvcode preset remove <name>removes a copied project preset and prunes unused copied profiles.
Quick start
Initialize a project-local config:
vvcode initSee which presets are available:
vvcode preset listCopy a global preset into the current project:
vvcode preset add openaiLaunch OpenCode with a preset:
vvcode opencode --preset openaiOr use the shorthand form:
vvcode --preset openaiCommands
Show help:
vvcode help
vvcode --helpInitialize project config:
vvcode init
vvcode init --project-root /path/to/projectLaunch OpenCode:
vvcode opencode --preset <name>
vvcode --preset <name>Any extra arguments after the vvcode launch flags are forwarded to opencode.
Examples:
vvcode --preset openai run "say hello"
vvcode --preset openai run "say hello" --format json
vvcode --preset openai -p "say hello"-p and --prompt are vvcode shorthand for launching opencode run <message>.
By default vvcode starts the shell with:
opencodeYou can override the shell command, for example:
OPENCODE_SHELL_COMMAND='bun x opencode-ai' vvcode --preset openaiOptions:
--presetfor the preset name.--global-config,-cto override the global config file path.--project-root,-rto launch from a different project root.-p,--promptto shorthand intoopencode run <message>for non-interactive tests.
Manage presets:
vvcode preset list
vvcode preset add <preset-name>
vvcode preset remove <preset-name>preset list prints one preset per line with its source label:
globalprojectproject-overrides-global
Runtime artifacts
.vvcode/local/runtime/overlays/.vvcode/local/runtime/traces/.vvcode/local/runtime/failures/.vvcode/memory/project/.vvcode/memory/agent/.vvcode/local/memory/session/.vvcode/local/memory/subagent/
Packaging notes
- Package name:
@osovv/vvcode - CLI bin:
vvcode - Published runtime entry:
dist/vvcode.js - Build command:
bun run build - Local dev command:
bun run cli -- --help prepackbuildsdistautomatically before publish or pack- Scoped publish target:
npm publish --access=public
