CLI

One command.
Claude Code, fully wired.

The forgein CLI installs the /forgein skill into Claude Code. One command syncs your memory to the cloud — your context is always current across sessions and adapters.

zsh
$ curl -fsSL https://app.forgein.ai/cli/install | bash

Requires curl. Works on macOS and Linux. After install, run /forgein auth inside Claude Code.

Setup in 3 steps

01
Install
zsh
$ curl -fsSL https://app.forgein.ai/cli/install | bash

One command installs the /forgein skill into Claude Code — writes ~/.claude/commands/forgein.md with all subcommands. No PATH changes, no config files.

02
Authenticate
zsh
$ /forgein auth

Run inside Claude Code. Opens app.forgein.ai/tokens — create a token, paste it back. Saved to ~/.config/forgein/token.

03
Sync memory
zsh
$ /forgein mem sync

Pushes your local memory files to the cloud and pulls any remote changes. Run this whenever you update your memories to keep all adapters current.

What the installer writes

~/.claude/commands/forgein.md/forgein skill for Claude Code — auth, mem, optimize, sec, and all subcommands

The installer is idempotent — running it again is safe.

Commands

All commands run inside Claude Code with a leading /. They're implemented as a Claude Code skill — not a standalone binary.

/forgein authAuthenticate the CLI with your forgein account — saves a token to ~/.config/forgein/token.
/forgein memManage your memory files.
syncPush local files to the cloud and pull any remote changes.
listList all memories grouped by type (user, feedback, project, reference).
search <q>Search memory bodies for a keyword.
add <type> <content>Add a new memory entry.
pruneInteractively remove stale memories.
auditCheck index for broken links and duplicate slugs.
/forgein optimizeScore and install Claude Code skills that match your workflow.
/forgein sec [path]Security check on staged git changes (or a specific file/directory).
Need your API token first?
Tokens are created under Dashboard → API Tokens. Free accounts get one token.
Create account →Quickstart guide