PluginBench
Skill
Pass
Audit score 90

agentmemory-config

rohitg00/agentmemory

Configure agentmemory environment variables, ports, API keys, and feature flags.

What is agentmemory-config?

agentmemory-config manages all configuration for the agentmemory system via environment variables and ~/.agentmemory/.env file. Use this skill when enabling features like auto-compression or context injection, changing ports, setting API keys, configuring authentication, or understanding why certain features are disabled by default.

  • Set API keys (Anthropic and others) for LLM-powered features
  • Enable/disable token-spending features like auto-compression and context injection
  • Configure tool visibility (all vs. core toolset)
  • Set up REST API authentication with bearer tokens
  • Adjust port assignments for REST, streams, viewer, and engine services
  • Run agentmemory in zero-LLM mode with local embeddings and BM25 search

How to install agentmemory-config

npx skills add https://github.com/rohitg00/agentmemory --skill agentmemory-config
Prerequisites
  • agentmemory installed and running
  • Access to ~/.agentmemory/.env file or environment variable configuration
  • API key (optional; required only for LLM-powered features)
Claude Code
Cursor
Windsurf
Cline

How to use agentmemory-config

  1. 1.Create or edit ~/.agentmemory/.env with your configuration variables
  2. 2.Set ANTHROPIC_API_KEY if using LLM features, or leave unset for zero-LLM mode
  3. 3.Enable desired features: AGENTMEMORY_AUTO_COMPRESS=true and/or AGENTMEMORY_INJECT_CONTEXT=true
  4. 4.Optionally set AGENTMEMORY_SECRET for REST API authentication
  5. 5.Optionally adjust ports with --port or --instance flags
  6. 6.Restart the agentmemory server for changes to take effect

Use cases

Good for
  • Enabling LLM-powered memory summarization to reduce token usage over time
  • Configuring authentication for a shared agentmemory instance
  • Moving agentmemory services to non-default ports in a multi-instance setup
  • Setting up a cost-conscious deployment that uses only local embeddings without API calls
  • Switching between full and minimal tool sets based on agent requirements
Who it's for
  • DevOps engineers deploying agentmemory
  • Developers integrating agentmemory into agent systems
  • System administrators managing multi-instance or shared deployments
  • Teams optimizing token spend and API costs

agentmemory-config FAQ

Do I need an API key to use agentmemory?

No. agentmemory runs in zero-LLM mode by default using BM25 and local embeddings. API keys are only needed if you enable token-spending features like AGENTMEMORY_AUTO_COMPRESS or AGENTMEMORY_INJECT_CONTEXT.

Why are auto-compression and context injection disabled by default?

Both features consume tokens proportional to tool-use frequency. They are opt-in to let you control costs and only enable them when the benefit justifies the expense.

How do I secure the REST API?

Set AGENTMEMORY_SECRET to a strong value in ~/.agentmemory/.env. Clients must then include Authorization: Bearer <secret> in their requests.

Can I run multiple agentmemory instances on the same machine?

Yes. Use --instance <N> to shift the entire port block (REST at 3111+N, streams at 3112+N, viewer at 3113+N, engine at 49134+N), or use --port <N> to set the base port manually.

What is the difference between AGENTMEMORY_TOOLS=all and core?

'all' includes the full toolset; 'core' provides a lean set of essential tools. Use 'core' for simpler deployments or to reduce agent complexity.

Full instructions (SKILL.md)

Source of truth, from rohitg00/agentmemory.


name: agentmemory-config description: agentmemory configuration, environment variables, ports, and feature flags. Use when enabling a feature, changing ports, setting an API key, configuring auth, or explaining why a feature is off by default. user-invocable: false

agentmemory reads configuration from the environment and from ~/.agentmemory/.env (one KEY=value per line, no export prefix). Restart the server after changing it.

Quick start

Enable richer memory and set a provider key in ~/.agentmemory/.env:

ANTHROPIC_API_KEY=sk-ant-...
AGENTMEMORY_AUTO_COMPRESS=true
AGENTMEMORY_INJECT_CONTEXT=true

Defaults worth knowing

  • No API key is required. Without one, agentmemory runs zero-LLM with BM25 plus local embeddings.
  • Token-spending features ship OFF on purpose: AGENTMEMORY_AUTO_COMPRESS (LLM summaries) and AGENTMEMORY_INJECT_CONTEXT (auto context injection) both cost tokens proportional to tool-use frequency.
  • Tool visibility: AGENTMEMORY_TOOLS=all (default) or core for the lean set.
  • Auth: set AGENTMEMORY_SECRET to require Authorization: Bearer on the REST API.

Ports

REST is the anchor at 3111. Streams = N+1 (3112), viewer = N+2 (3113), engine = N+46023 (49134). Relocate the whole block with --port <N> or --instance <N>.

See also

  • agentmemory-rest-api for how the secret is used.
  • agentmemory-architecture for the port quartet rationale.

Reference

The full recognized-variable list lives in REFERENCE.md, generated by scanning src/.