Skip to content

About

CacheLayer managed keys plugin for Claude Code

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

CacheLayer Managed Keys for Claude Code

https://cachelayer.org/

Install the plugin, add your CacheLayer connect token, and restart Claude Code.

This repo is for managed keys only (cl_… as CACHELAYER_KEY).
Personal API keys: https://cachelayer.org/integrations/claude-code

1. Add the CacheLayer marketplace

/plugin marketplace add befugngr/cachelayer-claude-code-plugin

2. Install the CacheLayer plugin

/plugin install cachelayer@cachelayer-claude-code-plugin

3. Reload plugins

/reload-plugins

4. Add your CacheLayer token and restart Claude Code

Use a connect token from https://cachelayer.org/ (starts with cl_).

macOS / Linux

export CACHELAYER_KEY="cl_<your-token>"

# Optional when Claude Code is launched outside the repository:
export CACHELAYER_WORKSPACE_ROOT="/absolute/path/to/repository"

To persist, add the same line to ~/.zshrc or ~/.bashrc.

If you launch Claude Code from Dock or Spotlight on macOS:

launchctl setenv CACHELAYER_KEY 'cl_<your-token>'

Windows (PowerShell)

[Environment]::SetEnvironmentVariable("CACHELAYER_KEY", "cl_<your-token>", "User")

Fully quit and reopen Claude Code.

Compact + stable instructions

This plugin ships CLAUDE.md (always loaded) and PreCompact / PostCompact hooks that call CacheLayer before/after compaction.

About

CacheLayer managed keys plugin for Claude Code

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages