Virtarix documentation

How to Self-Host Paperclip on a VPS

Prepare a private, customer-managed Paperclip environment with an appropriate Node runtime, persistent database state and deliberately configured agent credentials. Validate the installation before enabling external access or consequential agent actions.

01 / OUTCOME AND SCOPE

What this workflow covers

The server hosts the application and its state. The agents or model providers connected to it have their own credentials, permissions and charges. A working application page does not establish safe agent permissions or a tested recovery process.

02 / REQUIREMENTS AND COMPATIBILITY

Check the prerequisites first

Confirm compatibility and resources before running a command.

The checked Paperclip CLI documentation requires Node.js 24.11.0 or newer. Verify the actual executable on PATH before using the packaged CLI. Choose storage and recovery procedures for the application's database and files, not only for the executable.

03 / SAFETY AND ACCESS BOUNDARIES

Plan permissions and network exposure

Security first: keep credentials, file access and administrative endpoints restricted.

Use a dedicated, non-root application account and grant only the permissions the workflow needs. Keep model-provider keys, repository credentials, messaging tokens and Virtarix management credentials separate. Do not give the agent unrestricted access to unrelated home directories or production systems.

Keep administrative interfaces private. A prompt, repository file, website or incoming message is untrusted input; it should not become authority to read secrets, widen permissions or perform destructive operations. Review tool permissions and require confirmation for consequential actions.

The VPS is the runtime environment, not an included model service. External provider use may create separate charges. Persistent execution must comply with the Acceptable Use Policy, including sustained CPU-use restrictions.

04 / ENVIRONMENT PREPARATION

Prepare a controlled Linux environment

Start on a non-production Linux VPS and record its image, architecture and resource allocation. An administrator should prepare required system packages and recovery access; run the application itself from its own non-root account. Use the current upstream instructions for dependencies rather than installing a guessed runtime version.

Collect the basic environment information:

Inside the VPSPrepare a controlled Linux environmentUbuntuBash
id
uname -m
cat /etc/os-release
free -h
df -h "$HOME"
command -v curl

Stop when a dependency, supported architecture or resource requirement is not met. Do not continue by disabling a protection or silently choosing a different installation path. Keep a record of the version installed and the date of the check.

05 / INSTALLATION AND COMPATIBILITY RESULT

Install Paperclip

Use the documented managed CLI installation from the application account:

Inside the VPSInstall PaperclipUbuntuBash
node --version
npx paperclipai install
export PATH="$HOME/.local/bin:$PATH"
paperclipai --help
paperclipai onboard --yes

Stop if the Node version is below the requirement. Review the onboarding output and the actual local configuration before adding credentials or exposing the service. Preserve the installation version and manifest with the operating record.

06 / APPLICATION CONFIGURATION

Configure the application deliberately

Begin with local/private access and configure the intended instance. Review its database choice, data directory and authentication before adding agent adapters. Use a separate provider credential for each integration where the provider supports that arrangement.

Grant access only to the repositories and systems required by the workflow. A coordinator's ability to dispatch work should not automatically grant each connected agent unrestricted infrastructure access.

07 / FUNCTIONAL VERIFICATION

Verify function and the permission boundary

Create a disposable test workspace or organisation and connect one bounded agent workflow. Verify an allowed action, a denied action and the resulting record. Inspect the actual application state and logs rather than treating a rendered UI as proof that the provider and worker are functioning.

Confirm that an unauthorised client cannot access administrative functions and that the selected database is persistent.

08 / PERSISTENCE AND DAY-TO-DAY OPERATION

Plan persistence and restart behaviour

After the managed CLI installation and configuration are correct, use the documented Linux service installation:

Inside the VPSPlan persistence and restart behaviourUbuntuBash
paperclipai service install --enable-linger

The command registers the instance with the supported supervisor and may request authorisation for lingering. Follow its reported service details to inspect status, then test a logout and a controlled reboot. Do not add a second competing supervisor for the same instance.

09 / TROUBLESHOOTING

Troubleshoot without widening the risk

SymptomControlled next check
Unsupported Node versionUpdate through an approved Node installation method, then confirm the executable on PATH.
CLI missing after installCheck the managed installer's output and the user-local binary path.
Application starts but a worker failsReview the adapter, provider credentials and scoped tool environment.
Data appears missing after restartConfirm the instance, database and data path before creating a new empty configuration.

Stop when the observed result differs materially from the expected state. Collect a redacted error and environment record before choosing a different path.

10 / UPDATES AND RECOVERY

Update and recover with matching state

Before an update, preserve the configuration and application state with a recovery method appropriate to that application. Stop or quiesce writes where consistency requires it. Keep the copy separate from the active server and protect the secrets it may contain.

Record the current binary or package version, runtime dependencies, configuration and service settings. Test the proposed change on a separate environment before changing production. An older executable may not understand a database or state file migrated by a newer version; rollback can require restoring the matching state, not just replacing the binary.

After recovery, repeat the provider, tool, access-control and restart checks. One platform backup and one snapshot are included with the VPS, but independent copies and the application-level restore process remain your responsibility.

11 / RELATED RESOURCES

Related hosting and operating resources

AI Agent VPS · AI self-hosting guides · Infrastructure · Acceptable Use Policy

Paperclip questions

Is the application managed by Virtarix?

No. You operate the runtime, application, data and integrations.

Does installing the CLI include model-provider access?

No. Provider credentials and charges are separate.

Is a live process enough to prove recovery works?

No. Test the state, authentication and a bounded workflow after a restart and after a restore.

Can I roll back by changing only the binary?

A database or state migration can require restoring the matching data. Check the release's recovery guidance before an update.