@agentmem/cli
v0.1.1
Published
One-command setup for AgentMem — the memory API for AI agents
Maintainers
Readme
@agentmem/cli
One-command setup for AgentMem — the memory API for AI agents.
Usage
In an existing TypeScript or Python project:
npx @agentmem/cli initThe CLI will:
- Detect whether your project is TypeScript or Python.
- Install the matching SDK (
@agentmem/sdkoragentmem-py) using your project's package manager (npm/pnpm/yarn/bun/pip/uv/poetry). - Add
AGENTMEM_API_KEY=to.env.local(TS) or.env(Python). - Append that file to
.gitignoreif it isn't already. - Drop an
agentmem-example.{ts,py}script that does a write + search round-trip.
Then paste your key from the dashboard into the env file and run the example.
Flags
| Flag | Effect |
|---|---|
| --lang ts\|python | Force a language; skip detection. |
| --yes, -y | Skip the confirmation prompt (for CI). |
| --skip-install | Don't run npm install / pip install — just write files. |
| --help, -h | Print usage. |
| --version, -v | Print version. |
What it does not do
- It does not create a key for you — you still grab one from the dashboard.
- It does not scaffold a new project. Run it inside an existing repo (
package.jsonorpyproject.toml). - It does not modify code outside the env file, gitignore, and one example file. Re-running is safe; existing files are left alone.
