Codex skill to repair 9Router Docker CLI tool detection with host-home symlinks.
Make 9Router Docker read and write the host CLI configs, not copied container-only configs. This prevents fake dashboard state after switching from npm 9Router to Docker.
9Router CLI tool status routes use os.homedir(). In npm mode this is usually /home/user; in Docker it is /home/node. Detection checks which <tool> first, then falls back to specific config files under the container home. Host binaries and config files are invisible unless mounted or linked.
-v "$HOME:/home/user".scripts/sync-9router-cli-symlinks.sh to create /home/node symlinks to /home/user.ls -la./api/cli-tools/all-statuses.Use the bundled script instead of hand-pasting long docker exec commands:
bash /home/user/.codex/skills/9router-docker-cli-sync/scripts/sync-9router-cli-symlinks.sh
Optional container name:
bash /home/user/.codex/skills/9router-docker-cli-sync/scripts/sync-9router-cli-symlinks.sh my-9router-container
The script is idempotent. It removes only target paths under /home/node in the container, then recreates them as symlinks to /home/user.
The 9Router repo currently checks these paths:
Claude /home/node/.claude/settings.json
Codex /home/node/.codex/config.toml
OpenCode /home/node/.config/opencode/opencode.json
Kilo /home/node/.local/share/kilo/auth.json
Cline /home/node/.cline/data/globalState.json
Droid /home/node/.factory/settings.json
OpenClaw /home/node/.openclaw/openclaw.json
Hermes /home/node/.hermes/config.yaml
DeepSeek TUI /home/node/.deepseek/config.toml
JCode /home/node/.jcode/config.toml
JCode env /home/node/.config/jcode/provider-9router.env
Copilot /home/node/.config/Code/User/chatLanguageModels.json
Cowork /home/node/.config/Claude-3p or /home/node/.config/Claude
sudo docker exec 9router sh -lc 'ls -la /home/node/.codex /home/node/.claude /home/node/.config/opencode /home/node/.local/share/kilo'
curl http://127.0.0.1:20128/api/cli-tools/all-statuses
Expected symlinks:
/home/node/.codex -> /home/user/.codex
/home/node/.claude -> /home/user/.claude
/home/node/.config/opencode -> /home/user/.config/opencode
/home/node/.local/share/kilo -> /home/user/.local/share/kilo
Check these in order:
-v "$HOME:/home/user"; otherwise symlinks point to missing targets.Mounting $HOME:/home/user exposes the full host home to the 9Router container. Prefer exact folder mounts for least privilege, but use host-home symlinks when the user explicitly wants real host config behavior across all tools.