# dnyana

Shared memory for Claude Code, Codex, Cursor and OpenCode, powered by [Dnyana](https://dnyana.ai). It works without the agent having to remember to use it: hooks load what earlier sessions learned and save each turn.

Requires Node.js 18+.

```bash
npx dnyana login                  # sign in through the browser and save a key for this machine
npx dnyana install --agent all    # add the hooks and MCP server to claude, codex, cursor and opencode
npx dnyana doctor                 # check key, API, MCP server and hooks
```

`install` checks the key and hosts first and installs nothing if a check fails. `--project` writes the config into the current repo (to commit; no key in it). `dnyana config` shows and sets the API and MCP hosts. Run `npx dnyana --help` for every command. `DNYANA_MEMORY=off` (or a `.dnyana-ignore` file in a repo) turns capture and injection off; `npx dnyana uninstall --agent all` removes only what Dnyana added.

`npx dnyana memories` shows what Dnyana remembers about you (your developer memory; `--project` for the repo's shared memory): search and filter it, `show`, `edit`, `pin` (always included in the context), `unpin`, and `forget` one memory or `forget --about "<topic>"` everything that mentions a topic. Add `--json` for scripts.

When `install` succeeds, Dnyana records that an install succeeded (when, for your key's project). Nothing else is sent: no content, no file names.

Docs: https://dnyana.ai/docs. Support: support@dnyana.ai.

Free to use under the terms in `LICENSE`. Not open source.
