Goose
Where Goose stores your session history
Goose keeps sessions in a SQLite database, sessions.db, under ~/.local/share/goose. How to find it on each system, export sessions and import other agents' history.
Updated October 29, 2026 // Markdown
- Made by
- Agentic AI Foundation (originally Block)
- History lives in
- macOS / Linux
~/.local/share/goose/sessions/sessions.db - Windows
%APPDATA%\Block\goose\data\sessions\sessions.db
- macOS / Linux
- Format
- SQLite (tables sessions, messages, usage_ledger)
- Kept for
- Kept until you delete it
- Resume
goose session --resume- Cloud copy
- Local only
Goose, the open-source agent started at Block and now at aaif-goose/goose, stores sessions in SQLite.
Where the database is
| System | Path |
|---|---|
| macOS, Linux | ~/.local/share/goose/sessions/sessions.db |
| Windows | %APPDATA%\Block\goose\data\sessions\sessions.db |
GOOSE_PATH_ROOT changes the root. The sessions table holds tokens, cost, model and working directory; messages holds each message as JSON; usage_ledger tracks usage.
Resume, export and import
goose session --resume
goose session --resume --fork
goose session list
goose session export --format markdown # or json, yaml, html
goose session import <file.jsonl> # Claude Code, Codex or Pi sessions
goose session remove
goose run --no-session "..." # a run that saves nothing
Privacy notes
Sessions are local only. The groundedby evaluator does not read Goose's database yet.
Questions
Where does Goose save sessions?+
In ~/.local/share/goose/sessions/sessions.db on macOS and Linux, and %APPDATA%\Block\goose\data\sessions\sessions.db on Windows. GOOSE_PATH_ROOT moves it. Versions before 1.10.0 used .jsonl files, imported into the database once.
Can Goose import Claude Code or Codex sessions?+
Yes. goose session import accepts Claude Code, Codex and Pi .jsonl files.
Sources
Waitlist
Your sessions, your call.
We are building an opt-in marketplace where developers license redacted sessions they pick, one by one. Join to hear first.
Read next
- Claude CodeWhere Claude Code stores your session historyClaude Code keeps every session as a JSONL file in ~/.claude/projects and deletes them after 30 days by default. How to find, resume, export, keep and delete them.Read +
- Codex CLIWhere OpenAI Codex CLI stores your session historyCodex CLI saves each session as a rollout JSONL file in ~/.codex/sessions by date and compresses old ones to .jsonl.zst. How to find, resume, archive and delete them.Read +
- Market$500, then $200: what one posting tells us about the price of a coding sessionIn October 2026 Mercor paid developers $500 per recorded coding session, then cut it to $200 within a week. What the price says about the market for agent session data.Read +