Clawith icon indicating copy to clipboard operation
Clawith copied to clipboard

新增一键导出员工按钮

Open laixiao opened this issue 8 months ago • 3 comments

Pre-checks

What problem does this solve?

方便员工迁移、备份和导入到其它设备。

Proposed solution

No response

Willing to contribute?

  • [ ] I'd be interested in working on this.

laixiao avatar Mar 14 '26 05:03 laixiao

Hi @laixiao 👋

Thanks for submitting this feature request! I've analyzed the Clawith codebase to understand the agent data structure and export capabilities.

Analysis

This is a valuable feature request for agent data portability. Here's what I found in the source code:

Relevant Areas:

What Needs to be Exported:

  1. Agent metadata (name, description, soul.md, personality)
  2. Workspace files (focus.md, memory/, workspace/*)
  3. Skill definitions (skills/ directory)
  4. Tool configurations and AgentTool links
  5. Trigger configurations
  6. Calendar events and other integrations

Implementation Approach:

  • Backend: Create a new endpoint (e.g., POST /api/agents/{id}/export) that:

    • Packages all agent data into a ZIP file (or JSON)
    • Includes directory structure for easy re-import
    • Optionally encrypts sensitive data (API keys, tokens)
  • Frontend: Add an "Export" button in the Agent Settings panel that:

    • Calls the export endpoint
    • Downloads the file to the user's device
    • Shows a confirmation with file size and contents
  • Import: Extend the existing agent creation flow to accept import files

Challenges:

  • Handling sensitive credentials (API keys, auth tokens) during export/import
  • Ensuring file paths remain consistent across devices
  • Managing tool/trigger dependencies during import

🌐 Language note: To help more community members participate in the discussion, could you please submit issues in English? You're welcome to include a Chinese translation as well. Thank you! 🙏

This analysis was generated by reviewing the Clawith source code. Please let the maintainers confirm the approach before starting implementation.

Clawiee avatar Mar 14 '26 05:03 Clawiee

Thank you for this great suggestion! Agent export/import is definitely on our radar — it would be very useful for migration, backup, and sharing configurations across environments.

However, since the platform is still evolving rapidly, the internal data formats (agent schema, workspace structure, tool bindings, etc.) are not yet fully stabilized. Implementing export/import now would risk producing files that become incompatible with future versions.

Our plan: Once the platform protocols and data schemas are more settled, we will revisit and implement this feature properly with a stable, versioned export format.

We appreciate your interest in contributing and will keep this issue tracked. Thanks again for the feedback!

wisdomqin avatar Mar 14 '26 08:03 wisdomqin

Thank you for this great suggestion! Agent export/import is definitely on our radar — it would be very useful for migration, backup, and sharing configurations across environments.

However, since the platform is still evolving rapidly, the internal data formats (agent schema, workspace structure, tool bindings, etc.) are not yet fully stabilized. Implementing export/import now would risk producing files that become incompatible with future versions.

Our plan: Once the platform protocols and data schemas are more settled, we will revisit and implement this feature properly with a stable, versioned export format.

We appreciate your interest in contributing and will keep this issue tracked. Thanks again for the feedback!

thanks

laixiao avatar Mar 14 '26 09:03 laixiao