Skip to main content

Quickstart

Five steps on your laptop, no cloud account.

Claude Code users

Do step 1, then the plugin starts the server and writes notes from your repository.

Install

$ uv tool install ampup-memory-cli

macOS 13.4+, or Linux (arm64 or x86_64) with glibc 2.39+. Other installers

Run the server

$ OPENROUTER_API_KEY=... AMPUP_MEMORY_EXTRACT_GOAL_BLIND=1 \
  ampup-memory serve --local

It keeps data in ~/.ampup-memory, listens on 127.0.0.1 only and needs no sign-in. Without a model key, POST /advice returns 503.

Connect an agent

Claude Code
$ claude mcp add --transport http ampup-memory \
  http://127.0.0.1:8080/mcp
Python 3.10+
$ pip install ampup-memory
from ampup_memory import AmpUpMemory

mem = AmpUpMemory("http://127.0.0.1:8080", None)
run = mem.session("deploy the billing service")
print(run.opening["advice"])
run.end("deployed", reward=1)

Other MCP clients, HTTP and TypeScript also work.

Get a first note

A note is written once 2 runs of a kind go wrong. Stop the server, load the file as two people, learn, restart.

cat > runs.jsonl <<'EOF'
{"task": "deploy billing", "trace": "ran ./deploy.sh billing in CI", "outcome": "deployed", "reward": 1, "reason": "deployed"}
{"task": "deploy billing on Friday", "trace": "deployed from a laptop", "outcome": "rolled back", "reward": -1, "reason": "never deploy from a laptop"}
EOF
# stop the server first
ampup-memory runs load org runs.jsonl --local ~/.ampup-memory --as [email protected]
ampup-memory runs load org runs.jsonl --local ~/.ampup-memory --as [email protected]
OPENROUTER_API_KEY=... ampup-memory advice org --local ~/.ampup-memory
OPENROUTER_API_KEY=... ampup-memory serve --local

The people bar is AMPUP_MEMORY_ADVICE_LEARN_PEOPLE (default 2, never below 2), so two people are enough.

Read the note

HTTP
curl -s 127.0.0.1:8080/sessions \
  -d '{"context": "deploy the billing service", "harness": "curl"}'
curl -s 127.0.0.1:8080/advice \
  -d '{"session_id": "6512edd0-…",
       "question": "deploy the billing service"}'

The second call takes the session_id the first returns. It returns {situation, advice, skills}.

In the API a note is "advice", an outcome a reward (1 worked, -1 didn't) and a stored record an "episode".

Browse everything in the studio.