Administration
Use this reference for updates, advanced setup and terminal operation. Most owners can install and rent from the dashboard using Install and set up. Run these commands only on the computer that owns the installation they affect.
Access from your phone
Use Skulk's Browser access flow. The owner separately grants plugins:read
to view, plugins:manage to manage and plugins:approve to approve proposals and
approval-gated setup. Pairing a browser grants none of these automatically.
See Skulk remote access.
Updates in the dashboard
Update the plugin in Plugins → Installed, then use Set up connection → Update cleanup service on the computer running cleanup. The two updates are separate: cleanup runs its own sealed copy. Ordinary cleanup updates are refused while a rental is open because restarting cleanup ends its rentals. If the action says Required, the publisher has revoked its release or rotated its key, and an update is allowed even with open rentals.
Release metadata lasts one year after signing. Cleanup follows renewals of publisher trust, but its installed release still needs updating before its expiry. Do not disable verification to keep an expired release running.
Changing spending limits or location does not authorize a rental or reset previous attempts. On a separate cleanup computer, Pair the managing computer restores its access and Unpair the managing computer removes it. Cleanup continues to end its existing rentals either way.
What still needs a terminal or an administrator
| Task | Needs | Why |
|---|---|---|
| Turn on the cleanup computer's SSH server | An administrator, once (macOS: System Settings → General → Sharing → Remote Login; Linux: an OpenSSH server) | Operating-system setting outside the plugin |
| Keep Linux cleanup running after sign-out | An administrator may be needed for loginctl enable-linger USER | The install asks logind itself and reports if refused |
| Cleanup that also runs before login | A terminal and sudo | Cleanup as a system service |
| Update a cleanup service installed as a system service, or roll back any cleanup | A terminal on the cleanup computer (sudo for a system service) | Update the cleanup service |
Everything else (installing, the RunPod API key, installing the cleanup service, the SSH key and its authorization, the host key, connecting, approval access, settings, checks, enabling, proposals, approval and release, and on the cleanup computer Change spending limits, Choose where rentals run, Update cleanup service, Pair the managing computer and Unpair the managing computer) is in the dashboard. The terminal commands below do the same and remain for scripting and recovery.
The paired SSH key
The managing computer makes its own Ed25519 Cleanup computer SSH key when
RunPod is installed, and its pairing code carries the public half. Installing
cleanup adds one line for it to the cleanup account's ~/.ssh/authorized_keys,
its comment skulk-runpod-cleanup:HOST_ID/NODE_ID naming the managing
computer's installed owner (the IDs in that computer's owner-target.json):
restrict, forwarding only to the witness and authority ports at 127.0.0.1,
no usable remote listening (permitlisten="127.0.0.1:1", a privileged port the
account cannot bind), and a forced command (ssh-dispatch.sh in the cleanup
storage) that runs only the managing computer's three fixed cleanup commands.
On the cleanup computer, Set up connection → Unpair the managing computer removes every line pairing added, and nothing else; Pair the managing computer takes that computer's pairing code again and replaces the earlier line, for instance after it replaces its key. Pairing accepts only the managing computer this cleanup was installed for. Unpairing stops the managing computer from starting rentals; cleanup keeps running and still ends each rental at its deadline.
OpenSSH has no per-key limit for Unix-domain socket forwarding, so the paired
key could forward to or from a socket the cleanup account can reach. To close
that, an administrator can set AllowStreamLocalForwarding no in the cleanup
computer's sshd_config (for every account, or in a Match User block for the
cleanup account); the plugin uses no socket forwarding.
To use your own key instead, replace the credential under Manage
credentials on the managing computer and authorize it on the cleanup computer
yourself; the terminal form of the connect action below takes
--field cleanup_user=... --field 'cleanup_host_key=...' in place of the
connection code.
The RunPod API key on the cleanup computer
Install cleanup service on this computer hands the key entered under Manage credentials to the cleanup service's own protected store, then retires it there: nothing on that computer uses the plugin's copy afterwards. Entering a key there later does not change the key cleanup uses. Replacing the cleanup service's key is not available from the dashboard yet, because rentals already started stay bound to the exact key they were created with and the account-wide cleanup grant names one key.
In the commands below, MANAGED_ID is the plugin installation ID shown in
Plugins → Installed (it begins with managed.), on the computer where you
run the command. Run every command as your normal account, without sudo,
unless the step says otherwise.
Terminal equivalents of dashboard setup
On the managing computer:
skulk-plugin-service manage-plugin MANAGED_ID -- config setup --output EXPORT_DIRECTORY
skulk-plugin-service manage-plugin MANAGED_ID -- config setup-start --action connect-cleanup --field cleanup_host=CLEANUP_HOST --field 'connection_code=CONNECTION_CODE'
skulk-plugin-service manage-plugin MANAGED_ID -- config setup-start --action prepare-approval
skulk-plugin-service manage-plugin MANAGED_ID -- configure
skulk-plugin-service manage-plugin MANAGED_ID -- config preflight
skulk-plugin-service manage-plugin MANAGED_ID -- config enable
config setup writes the public setup files, including cleanup-pairing.json
(and, on the cleanup computer, cleanup-connection.json).
Use config setup-operation --operation-id ID to observe progress and
config setup-resume --operation-id ID only after correcting a reported
prerequisite. Do not copy internal tokens or edit secret-store locations to
repair setup.
Proposal review and approval:
skulk-plugin-service manage-plugin MANAGED_ID -- proposals list
skulk-plugin-service manage-plugin MANAGED_ID -- proposals review --proposal PROPOSAL_ID
skulk-plugin-service manage-plugin MANAGED_ID -- proposals approve --proposal PROPOSAL_ID
The terminal displays the review and requires typing APPROVE. Keep the printed
operation ID. An expired or changed review must be revalidated; do not replay an
uncertain provider request.
On the cleanup computer, the dashboard's Install cleanup service on this computer has a terminal equivalent that reads the managing computer's two public setup files and prompts for the RunPod API key (budget arguments are decimal US dollars):
skulk-plugin-service setup-plugin MANAGED_ID -- --owner-target OWNER_TARGET_FILE --bootstrap-client-public-key BOOTSTRAP_PUBLIC_KEY_FILE --account ACCOUNT_LABEL --campaign-budget CAMPAIGN_USD --proposal-budget PROPOSAL_USD --hourly-ceiling HOURLY_USD --maximum-acquisitions COUNT --maximum-acquisitions-per-minute RATE --allow-controller-cleanup
Defaults are a 600-second rental lifetime, a 60-second approval window and a
120-second cleanup grace; --lifetime-seconds, --proposal-seconds and
--cleanup-delay-seconds change them. Add --namespace EXACT_NAMESPACE only if
your fabric was configured with an explicit namespace. Account-wide cleanup is
an explicit choice: --cleanup-untracked-running-pods permits cleanup of new
untracked running Pods; repeat --preserve-pod EXISTING_ID for unrelated Pods
that must be preserved. Network Volumes are outside this cleanup grant.
Without --system, the command installs the cleanup service the way the
dashboard does: as your account's own services, with no sudo. Unlike the
dashboard action it does not authorize the managing computer's SSH key; use
Pair the managing computer on this computer's dashboard afterwards, or add
the cleanup_client_public_key from that computer's pairing code to
~/.ssh/authorized_keys yourself with the options above.
Cleanup as a system service
Installed from the dashboard, the cleanup service's two roles (witness and authority) are your account's own background services: launchd agents on macOS, systemd user units on Linux. On macOS they run while you are signed in to the cleanup computer, and signing out stops them; the witness ends its rentals as it stops. On Linux they run while you are signed in and, once lingering is enabled for your account, also after sign-out and from boot.
For cleanup that also runs before anyone signs in, an administrator can install
it as system services instead, on a cleanup computer where it is not yet
installed, by adding --system to the terminal command above. The command asks
for local sudo only to prepare protected storage and register the fixed
services; the services themselves run as your account. Storage is then beneath
/Library/Application Support/SkulkCleanupServices or
/var/lib/skulk-cleanup-services rather than your home folder.
An account has one cleanup installation. A system installation keeps its scope for every later command, and the dashboard's install action refuses an account whose cleanup is installed system-wide. Moving an installation between scopes is a migration, never a fresh setup: a fresh setup would start a new campaign and lose the receipts of existing obligations.
Change existing campaign limits
In the dashboard on the cleanup computer, Set up connection → Change spending limits shows the current limits, what is reserved and what remains, and changes them; it needs owner approval access. From a terminal on the cleanup computer, as the account that owns the cleanup installation, first inspect current limits and consumed reservations:
skulk-plugin-service setup-plugin MANAGED_ID -- campaign-status
Review campaign and copy the returned policy_digest. Then explicitly set the
new total budget, cumulative rental count and per-minute rate:
skulk-plugin-service setup-plugin MANAGED_ID -- campaign-limits --expected-policy-digest POLICY_DIGEST --campaign-budget CAMPAIGN_USD --maximum-acquisitions COUNT --maximum-acquisitions-per-minute RATE
To start the count over, so finished rentals no longer count against the total (a rental still running keeps counting):
skulk-plugin-service setup-plugin MANAGED_ID -- campaign-start-over
The total budget includes existing reservations. Increasing a limit preserves all prior attempts and cleanup obligations; it does not replenish spent capacity. A changed policy requires fresh proposal review and approval. If another owner changed the policy, inspect status again before submitting updated limits. Repeating the identical command after a lost response returns the applied policy. These commands need no service restart.
Choose another qualified location
RunPod's availability listing can be optimistic: a fresh listing can still lead to a capacity rejection. In the dashboard on the cleanup computer, Set up connection → Choose where rentals run lists the qualified locations. From a terminal on the cleanup computer, inspect the locations supported by your installed release:
skulk-plugin-service setup-plugin MANAGED_ID -- placement-status
Choose a value from qualified_data_centers and copy the returned digest:
skulk-plugin-service setup-plugin MANAGED_ID -- placement-select --expected-digest DIGEST --data-center DATA_CENTER
Then prepare and review a new proposal, checking its location and price before approving it. Previously submitted attempts remain recorded; changing placement does not replay them, reset reservations or approve spending. To restore automatic selection, inspect status again and use its current digest:
skulk-plugin-service setup-plugin MANAGED_ID -- placement-select --expected-digest DIGEST --automatic
Update the cleanup service
The cleanup service runs from its own sealed copy of the release, so updating the plugin in Plugins does not update it. After updating the plugin on the cleanup computer, Set up connection there offers Update cleanup service; it needs owner approval access and is refused while any rental or cleanup obligation is open, checked again once the spending authority has stopped approving. If a rental opened in between, cleanup stays on its current release; resume the same operation once every rental is confirmed absent.
When a renewal of the store's publisher trust revokes the release cleanup runs, or rotates the publisher key, cleanup keeps its earlier trust copy (it could not start under the renewal) and the action reads Required. A required update is allowed even with rentals open, and ends them as it restarts: once the earlier trust copy expires, cleanup could not start again at all.
From a terminal, or for cleanup installed as a system service, run there:
skulk-plugin-service setup-plugin MANAGED_ID -- upgrade
Record the printed operation ID. Read status or resume that exact operation after a disconnect; do not invent a replacement operation:
skulk-plugin-service setup-plugin MANAGED_ID -- status --operation-id OPERATION_ID
skulk-plugin-service setup-plugin MANAGED_ID -- resume --operation-id OPERATION_ID
The upgrade restarts both roles; a cleanup service installed with --system
asks for sudo to do so. Both roles must report healthy before the upgrade is
complete. Restarting the witness ends the rentals it holds, as any stop does, so
upgrade while no rental is active. An upgrade keeps the approved Pod setup
profile; it does not reset the campaign. The profile names no Skulk build, so
updating Skulk never requires a cleanup update: each proposal binds the managing
computer's own build (see the Skulk a Pod installs).
A cleanup service installed from an earlier template that pinned a Skulk commit
refuses this update once; end its rentals and install it again.
The Skulk a Pod installs
A Skulk fabric admits one build, so every Pod installs the managing computer's
own build. Preparing a proposal reads the build that computer's Skulk reports
(GET /state, its own nodeIdentities entry) through the same local API and
credential as model requirements, then:
- Source or
install.shinstallation (a commit is reported): expand it withGET https://api.github.com/repos/Foxlight-Foundation/Skulk/commits/COMMIT(unauthenticated, plain SHA response). Not found means the commit is not on the public repository, and the proposal is refused. - Packaged installation (no commit is reported): read
https://releases.foxlight.ai/desktop/linux/VERSION/release.json, the immutable record of that release, and the current macOS recordhttps://releases.foxlight.ai/desktop/macos/latest.jsonwhen it names the same version. Each record that names the version must name the sameskulk_commit; none, or a disagreement, is refused. - Read
install.shat that full commit fromraw.githubusercontent.comand bind its SHA-256.
The proposal's plan carries skulk_build (version, full commit, installer
digest and how it was found), and the approval signs the plan. The Pod
downloads install.sh at that commit, checks the digest with sha256sum -c,
runs it headless with --ref COMMIT, and verifies the checkout's HEAD
before serving. Review, approval and dispatch each reread this computer's
report; a different version, a different commit, or a switch between a checkout
and a package refuses with skulk_build_changed.
Refusals at preparation return the steward result skulk_build_unavailable
with one of skulk_build_unreported, skulk_build_unpublished_commit,
skulk_build_unpublished_release, skulk_build_records_disagree,
skulk_build_installer_unavailable or skulk_build_lookup_unavailable, and a
plain message. Nothing reaches the cleanup computer, and no proposal is kept.
Successful public lookups are immutable facts and are cached by the plugin
process; the local report is always read fresh. The managing computer needs
outbound HTTPS to GitHub and to releases.foxlight.ai while preparing.
For failures and uncertain submissions, use Troubleshooting. Preserve setup identities, campaign records, journals and cleanup receipts during recovery. Deleting state to force a new installation can lose the evidence needed to reconcile an existing rental.