Overview
OpenHands CLI automatically saves your conversation history in~/.openhands/conversations. You can resume any previous conversation to continue where you left off.
Listing Previous Conversations
To see a list of your recent conversations, run:Resuming a Specific Conversation
To resume a specific conversation, use the--resume flag with the conversation ID:
Resuming the Latest Conversation
To quickly resume your most recent conversation without looking up the ID, use the--last flag:
How It Works
When you resume a conversation:- OpenHands loads the full conversation history from disk
- The agent has access to all previous context, including:
- Your previous messages and requests
- The agent’s responses and actions
- Any files that were created or modified
- You can continue the conversation as if you never left
The conversation history is stored locally on your machine. If you delete the
~/.openhands/conversations directory, your conversation history will be lost.Resuming in Different Modes
Terminal Mode
ACP Mode (IDEs)
With Confirmation Modes
Combine--resume with confirmation mode flags:
Tips
Storage Location
Conversations are stored in:See Also
- Terminal Mode - Interactive CLI usage
- IDE Integration - Resuming in IDEs
- Command Reference - Full CLI reference

