# NODE.DC AI Workspace Bridge

Installs the remote Codex worker used by NODE.DC AI Workspace.

AI Hub tarball form:

```sh
npx --yes --package https://ai-hub.nodedc.ru/api/ai-workspace/bridge-package.tgz ai-workspace-bridge setup <setup-code> --gateway https://ai-hub.nodedc.ru
```

Commands:

```sh
ai-workspace-bridge setup <setup-code> [--gateway <url>] [--install-root <path>] [--workspace <path>] [--port <port>]
ai-workspace-bridge status [--install-root <path>]
ai-workspace-bridge doctor [--install-root <path>]
ai-workspace-bridge update [--install-root <path>] [--no-restart]
ai-workspace-bridge start [--install-root <path>]
ai-workspace-bridge stop [--install-root <path>]
ai-workspace-bridge logs [--install-root <path>]
```

The setup code is one-time and short-lived. The CLI does not print the redeemed pairing code or MCP tokens.

`setup` and `update` install bundled NODE.DC Codex skills into the bridge `CODEX_HOME/skills` directory:

- `ai-workspace-context`
- `engine-context`
- `launcher-context`
- `ops-context`

The worker reports `agentVersion`, `protocolVersion`, and `capabilities` in local health and Hub hello metadata. Server-side version gates are controlled by Assistant environment configuration so legacy PowerShell agents can remain available as a fallback until a deploy explicitly requires a newer npm bridge.
