Give your OpenClaw sessions memorable names and pick them up exactly where you left off. No more hunting through cryptic session IDs.
text
/sessmgr <action> [args]
Actions:
name <name> [description] Name the current session
list Show all named sessions
reload <name> Switch to a named session
new <name> Start a fresh named session
rename <old> <new> Rename a session
save <name> Touch a session's last-used time
delete <name> Remove a name (keeps transcript)
Natural language works too — "name this session project-alpha", "switch to my-dev-session", etc.
199f3a3c-882a-4cec-9f86-693bca7b9fa1/sessmgr reload project-alpha restores contextname <name> [description]#What it does: Tags the current session with a memorable name.
text
/sessmgr name auth-redesign OAuth flow refactor
Natural language: "name this session auth-redesign" / "call this session my blog draft"
Details:
rename to reclaim it)Output on success:
text
Named session 'auth-redesign' -> 199f3a3c-882a-4cec-9f86-693bca7b9fa1
Description: OAuth flow refactor
list#What it does: Shows all named sessions with metadata.
text
/sessmgr list
Natural language: "list my sessions" / "show all named sessions"
Output:
text
Name Session ID Created Last Used Description
--------------------------------------------------------------------------------------------------------------------------------------
auth-redesign 199f3a3c-882a-4cec-9f86-693bca7b9fa1 2026-04-19T11:08:49+00:00 2026-04-19T14:22:00+00:00 OAuth flow refactor
dev-work a1b2c3d4-e5f6-7890-abcd-ef1234567890 2026-04-18T09:30:00+00:00 2026-04-18T16:45:00+00:00 Backend API investigation
Tips:
lastUsed that matches your current session IDreload <name>#What it does: Switches to a named session by printing RELOAD_SESSION:<sessionId>.
text
/sessmgr reload auth-redesign
Natural language: "switch to auth-redesign" / "go to session dev-work" / "load project-alpha"
Output on success:
text
RELOAD_SESSION:199f3a3c-882a-4cec-9f86-693bca7b9fa1
If the name doesn't exist:
text
Error: no session named 'auth-redesign'. To start a new session with this name, use /sessmgr new auth-redesign
⚠️ Channel limitation: Reloading only works within the same channel. Webchat sessions reload in webchat, Telegram in Telegram, etc. Cross-channel switching is not supported.
new <name>#What it does: Confirms the name is available, then prints NEW_SESSION:<name> to signal intent to start fresh.
text
/sessmgr new project-alpha
Natural language: "start a new session called project-alpha" / "create a new session named staging"
Output on success:
text
NEW_SESSION:project-alpha
If the name already exists:
text
Error: a session named 'project-alpha' already exists. Use /sessmgr reload project-alpha to return to it.
rename <old-name> <new-name>#What it does: Changes the name of an existing session without touching the transcript.
text
/sessmgr rename dev-work backend-research
Natural language: "rename dev to staging" / "change session name from old-session to new-session"
Output on success:
text
Renamed 'dev-work' -> 'backend-research'.
Validation:
new-name must be unique (no existing session with that name)save <name>#What it does: Updates the lastUsed timestamp without leaving the current session. Useful for marking a session as "alive" without switching.
text
/sessmgr save auth-redesign
Natural language: "save session auth-redesign" / "touch the timestamp for my dev session"
Output:
text
Saved session 'auth-redesign' (updated lastUsed).
delete <name>#What it does: Removes the name mapping. The transcript file ( .jsonl) is never deleted — only the human-readable name is removed.
text
/sessmgr delete old-session
Natural language: "delete session old-session" / "remove the name old-session"
Output:
text
Deleted session name 'old-session' (session file preserved).
Recovery: If you delete a name by accident, the session transcript still exists at ~/.openclaw/agents/main/sessions/<sessionId>.jsonl. You can find it by checking sessions.json and re-name it with /sessmgr name.
FilePurpose~/.openclaw/agents/main/sessions/names.jsonName → sessionId mapping with metadata~/.openclaw/agents/main/sessions/<sessionId>.jsonlThe actual session transcript (never deleted)
names.json entry structure:
json
{
"sessionId": "199f3a3c-882a-4cec-9f86-693bca7b9fa1",
"created": "2026-04-19T11:08:49.440540+00:00",
"lastUsed": "2026-04-19T14:22:00.000000+00:00",
"description": "OAuth flow refactor"
}
RuleDetailsAllowed charactersLetters ( a-z, A-Z), digits ( 0-9), hyphens ( -), underscores ( _)Max length64 charactersCasePreserved — Auth-Redesign and auth-redesign are different namesReserved namesNone, but avoid names that look like actions ( name, list, new, etc.) to prevent ambiguity
SituationMessageName doesn't exist (reload)Error: no session named '<name>'. To start a new session with this name, use /sessmgr new <name>Name already taken (new)Error: a session named '<name>' already exists. Use /sessmgr reload <name> to return to it.Name belongs to another sessionError: name '<name>' is already assigned to a different session.Invalid charactersError: name must be alphanumeric, hyphens, or underscores only.Can't determine current sessionError: could not determine current session ID.New name already exists (rename)Error: name '<new-name>' already exists.Name doesn't exist (save/delete/rename)Error: no session named '<name>'.
Multiple projects simultaneously:
text
/sessmgr name frontend-rework
# work on frontend...
/sessmgr name backend-api
# work on backend...
/sessmgr reload frontend-rework # pick up exactly where you left off
Meaningful descriptions:
text
/sessmgr name auth-redesign "Fixing OAuth callback, third attempt"
Check before starting new:
text
/sessmgr list
# see if 'staging' already exists before /sessmgr new staging
Session cleanup without losing history:
text
/sessmgr delete old-session # removes the name
# transcript still at: ~/.openclaw/agents/main/sessions/<sessionId>.jsonl