Repository navigation
Description
Area
CLI
What are you trying to accomplish?
Turn an existing hub back into a standalone install. Here the goal was to make a former hub a Remote Link Child of another Home, which requires a standalone runtime.
What prevents this today?
ocx hub has only invite; nothing undoes hub mode. ocx config unset validates after each key, so the hub keys must be removed in one specific order, and the obvious order fails:
$ ocx config unset runtimeRole
Error: schema_invalid: hub.managementIngress: enabled ingress requires runtimeRole hub
$ ocx config unset hostname
Error: schema_invalid: unauthenticatedLoopbackListener: a port-less listener binds 127.0.0.1:10100, which the public listener on hostname "127.0.0.1" already holds. ...
The order that works is hub → unauthenticatedLoopbackListener → runtimeRole → hostname. Afterwards the keys the hub issued to its clients are still in apiKeys, and Tailscale Serve mappings to the old management/data ports still exist. Nothing points those out.
What should OpenCodex do?
ocx hub disable [--revoke-clients] [--json]removes the hub-only keys in one validated write.- It lists the client keys the hub issued and revokes them with
--revoke-clients. - It prints the restart step for the current supervisor (service, Desktop, or manual start).
- It mentions external publishing that still targets the old ports, such as
tailscale serve statusentries. - Independently,
ocx config unset a b ccould apply several keys as one validated mutation.
Example usage or interface
$ ocx hub disable --revoke-clients
Removed hub settings: runtimeRole, hub, hostname, unauthenticatedLoopbackListener
Revoked 2 hub client keys
Restart to apply: ocx service restart
Note: tailscale serve still forwards :443 and :8443 to ports this proxy no longer serves.
Alternatives or workarounds
Run ocx config unset four times in the order above, then revoke keys and clean up Tailscale Serve by hand.
Additional context
Found while converting a hub (2.58.0) to a Desktop 2.83.0 standalone install.
Checks
- I searched existing issues and documentation.
- This request describes a concrete OpenCodex workflow rather than merely naming a desired technology.
- I removed secrets and personal data.
Activity
lidge-jun commentedon Oct 11, 2026
Fixed on dev by #6954 (squash 862b8f1). Exact-head CI on 55f665e was green (PR CI and Cross-platform CI lane=all 38147206772); an independent review passed on that head.