# Repository Briefing: kdcokenny/ocx
> Source: https://repoforai.com/repo/kdcokenny/ocx (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/kdcokenny/ocx
- **Official Docs / Website**: https://ocx.kdco.dev/docs
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: B+ (69/100 · Maintenance 20/35 · Adoption 12/25 · Releases 17/20 · License 20/20)
- **Latest Release**: v2.0.15 (2026-08-17) — https://github.com/kdcokenny/ocx/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: CLI
- **Momentum**: 982 ★ total (+0 24h / +0 7d) · 45 forks
- **Topics**: `ai-agents`, `bun`, `cli`, `ocx`, `opencode`, `package-manager`, `shadcn`, `typescript`
- **When to Use**: Best for: OpenCode users who switch among work, personal, and review profiles, or teams distributing editable components that need reviewable updates. Skip if: You have one stable native configuration, need runtime isolation for untrusted extensions, or expect OCX 3 to work with OpenCode V1.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Profile storage: Plain directories under `~/.config/ocx/profiles/` or `$XDG_CONFIG_HOME/ocx/profiles/`.
- Session selection: Set a default with `ocx profile use work` or override it with `ocx oc -p personal`.
- Install scope: Copy registry components into project `.opencode/` with `--project` or target a named profile with `--profile work`.
- Update review: Use `ocx update --all --project --dry-run` to preview changes and `ocx verify --project` to check file hashes.
- Migration: Preview a V1 import into a new profile without modifying the source profile.
- Versioning: OCX 2.0.15 remains the OpenCode V1 path; OCX 3 alpha targets OpenCode 2.0.3 or later within V2.
```

## Quick Start / Clone
```bash
bun install --frozen-lockfile
bun run --cwd packages/cli build
alias ocx="bun \"$PWD/packages/cli/dist/index.js\""
```
