xCloudxCloudDownload
Agents

Import And Export Agents

Move agents between local, PC, and VPS engines with .xcloud-agent packages.

xCloud can export an agent into a .xcloud-agent package and import it into another engine.

Use this when you want to move an agent from your laptop to a VPS, share a public agent, back up an agent, or clone an agent into another setup.

What A Package Includes

A .xcloud-agent package can include:

ItemIncluded
Agent identity filesYes
Instructions and project briefYes
Memory files listed as safeYes
Avatar and image assetsYes
Notes folderYes
Agent UI projectYes, when one exists
.env filesNo
node_modulesNo
build outputNo
.git historyNo

Excluded folders keep packages smaller and avoid leaking secrets.

Export An Agent

  1. Open the agent menu in the sidebar.
  2. Choose Export.
  3. Save the .xcloud-agent file.

xCloud creates a package with a manifest, agent files, and the UI folder if the agent has one.

Import An Agent

  1. Open the sidebar import action.
  2. Choose the .xcloud-agent package.
  3. Wait for the import progress to finish.
  4. The imported agent appears in the sidebar.

If an agent with the same id already exists, xCloud creates a unique id by adding a suffix.

Importing Into A Remote Engine

For a VPS or PC engine, xCloud does more work:

  1. Unpacks the package locally.
  2. Re-packs it into a tar archive.
  3. Uploads the archive to the remote engine in chunks.
  4. Extracts it into ~/.openclaw/workspace/<agent-id>.
  5. Registers the agent in the remote OpenClaw config.
  6. Writes ui-config.json if the package includes an Agent UI.

Large packages can take time. The import progress appears in the sidebar so the app can still be used.

Expected Import Time

PackageLocal engineRemote engine
Small agent, no UISecondsSeconds
Agent with React UISeconds1-3 minutes
Large UI/assetsLongerLonger, depends on network

If it looks stuck, check whether the progress text is still changing. Uploading many chunks can be slow on a VPS connection.

Common Errors

ErrorMeaningFix
Argument list too longA package was passed through a shell command incorrectlyUse the current importer, which uploads package chunks instead of one huge argument
Package is missing agent filesThe archive does not contain the expected agent/ folderRe-export the agent
not a valid xCloud agent packageMissing or invalid manifestChoose a .xcloud-agent exported by xCloud
Import finishes but agent is missingConfig reload failed or active engine changedRefresh agents and confirm the active engine
Agent appears but UI is missingPackage did not include UI or ui-config.json was not writtenOpen the agent UI page and reconnect the UI folder

Security Notes

Before sharing a package publicly:

  • Remove private memory.
  • Remove customer data from notes.
  • Confirm no .env or secret files are inside the UI folder.
  • Test importing into a clean engine.