Skip to main content

Data Locations

This reference describes where Klip and AI agents store data on your system.

Klip Data

All Klip data is stored locally. Nothing is uploaded to Klip servers except feedback submissions and license validation.

Core Data

DataLocation
Database~/.klip/klip.db (plus -wal, -shm)
Config~/.klip/config.json
Layouts~/.klip/layouts/
Cells~/.klip/cells/
Logs~/.klip/logs/
Admin Token~/.klip/admin.token

Database Contents

The SQLite database (~/.klip/klip.db) stores:

  • Session metadata (not content)
  • Summaries
  • Embeddings (vector search)
  • Tags and notes
  • File tracking data
  • Button Library definitions

Agent Session Files

AI agents store their session data independently of Klip.

AgentLocationFormat
Claude~/.claude/projects/<workspace>/<session>.jsonlJSONL
Codex~/.codex/sessions/<year>/<month>/<day>/<session>.jsonlJSONL
Gemini~/.gemini/tmp/<workspace-hash>/chats/<session>.jsonJSON

Path Encoding

  • Claude encodes the workspace path in the directory name
  • Codex organizes by date
  • Gemini uses a SHA256 hash of the workspace path

Custom Session Paths

If you use non-standard CLI installations, configure additional paths:

Setting: klip.additionalSessionPaths

"klip.additionalSessionPaths": [
"/custom/path/to/sessions"
]

File Tracking

Klip tracks which files are read and modified during sessions.

What's Tracked

TypeDescription
Files ModifiedFiles written or edited by the AI
Files ReadFiles read for context

Configuration

SettingDefaultDescription
klip.fileTracking.enabledtrueEnable/disable file tracking
klip.fileTracking.storeBackupContenttrueStore file content for restore (Pro)
klip.fileTracking.backupMaxFileSizeKb512Max file size for backups

Excluding Files

Prevent tracking of specific files:

"klip.fileTracking.excludePatterns": [
"*.lock",
"package-lock.json",
"node_modules/**",
"dist/**"
]

Excluded files appear in tool logs but aren't backed up or highlighted in summaries.

Exports

Session File

Open the raw session JSON/JSONL:

  • Command: Klip: Open Session File (klip.openSessionFile)
  • Action: Right-click session > Open Session File

Audit Report

Generate a text-based audit report:

  • Command: Klip: Audit Session (klip.auditSession)

Safe Cleanup

Clear Cache

Force re-scan of sessions if data seems inconsistent:

  • Command: Klip: Clear Session Cache (klip.clearSessionCache)

Delete Sessions

Permanently remove a session and its metadata:

  • Command: Klip: Delete Session (klip.deleteSession)
  • Action: Right-click session > Delete Session
caution

Deletion removes both the session file and database records. This cannot be undone.