Browse documentation

Reference

Environment variables

Configure device selection, agent access, persistence, and terminal output.

Variables

VariablePurpose
PHONE_USE_DEVICElaunch, connect, or a simulator UDID
PHONE_USE_CLOUD_URLControl-plane URL (set by phone-use login)
PHONE_USE_CLOUD_TOKENAPI key for cloud phones (set by phone-use login)
PHONE_USE_SANDBOX_URLA cloud phone's endpoint — routes every verb to it
PHONE_USE_SANDBOX_TOKENThat phone's session token
PHONE_USE_RUNNER_URLOn-device runner endpoint (physical phones)
ANTHROPIC_API_KEYBuilt-in task loop and embedded sessions
PHONE_USE_MODEobserve, default, or auto
PHONE_USE_MODELBuilt-in agent model
PHONE_USE_MAX_STEPSMaximum agent iterations
PHONE_USE_NOTESScratchpad persistence file
PHONE_USE_MAP_DIRApp-map directory
PHONE_USE_SKILL_DIRCompiled-skill directory
PHONE_USE_TRACE_MODEon, on-failure, or off when unset
PHONE_USE_TRACE_OUTPortable trace zip destination
PHONE_USE_LIVE_PORTViewer port; defaults to 4936
NO_COLORDisable terminal styling

Traces

bashphone-use
export PHONE_USE_TRACE_MODE="on-failure"
export PHONE_USE_TRACE_OUT="$PWD/phone-use-trace.zip"