A session = one conversation with Claude. It remembers everything: what you asked, what Claude did, what files changed, how much it cost. It's saved to disk automatically. You never lose work.
Just type a prompt. That's it. A new session is created automatically with a random name like "brave-falcon".
Give it a real name so you can find it later:
/rename -- type this in the prompt while inside a sessionctrl+r -- keybind shortcut, works anywhereName sessions after what you're working on: "auth-refactor", "fix-login-bug", "add-dark-mode".
/sessions -- opens the session picker (also /resume or /continue)/new -- start a brand new session (also /clear)You sit down Monday morning:
opencode -c <- picks up where you left off Friday
You get pulled into a bug:
/new <- fresh session > fix the crash in auth <- work the bug /rename <- call it "auth-crash-fix"
Bug's fixed, back to your feature:
/sessions <- open the picker search "dark" <- find your "add-dark-mode" session enter <- you're back, full context intact
End of day, close terminal. Everything is saved.
| Command | What it does |
|---|---|
opencode | Start fresh on the home screen |
opencode -c | Resume your most recent session |
opencode -s ses_abc123 | Jump to a specific session by ID |
opencode session list | List all sessions in the terminal |
opencode session list --format json | List sessions as JSON (for scripting) |
| Command | What it does |
|---|---|
/sessions | Open the session picker |
/resume | Same as /sessions |
/continue | Same as /sessions |
/new | Start a new session |
/clear | Same as /new |
/rename | Rename the current session |
| Key | What it does |
|---|---|
ctrl+r | Rename session |
session_list keybind | Open session picker |
/new session for each distinct task.-c habitually.opencode -c saves you from hunting through the picker./sessions picker, hit the delete keybind twice (confirmation required) to remove sessions you don't need.Think of sessions like browser tabs for conversations. Each tab has its own history, its own context, its own state. You can have many open, switch between them, close ones you don't need, and name them so you can find them later. The difference: these tabs survive closing the terminal.