Skip to content

Installing CrewAgent ​

1. Create an API token ​

In CrewSpec, open Administration → API Tokens and select +.

  • Token Name: the computer or vessel, such as "Survey Vessel 1 sonar PC". Viewers see this name on its streams.
  • Permissions: add stream/create/all. If the agent should also upload older files it finds (upload_existing_files), add attachment/create too.
  • Expiration Date: Never is simplest for a computer that's always on board. If you choose a date, plan to rotate the token before then, or the agent stops working.

Copy the Token Secret when it's shown. It starts with cs_, and you can't see it again.

2. Download ​

On the same screen, select Download Agent Installer, then Proceed with Download.

The Download Agent Installer dialog explaining that the agent runs on Windows and asks for an API token during installationThe Download Agent Installer dialog explaining that the agent runs on Windows and asks for an API token during installation, phone

You get crewagent.zip, containing:

  • crewagent.exe: the agent and its installer
  • config.yaml: the starting configuration
  • README.txt

Copy the ZIP file to the Windows computer and extract it.

3. Install ​

  1. Optionally, edit config.yaml first to set the folders to watch. You can also do it later.
  2. Double-click crewagent.exe. Windows asks for administrator permission.
  3. When asked, paste the token secret and press Enter. If config.yaml already has a valid token, it isn't asked for.

CrewAgent then installs itself:

WhatWhere
ProgramC:\Program Files\CrewAgent\crewagent.exe
ConfigurationC:\ProgramData\CrewAgent\config.yaml
Service logC:\ProgramData\CrewAgent\crewagent.log
Tray app logC:\ProgramData\CrewAgent\crewagent-ui.log
Screen recordingsC:\Windows\Temp\CrewAgent\recordings, unless you choose another folder

It registers the CrewAgent Service, which starts automatically with Windows and restarts itself if it stops unexpectedly. A tray icon starts for each person who signs in to Windows.

Running the installer again on a computer that already has CrewAgent offers to uninstall it instead.

The tray icon ​

Right-click the CrewAgent icon in the Windows notification area:

  • Record the screen. With more than one monitor, Record Screen lets you choose which one. A Windows notification confirms the stream has started.
  • End Stream stops it. The recording is saved and the stream ends.

If enabled in the configuration, a red record button also sits on each monitor; click it to start recording that monitor.

Only one screen can be recorded at a time, and each stream uses one of your APUs.

Updates ​

CrewAgent checks for updates every hour and installs them by itself. It never updates during a stream; it waits until the stream ends. If an update can't be installed, it keeps the version it has.

Uninstalling ​

Run crewagent.exe again and answer y when asked whether to uninstall, or run crewagent.exe -uninstall from an administrator command prompt. This removes the service, the tray app's startup entry and C:\ProgramData\CrewAgent, including its configuration and logs.

Then delete its API token in CrewSpec.

Command-line options ​

From an administrator command prompt:

CommandDoes
crewagent.exe -installInstalls, using the config.yaml beside it. It only asks for the token if that file doesn't have one.
crewagent.exe -uninstallUninstalls
crewagent.exe -consoleRuns in the window instead of as a service, to test a configuration. Automatic updates are off in this mode.
crewagent.exe -uiStarts only the tray app

Docs for CrewSpec 26.11.190