Skip to content

CLI Reference

Terminal window
epoch-agent [OPTIONS]

Required for first-time setup

The activation code from your EpochProxy dashboard. Can also be set via the EPOCH_ACTIVATION_CODE environment variable or in the config file.

Terminal window
epoch-agent --activation-code ABC123XYZ

Path to the configuration file.

  • Default: config/agent.toml
  • Example: epoch-agent -c /etc/epoch-agent/config.toml

Path to store persisted agent credentials after activation. The agent saves its ID and authentication token here for automatic reconnection.

  • Default (Linux): ~/.config/epoch-agent/state.json
  • Default (macOS): ~/.config/epoch-agent/state.json
  • Default (Windows): %PROGRAMDATA%\epoch-agent\state.json
  • Environment variable: EPOCH_STATE_FILE
Terminal window
epoch-agent --state-file /var/lib/epoch-agent/state.json

Address of the EpochProxy API server.

  • Default: https://api.epochproxy.cloud
  • Environment variable: EPOCH_API_ADDR
Terminal window
epoch-agent --api-addr https://api.example.com:50051

Shell executable to use for terminal sessions.

  • Default (Linux/macOS): /bin/bash
  • Default (Windows): cmd.exe
Terminal window
epoch-agent --shell /bin/zsh

Maximum number of concurrent terminal sessions allowed.

  • Default: 10
Terminal window
epoch-agent --max-sessions 5

Force re-activation, ignoring any saved state file. Use this if you need to re-register the agent with a new activation code.

Terminal window
epoch-agent --force-activate --activation-code NEW_CODE

Display help information.

Terminal window
epoch-agent --help

Display version information.

Terminal window
epoch-agent --version
Terminal window
epoch-agent --activation-code ABC123XYZ
Terminal window
epoch-agent \
--config /etc/epoch-agent/config.toml \
--state-file /var/lib/epoch-agent/state.json \
--shell /bin/zsh \
--max-sessions 20
Terminal window
export EPOCH_ACTIVATION_CODE=ABC123XYZ
export EPOCH_STATE_FILE=/var/lib/epoch-agent/state.json
epoch-agent
Terminal window
epoch-agent --force-activate --activation-code NEW_CODE
CodeMeaning
0Success
1General error
2Configuration error
3Connection error