Skip to main content

deja

Local-first persistent memory CLI for coding agents. Memories accumulate across sessions, deduplicate automatically, and stay on your machine.

Install

uv tool install deja-cli

Quick Start

deja init                        # first-time setup
deja setup claude-code           # inject memory instructions into Claude Code

Core Commands

Save a memory:

deja save "Always use explicit error handling over try/catch" --type preference
deja save "Auth tokens stored in localStorage, not cookies" --type decision --project myapp
deja save "Prisma migrations fail silently if DB_URL has wrong port" --type gotcha --project myapp

Each memory is one piece of info — max 2000 chars. If your save is longer, split it into 2+ memories, each one specific fact.

Load at session start:

deja load --project myapp --context "what you're working on"

Search mid-session:

deja search "authentication" --project myapp

Extract memories from a session:

deja save-session --project myapp

Memory Types

Type When to use
preference How you like to code — style, tools, habits
pattern Reusable solution that applies across contexts
decision Non-obvious architectural choice with reasoning
gotcha Bug, trap, or non-obvious issue to avoid
progress Current state of in-progress work
procedure Ordered steps for a recurring task

Setup for Coding Agents

deja setup claude-code     # Claude Code — global config + recall hooks
deja setup gemini-cli      # Gemini CLI
deja setup codex           # Codex CLI
deja setup cursor          # Cursor
deja setup windsurf        # Windsurf

MCP Server

claude mcp add --scope user deja -- ~/.local/bin/deja-mcp

Registers memory_load, memory_save, and memory_search as native tools in every Claude Code session.

Metadata

Release files for deja-cli 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deja-cli 0.3.1
File Size Uploaded Provenance Actions
deja_cli-0.3.1.tar.gz 130.8 kB Without provenance Details for deja_cli-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deja-cli 0.3.1
File Interpreter ABI Platform Actions
deja_cli-0.3.1-py3-none-any.whl Python 3 none any Details for deja_cli-0.3.1-py3-none-any.whl

Total release size: 287.6 kB

Release files / deja_cli-0.3.1.tar.gz

Download URL deja_cli-0.3.1.tar.gz
Size 130.8 kB
Tags Source
SHA-256 checksum
How to use checksums
202b411da3fc9305a0650542188725007dc610d72d1da300bf4e7677a22356fa
BLAKE2b-256 checksum
How to use checksums
595fe920910c60c51e90fd8ed609b4ce37844cc00fee2f9208fee4a35697a9b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / deja_cli-0.3.1-py3-none-any.whl

Download URL deja_cli-0.3.1-py3-none-any.whl
Size 156.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87318cd79c656900cddfbd8dacceddd94532339ea5d797e0051df5327aa4f63c
BLAKE2b-256 checksum
How to use checksums
1c46bc4d1e2eda291628bcec638c383c902f1eff2b81ad58ef1544a38ed6f446
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for deja-cli 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page