Agent Anywhere Gateway
Standalone gateway for Agent Anywhere controlled machines.
Install
npm install -g agent-anywhere-gateway
Run
agent-anywhere-gateway \
--server https://agent-anywhere.example.com \
--id office-mac \
--token your-real-token \
--allowed-roots /Users/me/gitrepo \
--provider codex
One gateway can expose multiple local runtimes:
agent-anywhere-gateway \
--server https://agent-anywhere.example.com \
--id office-mac \
--token replace-me \
--allowed-roots /Users/me/gitrepo \
--providers codex,claude-code
Service install
Install the gateway as a current-user service:
agent-anywhere-gateway service install \
--server https://agent-anywhere.example.com \
--id office-mac \
--token replace-me \
--allowed-roots /Users/me/gitrepo \
--provider codex
Manage it with:
agent-anywhere-gateway service status
agent-anywhere-gateway service logs --follow
agent-anywhere-gateway service restart
agent-anywhere-gateway service uninstall
The service command uses native user-level managers: macOS LaunchAgent,
Linux user systemd, and Windows Task Scheduler.
--server accepts the Control Server or Worker URL and expands it to
/api/gateways/{gateway_id}/ws. Use --server-ws-url when you need to pass
the exact WebSocket URL.
The same settings can be provided with environment variables:
AGENT_ANYWHERE_SERVER_WS_URL
AGENT_ANYWHERE_GATEWAY_ID
AGENT_ANYWHERE_GATEWAY_TOKEN
AGENT_ANYWHERE_ALLOWED_ROOTS
AGENT_PROVIDER
AGENT_PROVIDERS
Version: 0.1.1