Virtarix documentation

How to Self-Host PicoClaw on a VPS

Install a release that matches the VPS architecture, configure an external provider and operate a limited agent or gateway workflow. Keep the application state and secrets protected through updates and recovery.

01 / OUTCOME AND SCOPE

What this workflow covers

This workflow uses the PicoClaw command-line application on Linux. It does not assume an Android installation, a public launcher interface or an included model provider.

02 / REQUIREMENTS AND COMPATIBILITY

Check the prerequisites first

Confirm compatibility and resources before running a command.

Identify the Linux architecture and select the matching official release asset. Keep enough resources for the agent, tools and intended concurrency; a lightweight core binary is not a capacity guarantee for browser processes or external integrations.

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 PicoClaw

Download a Linux release from the official Sipeed PicoClaw release page, select the architecture reported by uname -m, and verify any integrity information supplied for that release. Extract the trusted release and point PICOCLAW_BINARY to its picoclaw binary.

Inside the VPSInstall PicoClawUbuntuBash
read -r -p "Path to the extracted picoclaw binary: " PICOCLAW_BINARY
test -f "$PICOCLAW_BINARY" || { printf '%s\n' 'Binary not found.' >&2; exit 1; }
mkdir -p "$HOME/.local/bin"
install -m 0755 "$PICOCLAW_BINARY" "$HOME/.local/bin/picoclaw"
export PATH="$HOME/.local/bin:$PATH"
picoclaw version
picoclaw onboard

Record the release and architecture. Do not download a guessed binary filename from an unofficial mirror.

06 / APPLICATION CONFIGURATION

Configure the application deliberately

Use the configuration generated by onboarding and the current configuration reference. The checked documentation separates ordinary configuration from sensitive values in its current security layout; do not copy an older all-in-one secret-bearing example blindly.

Configure your provider and select only the tools and integrations needed. Restrict access to the configuration and security files. Keep any gateway or launcher administration private.

07 / FUNCTIONAL VERIFICATION

Verify function and the permission boundary

Run a harmless one-shot prompt, then inspect the application status:

Inside the VPSVerify function and the permission boundaryUbuntuBash
picoclaw agent -m "What is 2+2?"
picoclaw status

Check that the intended provider was used and that no unrelated tool action occurred. Then test one permitted file action in a disposable workspace and verify a denied action. A successful text response is not proof of every configured integration.

08 / PERSISTENCE AND DAY-TO-DAY OPERATION

Plan persistence and restart behaviour

The command picoclaw gateway starts the gateway workflow. Test it in the foreground before introducing a supervisor. For a simple native Linux systemd user service, use the supplied service file after confirming the binary and home-directory paths.

An administrator should enable the service account's user-service persistence when needed. Test logout, restart and state recovery, and avoid duplicate processes polling the same integration.

Save the following as ~/.config/systemd/user/picoclaw-gateway.service for the same non-root user that owns the configuration:

Inside the VPSPlan persistence and restart behaviourUbuntuINI
[Unit]
Description=Customer-managed PicoClaw gateway
StartLimitIntervalSec=300
StartLimitBurst=5

[Service]
Type=simple
ExecStart=%h/.local/bin/picoclaw gateway
WorkingDirectory=%h
Environment=HOME=%h
Environment=PATH=%h/.local/bin:/usr/local/bin:/usr/bin:/bin
Restart=on-failure
RestartSec=10
TimeoutStopSec=30
UMask=0077

[Install]
WantedBy=default.target
Inside the VPSPlan persistence and restart behaviourUbuntuBash
systemctl --user daemon-reload
systemctl --user enable --now picoclaw-gateway.service
systemctl --user status picoclaw-gateway.service
journalctl --user -u picoclaw-gateway.service -n 50 --no-pager

This is a proposed service wrapper, not an upstream installation guarantee. Confirm that the application uses the expected home and secret files. For logout persistence, an administrator can enable lingering for this application account; then test it rather than assuming it works.

09 / TROUBLESHOOTING

Troubleshoot without widening the risk

SymptomControlled next check
Binary cannot executeCheck architecture, source integrity and the installed file permissions.
Provider authentication failsReview the current secret configuration and the intended provider account.
Gateway has no integration responseCheck the integration's credentials, authorised users and gateway logs.
Upgrade loses configurationRestore the matching state and review the migration notes instead of rebuilding a production configuration blindly.

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

PicoClaw questions

Does a small binary mean any workload fits the smallest VPS?

No. Tools, browser processes, concurrent jobs and state can dominate the resource requirement.

Should I expose the launcher publicly?

Keep administration private unless you have deliberately implemented the documented authentication and network protections.

Can I store all secrets in an old example config?

Use the configuration and security layout for the installed release rather than copying an outdated sample.

Is a release download a Virtarix compatibility test?

No. Validate the selected release on the actual guest image and workload before production use.