---
title: "Environment variables"
description: "The environment variables that the Skyworker CLI and installer read."
---

> Documentation Index
> Fetch the complete documentation index at: https://skyworker.system3inference.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Environment variables

| Variable | Read by | Meaning |
| --- | --- | --- |
| `SKYWORKER_LICENSE_KEY` | Installer | The licence key, for CI and for agents. It replaces `skyworker login`. |
| `SKYWORKER_RELEASES_URL` | Installer | Replaces the URL of the release server. For a test or a mirror of your own. |
| `CLOUDFLARE_API_TOKEN` | `init`, `upgrade`, `uninstall`, `git-token`, `notify-url` | A Cloudflare API token with Workers Scripts Write and Workers Containers Write. The default is the wrangler login. |
| `CLOUDFLARE_ACCOUNT_ID` | `init` | The account to deploy to, when the login sees more than one. `--account` wins. |
| `SKYWORKER_URL` | All commands that use the Worker | The Worker URL. `--url` wins. The recorded URL in `install.json` is the last choice. |
| `SKYWORKER_CONTROL_TOKEN` | All commands that use the control API | The control token. The file `~/.skyworker/control-token` wins. `init --url` reads this variable first. |
| `SKYWORKER_APP_URL` | `pair`, `doctor` | The URL of the web client. The recorded URL is the default. |
| `CI`, `GITHUB_ACTIONS` | `init` | In a run with no prompts, `init` does not use the `gh` login for GitHub, because a job token is short-lived. |

A token is never an argument, because an argument is logged. Give a Cloudflare token as `CLOUDFLARE_API_TOKEN` or with `--token-file <path>`. Give a licence key to `skyworker login` or as `SKYWORKER_LICENSE_KEY`.

Source: https://skyworker.system3inference.dev/docs/reference/environment/index.mdx
