craby-gateway
v0.10.0
Published
Craby desktop gateway CLI
Readme
craby-gateway
CLI package for running the Craby desktop gateway service.
Install
npm install -g craby-gatewayRequires Node 20 or newer.
First-time setup now writes a user config file at ~/.craby-ai/gateway.yaml.
Publish
Set your npmjs access token in the repo root .npmrc file. A checked-in example lives at .npmrc.example, while .npmrc is gitignored:
cp .npmrc.example .npmrcThen edit .npmrc and set:
//registry.npmjs.org/:_authToken=npm_xxxxxxxxxxxxxxxxxxxxBuild and inspect the package contents before publishing:
pnpm --filter @remote-agent/desktop-gateway run pack:checkPublish from the workspace package:
pnpm --filter @remote-agent/desktop-gateway run publish:npmUseful verification commands:
npm whoami --userconfig ../../.npmrc
npm view craby-gateway versionRun
Initialize the user config, inspect local provider versions, then start the gateway:
craby-gateway init
craby-gateway doctor
craby-gateway startcraby-gateway start also auto-creates ~/.craby-ai/gateway.yaml if it does not exist yet.
By default start prints a short startup summary to the terminal and writes detailed runtime logs to ~/.craby-ai/logs/gateway.log. Add --log to mirror runtime logs to the console too:
craby-gateway start --logThe generated YAML is grouped by concern instead of keeping everything flat:
configVersion: 1
gateway:
host: 0.0.0.0
port: 8787
httpsEnabled: false
httpsPort: 8787
apiKey: ...
accessSecret: ...
refreshSecret: ...
enableNativeProviders: true
requireNativeCodex: false
workspaceRoot: ~/...
auditLogPath: ~/.craby-ai/logs/audit.log
gatewayLogPath: ~/.craby-ai/logs/gateway.log
idleTtlMs: 900000Default config values include:
httpsEnabled: falseport: 8787- generated
apiKey,accessSecret, andrefreshSecret enableNativeProviders: true- detailed runtime logs at
~/.craby-ai/logs/gateway.log
Older flat config files are still accepted for compatibility.
The doctor command checks:
- whether the user's machine exposes a working
codex --versioncommand - the bundled
@anthropic-ai/claude-agent-sdkversion installed with the package - the user's machine
claude --versionoutput when that command exists
The package still accepts environment variable overrides. Common ones include:
GATEWAY_HOSTGATEWAY_PORTGATEWAY_HTTPS_ENABLEDGATEWAY_HTTPS_PORTGATEWAY_WORKSPACE_ROOTENABLE_NATIVE_PROVIDERSREQUIRE_NATIVE_CODEXGATEWAY_BOOTSTRAP_PAIRING_CODE_ON_START
You can also point commands at a custom config file:
craby-gateway doctor --config /path/to/gateway.yaml
craby-gateway start --config /path/to/gateway.yaml --logNotes
- The published package ships a bundled, minified gateway entrypoint.
yaml,qrcode-terminal, andpinoare bundled into the published CLI package.- The published gateway does not install
@openai/codex; Codex execution relies on the user's systemcodexcommand orREMOTE_AGENT_CODEX_BIN. @anthropic-ai/claude-agent-sdkstays as a runtime dependency because native Claude integration still loads it dynamically.
