askill
aisync

aisyncSafety 100Repository

Sync AI coding sessions from 14 tools (Claude Code, Codex, Cursor, Aider, Cline, Gemini CLI, Continue, Copilot, Roo Code, Windsurf, Zed AI, Amp, OpenCode, OpenRouter) to Obsidian vault as markdown notes. Use when user wants to backup, export, or sync their AI chat sessions to Obsidian, set up automatic syncing, check sync status, or troubleshoot sync issues. Handles secret redaction automatically. Cross-platform (macOS, Linux, Windows).

1 stars
1.2k downloads
Updated 1/15/2026

Package Files

Loading files...
SKILL.md

AI Sessions Sync v2.2.0

Sync AI coding sessions from 14 different tools to multiple output formats with analytics, search, and automatic secret redaction.

Supported Providers (14)

ProviderLocationOutput Folder
Claude Code~/.claude/projects/**/*.jsonlclaude-code-sessions/
Codex CLI~/.codex/sessions/**/*.jsonlcodex-sessions/
Cursor~/.cursor/projects/**/agent-transcripts/*.txtcursor-sessions/
Aider~/.aider.chat.history.mdaider-sessions/
ClineVS Code globalStoragecline-sessions/
Gemini CLI~/.gemini/gemini-cli-sessions/
Continue.dev~/.continue/sessions/continue-sessions/
GitHub CopilotVS Code globalStoragecopilot-chat-sessions/
Roo CodeVS Code globalStorageroo-code-sessions/
WindsurfCodeium/Windsurf app datawindsurf-sessions/
Zed AI~/.config/zed/conversations/zed-ai-sessions/
Amp (Sourcegraph)VS Code globalStorageamp-sessions/
OpenCode~/.local/share/opencode/opencode-sessions/
OpenRouter~/Downloads/openrouter*.json (exports)openrouter-sessions/

Output Formats (5)

FormatDescription
obsidianMarkdown with YAML frontmatter for Obsidian
jsonJSON files (single or per-session)
jsonlJSON Lines for streaming/processing
htmlStatic website with search
sqliteSQLite database with full-text search

CLI Commands

πŸ€– AI Sessions Sync v2.0.0

COMMANDS:
  sync       Sync sessions to output format(s)
  search     Search across all sessions  
  stats      Show usage statistics
  report     Generate detailed report
  status     Show detected sessions
  providers  List supported AI tools
  outputs    List output formats
  config     Get/set configuration

QUICK START:
  aisync sync                    # Sync to Obsidian
  aisync sync -f json html       # Sync to JSON + HTML
  aisync search "function"       # Search sessions
  aisync stats                   # View statistics

aisync sync - Sync Sessions

aisync sync [options]

OPTIONS:
    -o, --output DIR       Output directory (default: auto-detect vault)
    -f, --format FORMAT    Output format(s): obsidian, json, jsonl, html, sqlite
    -p, --provider PROV    Only sync specific provider(s)
    --no-analyze           Skip analytics computation
    --json                 Output results as JSON

EXAMPLES:
    aisync sync                          # Sync to Obsidian
    aisync sync -o ~/ai-sessions         # Custom directory
    aisync sync -f obsidian sqlite       # Multiple formats
    aisync sync -p claude-code cursor    # Specific providers

aisync search - Search Sessions

aisync search <query> [options]

OPTIONS:
    -p, --provider PROV    Filter by provider
    -l, --limit N          Max results (default: 20)
    --regex                Use regex pattern
    --json                 Output as JSON

EXAMPLES:
    aisync search "async function"       # Simple search
    aisync search "error" -p cursor      # Filter by provider
    aisync search "def \w+\(" --regex    # Regex search

aisync stats - View Statistics

aisync stats [-f text|json]

OUTPUT INCLUDES:
    - Total sessions and messages
    - Token usage estimates
    - Sessions by provider
    - Top programming languages
    - Activity patterns

aisync report - Generate Report

aisync report [-o FILE]

REPORT INCLUDES:
    - Overview (sessions, messages, tokens)
    - Insights (productivity patterns, streaks)
    - Breakdown by tool and language

Other Commands

aisync status      # Show vault location and session counts
aisync providers   # List all 12 supported tools
aisync outputs     # List output formats
aisync config      # Get/set configuration
aisync config OBSIDIAN_VAULT "~/vault"  # Set vault path

Installation

Run the installer:

cd ~/.claude/skills/aisync/scripts
./install.sh

This will:

  1. Install Python library and CLI
  2. Set up automatic syncing (platform-specific)
  3. Run initial sync

Cross-Platform Support

PlatformSchedulerAuto-Install
macOSlaunchdβœ… Automatic
Linuxsystemd/cronβœ… Automatic
WindowsTask SchedulerπŸ“‹ Manual (instructions provided)

Configuration

# Option 1: Environment variable
export OBSIDIAN_VAULT="/path/to/your/vault"

# Option 2: Config file
echo 'OBSIDIAN_VAULT="/path/to/your/vault"' > ~/.aisync.conf

# Option 3: CLI
aisync config OBSIDIAN_VAULT "/path/to/vault"

Features

Analytics

  • Token usage estimation
  • Language detection in code blocks
  • Activity patterns (peak hours, streaks)
  • Usage insights

Search

  • Full-text search across all sessions
  • Regex support
  • Filter by provider, date
  • Find similar sessions

Secret Redaction

Automatically redacts 20+ patterns:

  • API keys (OpenAI, Anthropic, Google, AWS)
  • GitHub tokens
  • Database URLs
  • Private keys
  • JWT/Bearer tokens

Troubleshooting

IssueSolution
No sessions foundCheck if AI tools are installed and have sessions
Sync not runningRun aisync status to check
Vault not foundSet OBSIDIAN_VAULT env var
Search not workingEnsure sessions are synced first

Library Files

The skill includes a modular Python library in lib/:

lib/
β”œβ”€β”€ __init__.py          # Main API (sync_all, etc.)
β”œβ”€β”€ cli.py               # Command-line interface
β”œβ”€β”€ models.py            # Data models (Session, Message)
β”œβ”€β”€ redact.py            # Secret redaction
β”œβ”€β”€ search.py            # Search functionality
β”œβ”€β”€ parsers/             # 12 provider parsers
β”œβ”€β”€ outputs/             # 5 output formats
└── analytics/           # Analytics & insights

Install

Download ZIP
Requires askill CLI v1.0+β–Ά

AI Quality Score

96/100Analyzed 2/11/2026

An exceptionally well-documented skill for syncing AI chat histories across 14 different tools into multiple formats. It features clear CLI instructions, comprehensive provider support, and robust security via automated secret redaction.

100
98
95
100
98

Metadata

Licenseunknown
Version-
Updated1/15/2026
Publisheravalidurl

Tags

apici-cddatabasegithubllmsecurity