Agent Device Tokens
The Foxglove Agent authenticates with a device token. You can create a device token from the Devices page, or use the auto-provisioning workflow below.
Auto-provisioning
You can create a device token without associating it to a device upfront. The first time the Foxglove Agent starts with this token, it automatically creates the device and locks the token to it. This method can only be used when the device doesn't yet exist. If you have an existing device, create a token for it directly.
To create an unassociated token, as an admin user:
- Go to the Device Tokens settings page
- Select "Create device token"
- Leave the "Device" blank
- Click "Create"
- Save the token, which will be used during the installation of the Foxglove Agent
Device preapproval
Auto-provisioned tokens can be created preapproved or not. If preapproved, the device is immediately usable when the Agent first starts. If not preapproved, an administrator must "Enable" the device on the Devices page before the Agent can perform further actions.
Admins can also create device tokens via the API. Generate an API key with the deviceTokens.create capability from the API key settings page and use it to create device tokens.
Each Agent installation requires its own unique device and device token. Multi-compute robots sharing a single device aren't supported.
Next install the Agent on your robot.