Devsy
How it works

Telemetry

The Devsy CLI and the desktop app send usage data to PostHog (us.i.posthog.com). It shows which commands, providers and IDEs people use and which errors they hit. Each event carries an ID that links events from the same installation, and PostHog can estimate a location from the IP address of the request.

The CLI sends the command path without arguments, the kind of workspace source and a short error code. It does not send workspace names, paths, source URLs, secrets or error messages. A test pins its field lists.

Turn telemetry off

Set one of these in the environment of the CLI:

export DO_NOT_TRACK=1
export DEVSY_DISABLE_TELEMETRY=true

DO_NOT_TRACK accepts 1 or true in any letter case. DEVSY_DISABLE_TELEMETRY must be true.

The context option turns off CLI telemetry for a context once its config has loaded. It changes the default context unless you name another one:

devsy context set -o TELEMETRY=false
devsy context set my-context -o TELEMETRY=false

A config-load failure or a panic during a command can still send an event. Use an environment variable for a full CLI opt-out.

The CLI also sends nothing in these cases:

  • A well-known CI variable is set: CI, GITHUB_ACTIONS, GITLAB_CI, CIRCLECI, TRAVIS, TEAMCITY_VERSION or BITBUCKET_BUILD_NUMBER. This does not apply to a command that the desktop app or a platform runner starts.
  • The binary is a development build.

The desktop app sends its own events. It stops when DO_NOT_TRACK is 1 or true in any letter case, or when DEVSY_DISABLE_TELEMETRY is true. To turn them off, start the app with either variable set. Either variable also turns off the CLI commands the app starts.

Workspaces

When Devsy creates a workspace container, it copies the opt-out from the host environment into the container, including a Compose workspace service. DEVSY_DISABLE_TELEMETRY=true is copied as is, and any accepted DO_NOT_TRACK value is copied as DO_NOT_TRACK=1. The agent inside the workspace then stays quiet too. Devsy also adds the opt-out to the setup and run commands it starts in an existing container, so a container created before you opted out is covered for those commands. This does not change the saved environment of the container.

The TELEMETRY=false context option is not copied. To cover workspaces, use the environment variables. The setting has two limits:

  • Running processes keep their existing environment. Restarting a process does not apply the opt-out unless the new process receives it.
  • The in-container SSH server starts through env when you opt out, so the image needs an env binary.

Without an environment opt-out, Devsy gives a newly created single-container workspace the host's telemetry ID, so the agent inside sends events with the same machine_id as the host. It does not inject that ID into Compose workspaces.

What the CLI sends

When recorded, the command event is devsy_cli, or devsy_cli_runner on a platform runner. Some commands that the desktop app polls are skipped. The table lists the only fields the CLI collector sets:

FieldMeaning
type, machine_idThe event name and the distinct ID that PostHog receives.
timestampSet by the CLI. It is not sent as a property.
commandThe command path, such as devsy workspace up, without arguments.
versionThe Devsy version.
desktopWhether the desktop app started the command.
is_ciWhether a well-known CI variable is set. It is always false for commands the desktop app starts. A plain CLI run in CI sends nothing, so it is true only on a platform runner.
is_interactiveWhether standard input is a terminal. It is always false for commands the desktop app starts.
provider, source_type, ideThe provider name, the kind of source and the IDE of the workspace.
error_codeA short error class when the command failed, never the error text.
in_container, workspace_idSet inside a workspace container. workspace_id is a keyed hash of the workspace ID.

The machine_id is normally a keyed hash of the machine ID and your home directory. A devsy_workspace_count event carries count, version and desktop, and the two container fields when it runs in a workspace. Every event also carries os_name, os_arch and timezone of the machine.

What the desktop app sends

Every desktop event carries the app version, the OS name and the CPU architecture. The ID is a keyed hash of the machine ID and your home directory.

  • App events: app_open and app_close.
  • Update events: update_check, update availability and download events, which include the new version, and update errors, which include the error type.
  • Workspace actions: create, start, stop, rebuild, reset, rename, edit, delete and set IDE. Depending on the action, they carry the provider name, the IDE, a keyed hash of the workspace ID or source, and where the action started. They never carry the workspace name.
  • Provider, secret and environment variable actions: no action-specific properties.
  • Interface events: session_start, session_end, page_view and engagement. page_view records the first path and later path changes, without the query string. It replaces IDs in workspace, provider and machine detail paths (such as /workspaces/:id) and includes the screen name, or the path if no screen name is defined. Engagement events name a feature: opening a terminal, opening an IDE, changing a setting or switching context. Depending on the feature, an event can also carry the terminal type (shell or ssh), the IDE name or the key of the setting that changed. A context switch adds only the feature name. Only session_end carries the session length.

The desktop app does not pin its fields with a test. Interface event names can be 1 to 64 characters long. The app considers the first 20 extra properties, keeps keys 1 to 64 characters long, and cuts string values to 256 characters. Treat this list as what the app sends today, not as a limit.

On this page