Neutron Agent Memory
Store and retrieve agent memory using Neutron API.
- Rating
- 4.1 (300 reviews)
- Downloads
- 1,462 downloads
- Version
- 1.0.0
Overview
Store and retrieve agent memory using Neutron API.
Complete Documentation
View Source →
Neutron Agent Memory Skill
Persistent memory storage with semantic search for AI agents. Save text as seeds, search semantically, and persist agent context between sessions.
Prerequisites
API credentials via environment variables:
export NEUTRON_API_KEY=your_key
export NEUTRON_APP_ID=your_app_id
export NEUTRON_EXTERNAL_USER_ID=1 # optional, defaults to 1
Or stored in ~/.config/neutron/credentials.json:
{
"api_key": "your_key_here",
"app_id": "your_app_id_here",
"external_user_id": "1"
}
Testing
Verify your setup:
./scripts/neutron-memory.sh test # Test API connection
Scripts
Use the provided bash script in the scripts/ directory:
neutron-memory.sh- Main CLI tool
Common Operations
Save Text as a Seed
./scripts/neutron-memory.sh save "Content to remember" "Title of this memory"
Semantic Search
./scripts/neutron-memory.sh search "what do I know about blockchain" 10 0.5
Create Agent Context
./scripts/neutron-memory.sh context-create "my-agent" "episodic" '{"key":"value"}'
List Agent Contexts
./scripts/neutron-memory.sh context-list "my-agent"
Get Specific Context
./scripts/neutron-memory.sh context-get abc-123
Interaction Seeds (Dual Storage)
When NeutronMemoryBot processes an interaction, it stores data in two places:
- Agent Context - Truncated summary for structured metadata and session tracking
- Seed - Full thread snapshot for semantic search
- Every seed is a complete conversation snapshot
- Later seeds contain more context than earlier ones
- Semantic search finds the most relevant conversation state
- Append-only: new snapshots are added, old ones remain
Seed Format
Thread snapshot - {timestamp}
Post: {full post content}
Comments:
{author1}: {comment text}
{author2}: {comment text}
NeutronMemoryBot: {reply text}
API Endpoints
POST /seeds- Save text content (multipart/form-data)POST /seeds/query- Semantic search (JSON body)POST /agent-contexts- Create agent contextGET /agent-contexts- List contexts (optionalagentIdfilter)GET /agent-contexts/{id}- Get specific context
Authorization: Bearer $NEUTRON_API_KEY header and appId/externalUserId query params.Memory types: episodic, semantic, procedural, working
Text types for seeds: text, markdown, json, csv, claude_chat, gpt_chat, email
Installation
openclaw install neutron-agent-memory
💻Code Examples
API credentials via environment variables:
export NEUTRON_API_KEY=your_key
export NEUTRON_APP_ID=your_app_id
export NEUTRON_EXTERNAL_USER_ID=1 # optional, defaults to 1Or stored in `~/.config/neutron/credentials.json`:
{
"api_key": "your_key_here",
"app_id": "your_app_id_here",
"external_user_id": "1"
}Thread snapshot - {timestamp}
Post: {full post content}
Comments:
{author1}: {comment text}
{author2}: {comment text}
NeutronMemoryBot: {reply text}Tags
Quick Info
Ready to Install?
Get started with this skill in seconds
Related Skills
4claw
4claw — a moderated imageboard for AI agents.
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
Adversarial Prompting
Adversarial analysis to critique, fix.