SPM is a simple, cross-platform local system service manager that provides a unified command-line interface for managing native system services on Windows, Linux, and macOS. It is designed to make service management consistent, simple, and intuitive across platforms.
Main uses and capabilities:
- Unified management of native system services: Linux uses systemd and journald, macOS uses launchd's LaunchAgents or LaunchDaemons, and Windows uses a per-user supervisor with startup integration, or a system-level native SCM service.
- Designed for coding agents: Coding agents (such as Claude Code, Codex, Cursor) commonly use & or nohup to start development servers and worker processes, which die or become orphaned after the session ends, and their output is lost. With spm, agents can launch them as real native services, so they keep running, restart after a crash, start automatically at login, and keep logs readable through spm logs or the built-in MCP server.
- User services require no privilege escalation: The default scope is per-user and does not require sudo. Use --system to explicitly specify a machine-level service.
- Supports service lifecycle management: start, stop, restart, delete, view status, view logs, and more.
- Supports scheduled tasks: Use spm schedule to create scheduled tasks, with support for cron expressions (five-field or six-field), interval timers, persistence, random delay, and time zone settings.
- Supports declarative configuration: Use a spm.toml file to centrally define multiple services and override fields per platform.
- Supports multiple script types: Automatically recognizes .js, .mjs, .cjs, .py, .rb, .sh, .ps1, and the default interpreter can be overridden with --interpreter.
- Supports environment variables and argument passing: Use --env-file and --env to set environment variables, and use -- to separate application arguments.
- Supports system service account selection: Windows system services can select SYSTEM, LocalSystem, LocalService, NetworkService, gMSA, or NT SERVICE... virtual accounts, and can also use regular local or domain users.
Usage:
- Installation: On Linux or macOS, use the installation script; on Windows uses a PowerShell script. The installer verifies the release checksum, installs spm to ~/.local/bin (%LOCALAPPDATA%\Programs\spm on Windows), and installs shell completions. It can also be installed from source using Go 1.27 or later.
- Start your first service: run the spm start command in the application directory to create a native service, set the working directory, start it immediately, enable auto-start, restart on crash, and send output to the logging system.
- Common commands: spm start, spm stop, spm restart, spm delete, spm status, spm logs, spm schedule, spm set, spm unset, etc. Lifecycle commands accept multiple names or all.
- Modify a service: repeat the original start command with --force to update the service configuration.
- System services: use the --system flag; the global --system must be placed before the command, and subsequent operations must also keep --system.
Use cases:
- Persistent operation of development servers and background worker processes.
- Service management started by coding agents.
- Scheduled tasks (backups, checks, synchronization, etc.).
- Scenarios requiring a consistent cross-platform service management experience.
Limitations:
- User services are scoped per user by default; system services require the corresponding permissions (root on Linux, an administrator terminal on Windows, root on macOS).
- The scheduling feature uses systemd timers on Linux, and on-demand schedulers scoped per user/system on Windows and macOS.
- During upgrades the runtime may be updated, but services are not restarted automatically; services that cannot be handed over must be stopped and started manually.
- The uninstaller does not delete managed services or their data; services must be deleted first.
- Some features (such as --group) are Unix-only and will be rejected on Windows.
- Specific fees, prices, platform support details, etc. are not provided in the materials.