Skip to content

Configuring CrewAgent ​

CrewAgent's settings are in C:\ProgramData\CrewAgent\config.yaml. Edit it in Notepad as an administrator, save it, then restart the CrewAgent Service in Windows Services (or restart the computer). Changes only apply after a restart.

The file is in YAML: indentation matters, so keep each setting lined up under its section. Windows paths need doubled backslashes inside quotes, such as "D:\\Sonar".

CrewSpec can also adjust some settings centrally, such as the most data a stream may send. Those changes reach the agent within an hour, without a restart.

Connection ​

SettingMeans
service_tokenThe API token secret, starting cs_. Set during installation.
api_base_url, app_base_urlWhere CrewSpec is. Leave these as they are.
update_check_interval_secHow often to check for updates, in seconds. Default 3600 (one hour).
config_refresh_interval_secHow often to fetch central settings from CrewSpec, in seconds. Default 3600.

Data streaming ​

Settings under data_streaming:.

SettingMeansDefault
watch_directoriesFolders to watch for data files, including their subfolders. Point this at the folder your sonar software records to.C:\DataStreams
file_extensionsWhich file types to send.All supported types
group_name or group_idShow this agent's streams only to one group. The name must match exactly; if CrewSpec can't find the group, streams won't start. Leave both out to show streams to everyone who can view streams.None
staleness_secHow long a file can go without growing before its stream is treated as finished, in seconds.30
max_live_stream_age_secFiles last changed longer ago than this, in seconds, are treated as finished recordings, not live ones.1800 (30 minutes)
max_concurrent_streamsHow many files to stream at once. Each live stream uses an APU.1
upload_existing_filesUpload finished recordings found in the folders once, as files, instead of ignoring them. The token needs attachment/create.false
historical_upload_delay_secWait between those uploads, in seconds.10
max_upload_retriesHow many times to retry a failed upload before giving up on that file.3
max_stream_size_bytesThe largest a stream can be. CrewSpec may set a lower limit.1073741824 (1 GiB)
max_chunk_bytes, stream_interval_msHow much to send at a time, and how often, in milliseconds. Leave these unless support asks you to change them.2097152, 250

For example, to watch two folders and show streams only to the Operations group:

yaml
data_streaming:
  watch_directories:
    - "D:\\Sonar\\Live"
    - "D:\\Video"
  group_name: "Operations"

Screen recording ​

Settings under screen_recording:.

SettingMeansDefault
enabledAllow screen recording from the tray icon.true
output_directoryWhere recordings are saved.C:\Windows\Temp\CrewAgent\recordings
framerateFrames per second. Higher is smoother but sends more data.15
max_width, max_heightShrink large screens to at most this size, keeping their shape. 0 means full size (up to 4096 × 2304).0
bitrateVideo quality in bits per second. 0 picks a rate that keeps text sharp.0
show_tray_iconShow the tray icon.true
show_indicatorShow an indicator while recording.true
always_show_recording_controlShow a red record button on every monitor.On after a normal installation
record_indicator_positionWhere the record button sits: top_left, top_center, top_right, middle_left, middle_center, middle_right, bottom_left, bottom_center or bottom_right.top_center
stream_size_buffer_bytesHow close to the size limit a recording can get before it's stopped.20971520 (20 MiB)

Docs for CrewSpec 26.11.190