pi-keepnow

Save and retrieve KeepNow notes from the Pi coding agent

Packages

Package details

extension

Install pi-keepnow from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-keepnow
Package
pi-keepnow
Version
0.1.1
Published
Aug 18, 2026
Downloads
321/mo · 3/wk
Author
hikerell
License
unknown
Types
extension
Size
21.7 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./dist/index.js"
  ],
  "image": "https://keepnow.app/images/og-keepnow.png"
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

KeepNow — Pi extension

Turn Pi sessions into clean, searchable Markdown notes on KeepNow, then bring earlier notes back into context when you need them.

Install

pi install npm:pi-keepnow

Configure

Create a KeepNow API key at https://keepnow.app/my/install, then save it locally:

/keepnow --apikey kn-0123456789abcdef0123456789abcdef

The key is stored as apikey in ~/.keepnow/config.json, readable only by your user. KEEPNOW_API_KEY, when set, takes precedence over the saved key.

Verify the connection to KeepNow:

/keepnow --status

Use

Command What it does Model tokens
/keepnow Show command help no
/keepnow --help Show command help no
/keepnow <description> Write up the session following the description yes
/keepnow --find <description> Search titles, summaries and keywords no
/keepnow --open <number-or-id-or-url> Read a note back into the current context yes, including note body
/keepnow --recent Show the last 10 notes no
/keepnow --status Show account, plan and usage no
/keepnow --apikey <key> Save the API key locally no

The description is a natural-language instruction, not just a topic:

/keepnow summary
/keepnow all important findings
/keepnow the authentication bug, its cause, and the final fix
/keepnow --find Cloudflare D1 migration
/keepnow --open 2
/keepnow --open https://keepnow.app/my/notes/<id>

--find and --recent return numbered lists. Pass one of those numbers to --open, or pass a note ID or current KeepNow note URL directly.

Pi handles help, search, recent notes, status, and API-key configuration directly without invoking the model. Opening a note adds its body to the active context; writing up a session uses the model.

Session-safe updates

The extension records note IDs in Pi's session state. The mapping survives compaction, reloads, and resumed sessions. Before updating a same-session note, the model can retrieve its old body and merge it with new material; notes from other sessions cannot be updated through that internal path.

Configuration

Variable Required Default
KEEPNOW_API_KEY no saved configuration
KEEPNOW_API_URL no https://keepnow.app