Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<img width="4000" height="2130" alt="image (6)" src="https://github.com/user-attachments/assets/07e63ac4-b67d-457b-9029-1dc5d860e920" />

> **✨ Requires [Supermemory Pro or above](https://console.supermemory.ai/billing)** - Unlock the state of the art memory for your Claude code.
> **✨ Requires [Supermemory Pro or above](https://app.supermemory.ai/?view=integrations)** - Unlock the state of the art memory for your Claude code.

A Claude Code plugin that gives your AI persistent memory across sessions using [Supermemory](https://supermemory.ai).
Your agent remembers what you worked on - across sessions, across projects.
Expand All @@ -20,7 +20,7 @@ Your agent remembers what you worked on - across sessions, across projects.
/plugin install claude-supermemory
```

Set your API key (get one at [console.supermemory.ai](https://console.supermemory.ai)):
Set your API key (get one at [app.supermemory.ai](https://app.supermemory.ai)):

```bash
export SUPERMEMORY_CC_API_KEY="sm_..."
Expand Down
12 changes: 6 additions & 6 deletions plugin/scripts/add-memory.cjs

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions plugin/scripts/context-hook.cjs

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions plugin/scripts/save-project-memory.cjs

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions plugin/scripts/search-memory.cjs

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions plugin/scripts/summary-hook.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/context-hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const {
} = require('./lib/container-tag');
const { loadSettings, getApiKey, debugLog } = require('./lib/settings');
const { readStdin, writeOutput } = require('./lib/stdin');
const { startAuthFlow } = require('./lib/auth');
const { startAuthFlow, AUTH_BASE_URL } = require('./lib/auth');
const { formatContext, combineContexts } = require('./lib/format-context');

async function main() {
Expand Down Expand Up @@ -34,7 +34,7 @@ async function main() {
hookEventName: 'SessionStart',
additionalContext: `<supermemory-status>
${isTimeout ? 'Authentication timed out. Please complete login in the browser window.' : 'Authentication failed.'}
If the browser did not open, visit: https://console.supermemory.ai/auth/connect
If the browser did not open, visit: ${AUTH_BASE_URL}
Or set SUPERMEMORY_CC_API_KEY environment variable manually.
</supermemory-status>`,
},
Expand Down
4 changes: 2 additions & 2 deletions src/lib/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ const SETTINGS_DIR = path.join(os.homedir(), '.supermemory-claude');
const CREDENTIALS_FILE = path.join(SETTINGS_DIR, 'credentials.json');

const AUTH_BASE_URL =
process.env.SUPERMEMORY_AUTH_URL ||
'https://console.supermemory.ai/auth/connect';
process.env.SUPERMEMORY_AUTH_URL || 'https://app.supermemory.ai/auth/connect';
const AUTH_PORT = 19876;
const AUTH_TIMEOUT = 25000;

Expand Down Expand Up @@ -112,6 +111,7 @@ function startAuthFlow() {
}

module.exports = {
AUTH_BASE_URL,
CREDENTIALS_FILE,
loadCredentials,
saveCredentials,
Expand Down
2 changes: 1 addition & 1 deletion src/search-memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function main() {
console.log(
'Set SUPERMEMORY_CC_API_KEY environment variable to enable memory search.',
);
console.log('Get your key at: https://console.supermemory.ai');
console.log('Get your key at: https://app.supermemory.ai');
return;
}

Expand Down