Install
openclaw skills install segundoCLI tool for capturing and retrieving thoughts as a second brain. Stores memories as daily markdown journals with optional semantic search. USE FOR: - Captur...
openclaw skills install segundoA zero-friction second brain CLI. Captures thoughts as daily markdown journals with tags and semantic search. Built with TypeScript, runs on Bun.
Run segundo --help for usage details.
segundo initsegundo add "thought"| Need | Command | When |
|---|---|---|
| Create brain | segundo init | First time setup |
| Capture thought | segundo add "thought" [--tag foo] | Have something to remember |
| Search | segundo search "query" | Find a specific memory |
| List recent | segundo list [--limit N] | Browse recent memories |
| Stats | segundo stats | See brain overview |
segundo init
segundo init --reindex # Rebuild embedding index
segundo add "read Designing Data-Intensive Applications" --tag book
segundo add "line one\nline two"
segundo add "thought one" "thought two" "thought three" # batch
echo "thought from pipe" | segundo add # stdin
cat notes.txt | segundo add --batch # split on blank lines
segundo search "restaurant"
segundo search "data" --limit 5 --from 2026-01-01
Uses semantic search when an embedding provider is configured, falls back to text search otherwise.
segundo list
segundo list --limit 5
segundo list --tag book
segundo list --from 2026-03-01 --to 2026-03-10
segundo edit <id> "new content"
segundo edit id1 "content1" id2 "content2" # batch
segundo delete <id>
segundo delete id1 id2 id3
segundo import notes.md
segundo import ./notes-dir/ --tag imported
segundo import file.txt --dry-run
segundo export
segundo export --format json
segundo export --from 2026-03-01 --to 2026-03-10 --tag book
segundo stats
Shows total memory count, date range, top tags, embedding index size, and brain path.
Tags go on the last line of an entry. Add via --tag flag or inline:
segundo add "great chapter on consistency\n#book #engineering"
segundo add "lunch spot" --tag food
All list/search/export commands support:
--tag <name> - filter by tag--from <DATE> - start date (inclusive)--to <DATE> - end date (inclusive)--limit <N> - max resultssegundo --profile work add "quarterly review notes"
segundo --profile personal list
segundo --brain /custom/path list
All commands support --json for structured output:
segundo list --json
segundo add "thought" --json
segundo search "query" --json
Memories live in ~/.segundo/memories/ as daily markdown files:
~/.segundo/
config.json
memories/
2026-03-10.md
embeddings/
index.bin
meta.json
Configure in ~/.segundo/config.json:
{
"embeddings": {
"provider": "ollama",
"model": "nomic-embed-text",
"ollamaUrl": "http://localhost:11434"
}
}
Supports Ollama (local, free) and OpenAI (cloud, requires openaiApiKey or $OPENAI_API_KEY).