---
name: OwnMem Init
slug: ownmem-init
category: AI Engineering
description: OwnMem Init installs or updates OwnMem in the current repository. Use it to add local project memory for coding agents, or to refresh the installation after a version bump.
github: "https://github.com/grpcer/ownmem/tree/main/skills/ownmem-init"
language: JavaScript
stars: 226
forks: 3
install: "npx degit https://github.com/grpcer/ownmem/tree/main/skills/ownmem-init ~/.claude/skills/ownmem-init"
installs_to: ~/.claude/skills/ownmem-init
source_path: skills/ownmem-init/SKILL.md
collection_size: 6
category_size: 2793
collection_url: "https://dirskills.com/collections/grpcer/ownmem"
added: 2026-09-03T06:05:03.018Z
last_synced: 2026-09-03T06:05:03.018Z
canonical_url: "https://dirskills.com/skills/ownmem-init"
---

# OwnMem Init

OwnMem Init installs or updates OwnMem in the current repository. Use it to add local project memory for coding agents, or to refresh the installation after a version bump.

**Install:**

```bash
npx degit https://github.com/grpcer/ownmem/tree/main/skills/ownmem-init ~/.claude/skills/ownmem-init
```

## README

# Set up OwnMem in this repository

OwnMem requires Node.js 20.6 or newer. Install the reviewed dependency, then
generate the host adapters:

```bash
npm install --save-dev ownmem
npx ownmem init --locale auto --hosts claude,codex --layers dashboard --hook --command "npx ownmem"
```

Adjust the flags before running:

- `--hosts`: any comma-separated combination of `claude`, `codex`, `cursor`,
  `gemini`, and `generic` — match the tools the team uses. Grok CLI reads the
  Codex adapter (`.agents/skills/ownmem` and `AGENTS.md`).
- `--layers`: `core`, `gates`, `compiler`, or `dashboard` — `dashboard` adds the local Web console.
- Drop `--hook` if the team does not want the Claude Code PreToolUse recall guard.

Initialization creates `.ownmem/` plus bounded `ownmem-generated` blocks in the
host instructions, and preserves every line outside those boundaries. Verify:

```bash
npx ownmem init --check
npx ownmem audit
```

The npm package is the engine. This plugin is an optional shortcut and does
not auto-update on every host. After a version bump (for example a Dependabot
pull request):

```bash
npx ownmem init --update && npx ownmem init --check && npx ownmem audit
```
