Skip to content

[Feature]: Add migration tool to import existing OpenClaw conversation history into OpenViking #1011

@deepakdevp

Description

@deepakdevp

Problem Statement

When an existing OpenClaw user installs the OpenViking plugin, they start with zero memory. All past conversations, learned preferences, entities, and context accumulated over weeks or months of OpenClaw usage are lost. OpenViking only captures new interactions going forward.

This is a significant adoption barrier — users with rich conversation history get no benefit from it after enabling OpenViking.

Current Behavior

  • OpenClaw stores conversation transcripts locally (in ~/.openclaw/ or the project's .openclaw/ directory)
  • The OpenViking plugin (examples/openclaw-plugin/) only processes new conversations via hooks
  • There is no tool or script to backfill existing transcripts into OpenViking's memory system
  • Users must start from scratch, losing all accumulated context

Proposed Solution

Add a migration script/CLI command that:

  1. Reads existing OpenClaw conversation transcripts from the local data directory
  2. Feeds them through OpenViking's session API — create sessions, add messages, commit to trigger memory extraction
  3. Runs in batch mode with progress reporting and resume capability (for large histories)

Suggested interface:

# Import all conversations from default OpenClaw data dir
ov migrate-openclaw

# Import from a specific directory
ov migrate-openclaw --source ~/.openclaw/projects/my-project/

# Dry run to show what would be imported
ov migrate-openclaw --dry-run

# Resume interrupted migration
ov migrate-openclaw --resume

Why This Matters

  • OpenClaw has 336k+ stars with a massive active user base
  • OpenViking's value proposition is persistent agent memory — but only for future interactions
  • A migration tool dramatically improves the onboarding experience
  • Users see immediate value (memories from past conversations) instead of waiting days for enough new context to accumulate
  • Similar to how database migration tools exist for framework upgrades

Alternatives Considered

  • Manual transcript paste: Users could paste old conversations into the OpenViking session API, but this is tedious and error-prone
  • Re-run conversations: Not practical for months of history
  • Export/import via MCP: MCP doesn't have a batch import protocol

Feature Area

Session / Memory / CLI

Use Case

Any OpenClaw user who installs the OpenViking plugin and wants their existing conversation context to be available for memory recall and semantic search.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions