Legacy reference: this page describes OCX 2 for OpenCode V1. For OCX 3 and OpenCode V2, see the V2 documentation.
Usage
Description
Initialize OCX configuration in your project directory or globally. When used with--registry, scaffolds a new OCX registry project.
Flags
Examples
Initialize Local Project
.opencode/ocx.jsonc in the current directory with a default registry configuration.
Initialize Global Configuration
~/.config/opencode/ with base configuration. This is required before creating profiles.
Scaffold a New Registry
See Also
- Quick Start — End-to-end setup walkthrough.
- ocx add — Add components after initialization.
- ocx registry — Manage registries.