Skip to main content

Capture and upload LLM sessions from local hooks and proxy integrations

Project description

RCLM — Data Capture for AI Tools

Every time you use an AI coding assistant, you produce valuable reasoning and code. RCLM (ReclaimLLM) ensures that data belongs to you. It is a lightweight capture layer that records your AI sessions from Claude Code, Gemini CLI, Codex CLI, and OpenClaw, shipping them to your personal ReclaimLLM account for search, analysis, and continuation.

Key Features

  • Native Hooks: Zero-config integration into Claude Code, Gemini CLI, Codex CLI, and OpenClaw.
  • Historical Sync: One-command backfill for all your past AI sessions.
  • DLP & Privacy: Automatic redaction of secrets from .env files before they reach the model.
  • Context Conversion: Export any captured session as a Markdown context document to continue work in a different tool.
  • Local Proxy: Experimental LiteLLM-based proxy for OpenAI-compatible tools.

Quick Start

1. Install

pip install rclm
# Or for proxy support: pip install 'rclm[proxy]'

2. Setup Hooks

# Integrates with Claude Code, Gemini CLI, Codex CLI, and OpenClaw
rclm-hooks-install

This will open a browser to reclaimllm.com to link your account. Once linked, every session is automatically captured.

3. Sync History

# Upload sessions that predated the installation
rclm-sync

Session Conversion (New!)

rclm convert-session allows you to take a session captured in one tool (e.g., Claude Code) and instantly resume it in another (e.g., Gemini CLI) by generating a structured context document.

# Export a session for Claude Code
rclm convert-session <session_id> claude -o CLAUDE.md

# Export for Gemini CLI
rclm convert-session <session_id> gemini -o .gemini

# Options
rclm convert-session <session_id> generic --no-diffs          # Omit file diffs
rclm convert-session <session_id> claude  --force-regenerate  # Use LLM for a fresh summary

Supported targets: claude, gemini, codex, generic.


CLI Reference

Command Description
rclm-hooks-install Install/configure native hooks for local LLM CLIs.
rclm-sync Discover and upload historical transcripts.
rclm convert-session Export a session to Markdown context for tool switching.
rclm-proxy Start/setup a LiteLLM proxy for OpenAI-compatible capture.
rclm-update Check for and apply updates to the rclm package.

Advanced Usage

Context Compression & DLP

Enable advanced features during installation:

rclm-hooks-install --compress  # Reduces token usage for Claude Code
rclm-hooks-install --dlp       # Enables Data Loss Prevention for .env files

Proxy Capture (Experimental)

Point your tools at http://localhost:4000 to capture raw API interactions:

rclm-proxy setup
rclm-proxy start

Technical Details

For information on data models, hook internals, and the DLP engine, see architecture.md.

Development

uv sync --extra dev          # Install dev dependencies
uv run pre-commit install    # Setup linting/formatting hooks
uv run pytest rclm/tests     # Run the test suite

License: Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rclm-0.1.13.tar.gz (105.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rclm-0.1.13-py3-none-any.whl (133.8 kB view details)

Uploaded Python 3

File details

Details for the file rclm-0.1.13.tar.gz.

File metadata

  • Download URL: rclm-0.1.13.tar.gz
  • Upload date:
  • Size: 105.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rclm-0.1.13.tar.gz
Algorithm Hash digest
SHA256 d01a972e403a535ad7e015a4ba70e1efb194f78306a305b9b86112d74a28e204
MD5 f5712d2ef897ae995ca41b0bd9f5d0c2
BLAKE2b-256 2d87567981498e934691c017445bcabbd9ef3bbf826e95d709e8839554fb4b3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for rclm-0.1.13.tar.gz:

Publisher: publish.yml on ReclaimLLM/RCLM

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rclm-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: rclm-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 133.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rclm-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 721938cd99ccd47315eaeb4b9a8ebf24bdcd0d6f4160ee9fac9b7a6b32198aa8
MD5 45f6ec173670540b8135e15dd18554fc
BLAKE2b-256 a629ab452e4d872127f8cd6391e81e81a9703fdc90c2a89bbc4e1592a14174f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for rclm-0.1.13-py3-none-any.whl:

Publisher: publish.yml on ReclaimLLM/RCLM

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page