New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

agent-anywhere-gateway

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agent-anywhere-gateway

Standalone Agent Anywhere Gateway CLI for controlled machines.

latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 13 Jun 2026

Related posts