Files
ai-chatexport/.env.example
JesseMarkowitz 62445c7c0c chore: initialize project scaffold
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 22:45:46 -05:00

36 lines
1.4 KiB
Plaintext

# ============================================================
# AI Chat Exporter — Configuration
# ============================================================
# Copy this file to .env and fill in your values.
# NEVER commit .env to git. It contains secrets.
# --- ChatGPT ---
# How to get: open chatgpt.com in Chrome → F12 → Application tab
# → Cookies → https://chatgpt.com → find "__Secure-next-auth.session-token" → copy Value
# Token type: JWT (starts with "eyJ"). Typically valid for ~7 days.
CHATGPT_SESSION_TOKEN=
# --- Claude ---
# How to get: open claude.ai in Chrome → F12 → Application tab
# → Cookies → https://claude.ai → find "sessionKey" → copy Value
# Token type: opaque string. Typically valid for ~30 days.
CLAUDE_SESSION_KEY=
# --- Output ---
# Where exported Markdown files are written (default: ./exports)
EXPORT_DIR=./exports
# Output folder structure. Options:
# provider/project/year (default) → exports/claude/my-project/2024/file.md
# provider/project → exports/claude/my-project/file.md
# provider/year → exports/claude/2024/file.md (ignores projects)
OUTPUT_STRUCTURE=provider/project/year
# --- Cache ---
# Where the sync manifest and logs are stored (default: ~/.ai-chat-exporter)
CACHE_DIR=~/.ai-chat-exporter
# --- Logging ---
# Log file path. Set to "none" to disable file logging.
LOG_FILE=~/.ai-chat-exporter/logs/exporter.log