Skip to content

Guide · Agent skill

How to use the agentmemory Setup and Diagnostics agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The agentmemory-config skill teaches an AI agent to set up and troubleshoot agentmemory, a local memory service that lets an assistant remember past work across sessions. This guide explains what the skill does, how to install it, how to ask for help with natural requests, and what to watch for around credentials and network use. By the end you will know how to check whether the memory server is running and connected, and how to enable optional features without exposing secrets.

agentmemory Setup and Diagnosticsrohitg00/agentmemory · Apache-2.0

Quick start

  1. 1Install the ZIP. Download the skill ZIP from this page and unzip it into ~/.claude/skills/ or a project's .claude/skills/ folder. In the Claude apps, upload it under Settings → Capabilities → Skills instead.
  2. 2Confirm Node.js and the daemon. Make sure Node.js 20 or newer is installed and agentmemory is running. Run agentmemory status to check runtime health and the viewer URL.
  3. 3Ask the agent to check the connection. Describe the problem in plain words, such as saying your memory tools seem disconnected. The agent reads the status resource or calls memory_sessions without saving anything.
  4. 4Decide on optional providers. Choose whether you want an LLM or embedding provider. Set any key locally in ~/.agentmemory/.env without pasting it into chat.
  5. 5Enable features and restart. Add the flags you want, such as AGENTMEMORY_AUTO_COMPRESS=true, to ~/.agentmemory/.env, then restart the server and reconnect MCP so the host refreshes its tools.

What the agentmemory-config skill makes the agent do

An agent skill is a folder with a SKILL.md file that gives an AI agent specific instructions for one job. This skill covers setup and diagnostics for agentmemory: its MCP connection, environment variables, ports and feature flags. When it is installed, the agent can check whether the memory server is running, read settings from environment files, explain which features are on or off by default, and help turn on optional features such as LLM compression or context injection.

The skill is meant for getting started and troubleshooting, not everyday memory use. It is listed as not user-invocable, so you normally trigger it by describing your problem in ordinary words, and the agent decides to use it.

  • Checks the agentmemory MCP connection and daemon status
  • Reads settings from ~/.agentmemory/.env
  • Explains default feature states and why a feature is off
  • Helps enable optional features after you choose a provider

How do you install the agentmemory-config skill?

Download the skill ZIP from this directory page and unzip it into one of two places. For a personal setup for all projects, use ~/.claude/skills/. For a single project, put it in that project's .claude/skills/ folder. Restart your agent session afterwards so it picks up the new skill.

If you use the Claude apps, you can instead upload the ZIP under Settings → Capabilities → Skills.

The skill needs Node.js 20 or newer, and agentmemory itself installed with its local daemon running. The skill does not install agentmemory for you.

  • Personal install: ~/.claude/skills/
  • Project install: .claude/skills/ inside the project
  • Claude apps: Settings → Capabilities → Skills, then upload the ZIP

How do you check the agentmemory connection first?

The skill tells the agent to start with the connection before changing anything. If the host exposes the agentmemory status resource, the agent reads it; otherwise it calls memory_sessions without creating any data. A successful handshake alone does not prove the daemon is running, so the agent also checks the daemon.

If the check fails, the agent looks at Node.js 20+ and runs agentmemory status. On a source checkout it uses node dist/cli.mjs status after building. Keep the runtime running while you use the plugin.

  • Codex's plugin already supplies MCP; agentmemory connect codex is the MCP-only alternative
  • If both are configured, the agent explains the duplicate and lets you choose which to keep
  • Hook support is checked with /hooks in Codex before any automatic capture is promised
agentmemory status

How do you enable optional features like compression and context injection?

Basic keyword recall needs no API key. Richer features are opt-in. After you choose an LLM or embedding provider, set its key locally without printing it, then enable the features you want in ~/.agentmemory/.env, one KEY=value per line with no export prefix. Restart the server after any change.

Per-observation LLM compression and Claude-style context injection are both off by default. Local embeddings also need explicit configuration and model downloads, so the agent will not promise vector search until it is enabled. Enabled external model providers can receive selected content, so the agent explains that boundary before you turn them on.

  • AGENTMEMORY_AUTO_COMPRESS=true turns on per-observation LLM compression
  • AGENTMEMORY_INJECT_CONTEXT=true turns on Claude-style hook injection
  • Consolidation runs when an LLM provider is configured, unless CONSOLIDATION_ENABLED=false or AGENTMEMORY_PROVIDER=noop
  • Structured slots need AGENTMEMORY_SLOTS=true; slot reflection also needs AGENTMEMORY_REFLECT=true
AGENTMEMORY_AUTO_COMPRESS=true AGENTMEMORY_INJECT_CONTEXT=true

What are the default ports, auth and remote URL rules?

REST defaults to port 3111, the viewer to 3113, and the internal engine WebSocket to 49134. Use --port <N> or --instance <N> to select another local runtime. For a custom port, the MCP host needs AGENTMEMORY_URL passed through its environment, followed by a restart of the MCP server.

Local authentication is automatic. The bridge uses a host AGENTMEMORY_SECRET first, then the secret in ~/.agentmemory/.env, then the daemon-generated ~/.agentmemory/secret. Remote URLs require an explicit host secret, and local files are never forwarded. Non-loopback URLs must use HTTPS for authenticated requests; HTTP is allowed only for localhost, 127.0.0.0/8 or [::1].

  • REST API: 3111 by default
  • Viewer: 3113 by default
  • Engine WebSocket: 49134 by default
  • AGENTMEMORY_CREDENTIAL_MODE=explicit disables local credential discovery

What people use it for

  • Finding out why memory tools are missing after installing agentmemory in Claude Code
  • Checking whether the local daemon is up on the default port 3111 or a custom port
  • Deciding which optional features need an API key before turning them on
  • Setting up a remote agentmemory server with an explicit host secret and HTTPS

Frequently asked questions

How do I install the agentmemory config skill?

Download the skill ZIP from this page and unzip it into ~/.claude/skills/ for all projects, or into a project's .claude/skills/ folder for one project. In the Claude apps, you can upload the ZIP under Settings → Capabilities → Skills instead.

Does the agentmemory skill need Node.js?

Yes. The skill requires Node.js 20 or newer. It also requires agentmemory to be installed with its local daemon running, since the skill checks and configures that daemon rather than replacing it.

Is agentmemory free to use?

The skill is published under the Apache-2.0 licence. The skill itself does not state any prices. Optional LLM or embedding providers are separate services that you configure with your own key, and the source notes that enabling external providers can send selected content to them.

Can agentmemory work fully offline?

Not as set up by this skill. It assumes a local daemon and may use optional external providers, and the agent is told not to promise vector search until it is configured. Basic keyword recall works without an API key.

Why is my agentmemory feature turned off by default?

Several features are opt-in. Per-observation LLM compression and Claude-style context injection stay off unless you set AGENTMEMORY_AUTO_COMPRESS=true or AGENTMEMORY_INJECT_CONTEXT=true in ~/.agentmemory/.env and restart the server.

How do I fix agentmemory not connecting or MCP tools missing?

Have the agent check the status resource or memory_sessions, then run agentmemory status. Restart the MCP connection after configuration changes, and check that the daemon is running. If both the Codex plugin and agentmemory connect codex are configured, keep only one to avoid a duplicate connection.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

This skill suits developers who run agentmemory with Claude Code, Codex or another SKILL.md-compatible agent and need help with connections, ports and feature flags. It is a poor fit if you want a memory tool that works fully offline with no setup, or if you do not want an agent handling API keys and secrets, since you should keep those values out of chat logs.

Download the skill