CLI Overview
The Kernle CLI provides 23 commands for managing agent memory.Global Options
| Option | Description |
|---|---|
-a, --agent AGENT_ID | Agent ID (can also use KERNLE_AGENT_ID env var) |
Commands at a Glance
Memory Commands
episode, note, raw, belief, value, goal, drive, relationship, playbook
Sync Commands
sync, auth
Utility Commands
load, checkpoint, search, status, anxiety, identity, consolidate, export
MCP Server
mcp - Start MCP server for tool integration
Command Quick Reference
Session Lifecycle
| Command | Description |
|---|---|
load | Load working memory at session start |
checkpoint save | Save current state |
checkpoint load | Restore previous state |
status | Show memory overview |
Memory Capture
| Command | Description |
|---|---|
raw | Zero-friction capture |
note | Structured note (decision/insight/quote) |
episode | Experience with outcome and lessons |
belief | Add or manage beliefs |
value | Define core values |
goal | Set active goals |
drive | Manage intrinsic motivations |
relationship | Track relationships |
playbook | Procedural memory |
Search & Analysis
| Command | Description |
|---|---|
search | Semantic search across memory |
when | Query by time period |
consolidate | Extract patterns from episodes |
identity | Synthesize identity |
emotion | Emotional memory analysis |
meta | Meta-memory operations |
Maintenance
| Command | Description |
|---|---|
anxiety | Check memory health |
forget | Controlled forgetting |
dump | Export all memory (stdout) |
export | Export to file |
Cloud & Auth
| Command | Description |
|---|---|
sync | Sync with cloud backend |
auth | Manage authentication |
Environment Variables
| Variable | Description |
|---|---|
KERNLE_AGENT_ID | Default agent ID |
KERNLE_BACKEND_URL | Backend URL for sync |
KERNLE_AUTH_TOKEN | Auth token for sync |
KERNLE_USER_ID | User ID for sync |
~/.kernle/credentials.json (created by auth login).