Skip to content

Getting started

Aictx works inside an existing project. By the end of this page you will have a local .aictx/ directory, repo-level agent guidance, and the commands for the first memory loop.

  • Node.js >=22
  • A project directory where you want AI coding agents to remember durable project context

Check Node with:

Terminal window
node --version

Install globally for the simplest CLI and MCP setup:

Terminal window
npm install -g @aictx/memory

Global install is the recommended default for regular CLI use and optional MCP use. A project-local dependency is only needed when a project should pin its own Aictx version.

For project-local version pinning:

Terminal window
pnpm add -D @aictx/memory
npm install -D @aictx/memory

When aictx is not on PATH, run commands through the package manager or local binary:

Terminal window
pnpm exec aictx init
npm exec aictx init
./node_modules/.bin/aictx init

For one-off execution without a global or local install:

Terminal window
pnpm --package @aictx/memory dlx aictx init
npx --package @aictx/memory -- aictx init

From the project root:

Terminal window
aictx init

init creates .aictx/ and, by default, updates marked Aictx sections in AGENTS.md and CLAUDE.md. Those sections tell coding agents to load memory before non-trivial work and make a save/no-save decision after meaningful work.

Use --no-agent-guidance when you want to leave those instruction files unchanged.

For guided onboarding:

Terminal window
aictx setup
aictx setup --apply

aictx setup previews a conservative bootstrap memory patch. aictx setup --apply applies it immediately.

If you want to inspect the patch file manually:

Terminal window
aictx suggest --bootstrap --patch > bootstrap-memory.json
aictx patch review bootstrap-memory.json
aictx save --file bootstrap-memory.json
aictx check

This is the right path when memory feels empty after init, or when you want source-backed product intent, feature map, roadmap, architecture, conventions, and agent guidance syntheses without hand-writing JSON.

Load memory before non-trivial work:

Terminal window
aictx load "change auth routes"

After work creates durable knowledge for future agents, save a structured patch:

Terminal window
aictx save --stdin

Saved memory is active immediately after Aictx validates and writes it. A task that produced no reusable project knowledge does not need a save.

Inspect memory later:

Terminal window
aictx view
aictx diff

The CLI is the default interface for routine memory work. MCP is available when the agent client has launched and connected to aictx-mcp.

MCP exposes exactly load_memory, search_memory, inspect_memory, save_memory_patch, and diff_memory. Setup, maintenance, recovery, export, registry, viewer, docs, suggest, audit, stale, and graph workflows are CLI-only in v1. These CLI-only commands are part of the v1 integration model rather than MCP parity gaps.

Local MCP is the near-term integration path for local agent harnesses. Remote MCP, hosted sync, cloud auth, cloud hosting, and ChatGPT App SDK UI are future work. Future ChatGPT-compatible search/fetch names are adapter aliases over search and inspect behavior, not local MCP tool names.