kdcokenny/ocx
A TypeScript CLI for portable OpenCode profiles and editable registry components.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
OCX is a TypeScript CLI that manages configuration files around OpenCode rather than replacing its runtime. Each profile is an ordinary directory under ~/.config/ocx/profiles/, or $XDG_CONFIG_HOME/ocx/profiles/ when set. ocx profile use work selects a default; ocx oc -p personal overrides it for a single launch. OpenCode then loads the selected configuration, instructions, agents, and skills.
Registry installation copies component files into a profile or a project's .opencode/ directory. OCX records ownership for updates and removal, while installed files remain directly editable. The source preview builds from packages/cli and runs via bun packages/cli/dist/index.js. The integration shown here is a local CLI and file workflow, not an MCP server or a model-serving layer.
Key Capabilities & Differentiators
OCX separates reusable personal or work configurations from project-scoped extensions. ocx profile add personal --clone work creates a new profile from an existing one. A project can initialize its own scope with ocx init --project and install a named component from a configured registry with ocx add team/review --project. The registry workflow covers agents, skills, and commands, and teams can publish their own registries.
The maintenance workflow is as important as installation: ocx update --all --project --dry-run previews updates before applying them, and ocx verify --project checks installed file hashes. Ownership tracking supports managing files that remain editable after installation. For V1 users, ocx migrate previews an import into a named profile without changing the source. These are configuration and extension-management capabilities; OCX does not add a model backend.
Trade-offs & Limitations
Compared with editing OpenCode configuration directly, OCX adds useful structure when multiple profiles or shared components need ongoing maintenance. Direct editing remains simpler for a single setup: there is no additional CLI version, registry setup, or managed-file ownership to track. OCX preserves the ability to edit installed files, but local edits make it important to review update previews rather than assume registry changes can be applied unattended.
Profile isolation separates configurations; it is not a security sandbox for installed extensions. Registry provenance still matters, and hash verification checks file integrity rather than whether a component is safe to use. The compatibility split is another adoption cost: OCX 3 is a V2 preview, and migrating V1 setups with plugins calls for reviewing the retirement notes and native alternatives rather than assuming parity. OCX is MIT-licensed; check registry components' licenses separately.
Hardware & Deployment Guide
For an OpenCode V1 installation, select OCX 2.0.15 explicitly with npm install -g ocx@2.0.15. The 2.0.15 release also provides a macOS/Linux install script and downloadable binaries with SHA256 checksums. The 3.0.0-alpha.1 prerelease is available through npm install -g ocx@next across platforms, including Windows. OCX 3 targets OpenCode 2.0.3 or later within the V2 series.
To evaluate the preview from source, install Bun and OpenCode V2, run bun install --frozen-lockfile and bun run --cwd packages/cli build, then invoke bun packages/cli/dist/index.js. Profile management runs locally; fetching components depends on access to the configured registry. There is no separate database, container stack, or GPU prerequisite in the installation path. Inference capacity should be sized for the chosen OpenCode workload, not for OCX.
~/.config/ocx/profiles/ or $XDG_CONFIG_HOME/ocx/profiles/.ocx profile use work or override it with ocx oc -p personal..opencode/ with --project or target a named profile with --profile work.ocx update --all --project --dry-run to preview changes and ocx verify --project to check file hashes.OpenCode users who switch among work, personal, and review profiles, or teams distributing editable components that need reviewable updates.
You have one stable native configuration, need runtime isolation for untrusted extensions, or expect OCX 3 to work with OpenCode V1.
Quick Start & Installation
bun install --frozen-lockfile bun run --cwd packages/cli build alias ocx="bun \"$PWD/packages/cli/dist/index.js\""
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| ocx ★ | 982 | — | TypeScript | MIT | A TypeScript CLI for portable OpenCode profiles and editable registry components |
| obsidian-skills | 56.2k | +1.7k | Shell | MIT | Agent Skills plugins for editing Obsidian files and working with vaults |
| rtk | 88.7k | +684 | Rust | Apache-2.0 | A local Rust CLI wrapper that trims command output before coding agents read it. |
| oh-my-claudecode | 41.2k | +108 | TypeScript | MIT | Team-first orchestration for Claude Code, from parallel execution to verificatio |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/kdcokenny/ocx.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about ocx
How does OCX integrate with OpenCode at launch?
ocx profile add work, select it with ocx profile use work, and launch OpenCode with ocx oc. Use ocx oc -p personal to select a different profile for one session. OpenCode loads the selected configuration and extensions; OCX handles profile selection and file management.Does OCX add GPU, VRAM, or server requirements?
Can a company use OCX internally and publish its own registry?
When is OCX preferable to managing OpenCode configuration directly?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy