Skip to content

CLI Reference

Dexicon CLI (dexicon) is a tool to discover, parse, and upload AI coding assistant session logs to Dexicon for search and analysis.

Installation

Using Homebrew (macOS/Linux):

bash
brew install Dexicon-AI/tap/dexicon

Using curl (macOS/Linux):

bash
curl -sSL https://raw.githubusercontent.com/Dexicon-AI/get-dexicon-cli/main/install.sh | sh

Using PowerShell (Windows):

powershell
irm https://raw.githubusercontent.com/Dexicon-AI/get-dexicon-cli/main/install.ps1 | iex

Commands

dexicon sync

Upload AI coding sessions for the current directory to Dexicon. Only sessions associated with the current folder/git repo will be synced.

bash
dexicon sync [options]

Options:

OptionDescription
--days DAYSNumber of days to sync (default: 30)
--forceRe-upload sessions even if already uploaded
--reset-ledgerClear upload history before syncing
--first-time-flowTreat as first sync (show onboarding prompts)
--debugShow verbose per-session processing details
--dry-runShow what would be synced without uploading
--no-claudeDisable Claude Code ingestion
--no-cursorDisable Cursor ingestion
--no-vscodeDisable VS Code ingestion
--no-copilotDisable GitHub Copilot CLI ingestion
--no-codexDisable Codex CLI ingestion
--only-claudeUpload only Claude Code sessions
--only-cursorUpload only Cursor sessions
--only-vscodeUpload only VS Code sessions
--only-copilotUpload only GitHub Copilot CLI sessions
--only-codexUpload only Codex CLI sessions
--allSync all registered repositories (for scheduled/batch syncs)
--trigger TRIGGERLog trigger source (e.g., 'cron' for scheduled syncs)

Examples:

bash
# Sync last 30 days (default)
dexicon sync

# Sync last 7 days
dexicon sync --days 7

# Preview what would be synced
dexicon sync --dry-run

# Re-upload all sessions
dexicon sync --force

# Sync only Claude Code sessions
dexicon sync --only-claude

# Sync all registered repos (useful for cron jobs)
dexicon sync --all --trigger cron

dexicon init

Initialize configuration and discover IDE logs. Sets up source paths, registers repositories, and optionally enables automatic syncing.

bash
dexicon init [options]

Options:

OptionDescription
--dry-runShow what would be configured without making changes
--skip-reposSkip repository registration and schedule setup
--repos-dir DIRDirectory to scan for repos (non-interactive, can repeat)
--auto-enable-scheduleEnable automatic syncing (non-interactive)

Examples:

bash
# Interactive setup
dexicon init

# Preview configuration changes
dexicon init --dry-run

# Non-interactive setup with specific directories
dexicon init --repos-dir ~/projects --repos-dir ~/work --auto-enable-schedule

dexicon login

Log in to Dexicon via browser using device authorization flow.

bash
dexicon login [options]

Options:

OptionDescription
--forceRe-authenticate even if already logged in

Examples:

bash
# Log in (opens browser)
dexicon login

# Force re-authentication
dexicon login --force

dexicon discover

Show detected AI coding agent chat locations. Displays paths where session data was found for Claude Code, Cursor, VS Code, Copilot CLI, and Codex CLI.

bash
dexicon discover

Example output:

Detected AI coding agent locations:
  Claude Code: ~/.claude/projects
  Cursor: ~/Library/Application Support/Cursor/User/workspaceStorage
  VS Code: ~/Library/Application Support/Code/User/workspaceStorage
  Copilot CLI: ~/.local/share/gh-copilot
  Codex CLI: ~/.codex/sessions

dexicon add-agent-instructions

Append Dexicon MCP instructions to AGENTS.md and/or CLAUDE.md files in the current directory.

bash
dexicon add-agent-instructions [options]

Options:

OptionDescription
--dry-runShow what would be updated without writing files

Examples:

bash
# Add instructions to agent config files
dexicon add-agent-instructions

# Preview changes
dexicon add-agent-instructions --dry-run

dexicon stats

Show session statistics for the current directory.

bash
dexicon stats [options]

Options:

OptionDescription
--days DAYSNumber of days to analyze (default: 30)

Examples:

bash
# Show stats for last 30 days
dexicon stats

# Show stats for last 7 days
dexicon stats --days 7

dexicon clean

Delete all exported sessions.

bash
dexicon clean [options]

Options:

OptionDescription
--forceSkip confirmation prompt

Examples:

bash
# Delete with confirmation
dexicon clean

# Delete without confirmation
dexicon clean --force

dexicon config

View or update IDE log paths and settings.

bash
dexicon config [options]

Options:

OptionDescription
--cursor-path PATHManual path to Cursor logs
--claude-code-path PATHManual path to Claude Code logs
--copilot-cli-path PATHManual path to Copilot CLI session transcripts
--vscode-storage PATHManual path to VS Code workspaceStorage directory
--codex-path PATHManual path to Codex CLI sessions directory
--api-key API_KEYLegacy API key (prefer dexicon login instead)

Examples:

bash
# View current configuration
dexicon config

# Set custom Claude Code path
dexicon config --claude-code-path ~/custom/claude/path

# Set custom Cursor path
dexicon config --cursor-path ~/custom/cursor/path

dexicon mcp setup

Configure MCP (Model Context Protocol) for coding agents like Claude Code and Cursor.

bash
dexicon mcp setup

This interactive command helps you set up MCP integration with your preferred coding agent. For detailed MCP configuration, see the MCP Server documentation.


dexicon repos

Manage the repository registry for automatic syncing.

dexicon repos list

List all registered repositories.

bash
dexicon repos list

dexicon repos add

Add a repository to the sync registry.

bash
dexicon repos add <path>

Example:

bash
dexicon repos add ~/projects/my-app

dexicon repos remove

Remove a repository from the registry (by path or remote URL).

bash
dexicon repos remove <target>

Examples:

bash
# Remove by path
dexicon repos remove ~/projects/my-app

# Remove by remote URL
dexicon repos remove git@github.com:user/my-app.git

dexicon repos scan

Scan a directory for git repositories and register them.

bash
dexicon repos scan <directory> [options]

Options:

OptionDescription
--auto-addRegister all found repos without prompting

Examples:

bash
# Interactive scan
dexicon repos scan ~/projects

# Auto-register all found repos
dexicon repos scan ~/projects --auto-add

dexicon schedule

Manage automatic syncing schedules.

dexicon schedule enable

Enable automatic syncing via launchd (macOS), cron (Linux), or Task Scheduler (Windows).

bash
dexicon schedule enable

dexicon schedule disable

Disable automatic syncing.

bash
dexicon schedule disable

dexicon schedule status

Show current scheduling status, next run time, and recent sync activity.

bash
dexicon schedule status

dexicon schedule logs

Show sync history.

bash
dexicon schedule logs [options]

Options:

OptionDescription
-n, --limit LIMITNumber of log entries to show (default: 20)

Examples:

bash
# Show last 20 sync logs
dexicon schedule logs

# Show last 50 sync logs
dexicon schedule logs --limit 50

Global Options

These options are available for all commands:

OptionDescription
-h, --helpShow help message
--version, -vShow version information

Examples:

bash
# Show CLI version
dexicon --version

# Show help for a specific command
dexicon sync --help

Common Workflows

First-time Setup

bash
# 1. Install the CLI
brew install Dexicon-AI/tap/dexicon

# 2. Initialize and discover IDE logs
dexicon init

# 3. Log in to Dexicon
dexicon login

# 4. Sync your first sessions
cd ~/your-project
dexicon sync

Daily Usage

bash
# Sync sessions at the end of each day
cd ~/your-project
dexicon sync

Automated Syncing

bash
# Register your repositories
dexicon repos scan ~/projects --auto-add

# Enable automatic syncing
dexicon schedule enable

# Check sync status
dexicon schedule status

Troubleshooting

bash
# Check detected IDE locations
dexicon discover

# Preview what would be synced
dexicon sync --dry-run

# View detailed sync output
dexicon sync --debug

# Clear upload history and re-sync
dexicon sync --reset-ledger

Built by Dexicon