agentmemory-config

Configure agentmemory environment variables, ports, and feature flags via .env files.

3|Updated Oct 25, 2025
One-click install
npx skills add https://github.com/Prismaibrowser/prismspace-web --skill agentmemory-config-prismaibrowser
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: agentmemory-config
Source: https://github.com/Prismaibrowser/prismspace-web/tree/main/.agents/skills/agentmemory-config
Command: npx skills add https://github.com/Prismaibrowser/prismspace-web --skill agentmemory-config-prismaibrowser

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It explains how to configure the agentmemory server, including which environment variables exist, which features are off by default, and how the port layout works, so you avoid misconfiguration and unexpected token costs. ## Core Features & Use Cases - Environment Variable Reference: Lists all 42 recognized AGENTMEMORY_* variables read from the environment or ~/.agentmemory/.env. - Default Behavior Guidance: Documents that no API key is required, that zero-LLM mode uses BM25 plus local embeddings, and that token-spending features like AUTO_COMPRESS and INJECT_CONTEXT ship off. - Port Layout Explanation: Describes the port quartet anchored at REST 3111 with streams, viewer, and engine offsets, relocatable via --port or --instance. - Use Case: When enabling auto context injection or setting an Anthropic API key, consult this Skill to write the correct KEY=value lines and restart the server. ## Quick Start Ask the AI to show which agentmemory environment variables to set in ~/.agentmemory/.env to enable auto-compress with an Anthropic API key.

Frequently Asked Questions about agentmemory-config

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure agentmemory environment variables?▼

Set AGENTMEMORY_* variables in your shell environment or in ~/.agentmemory/.env using one KEY=value per line without an export prefix. Restart the server after changing the file for the new values to take effect.

How do I enable auto-compress and context injection in agentmemory?▼

Add AGENTMEMORY_AUTO_COMPRESS=true and AGENTMEMORY_INJECT_CONTEXT=true to ~/.agentmemory/.env along with a provider key such as ANTHROPIC_API_KEY. Both features spend tokens proportional to tool-use frequency, so they ship off by default.

Does agentmemory require an API key to run?▼

No API key is required. Without one, agentmemory runs in zero-LLM mode using BM25 ranking plus local embeddings, so core memory features work without any external provider.

What ports does agentmemory use by default?▼

REST is the anchor at port 3111, streams run at N+1 (3112), the viewer at N+2 (3113), and the engine at N+46023 (49134). Relocate the whole block with the --port or --instance flags.

How do I require authentication on the agentmemory REST API?▼

Set AGENTMEMORY_SECRET in the environment or .env file. Once set, the REST API requires an Authorization: Bearer header containing that secret for requests to succeed.