Skip to content

docs(sdk): add PostgreSQL-backed persistence guide and API reference#465

Open
StatPan wants to merge 1 commit intoOpenHands:mainfrom
StatPan:feat/postgresql-filestore
Open

docs(sdk): add PostgreSQL-backed persistence guide and API reference#465
StatPan wants to merge 1 commit intoOpenHands:mainfrom
StatPan:feat/postgresql-filestore

Conversation

@StatPan
Copy link
Copy Markdown

@StatPan StatPan commented Apr 21, 2026

Summary

  • Documents PostgreSQLFileStore in the SDK persistence guide (sdk/guides/convo-persistence.mdx): installation (pip install "openhands-sdk[postgresql]"), usage example with LocalConversation, table schema, locking note, and the file_store / persistence_dir mutual exclusion semantics
  • Adds file_store parameter to the LocalConversation.__init__() API reference (sdk/api-reference/openhands.sdk.conversation.mdx)

Related SDK PR

OpenHands/software-agent-sdk#2902 — adds PostgreSQLFileStore (openhands/sdk/io/postgresql.py), the postgresql optional dependency, and the file_store parameter to LocalConversation.__init__() / ConversationState.create()

Test plan

  • Verify the "PostgreSQL-backed Persistence" section renders correctly in the docs site
  • Verify the file_store parameter appears in the LocalConversation.__init__() API reference
  • Verify the schema SQL block and Tip callout render as expected

🤖 Generated with Claude Code

Document PostgreSQLFileStore usage for environments where the local
filesystem is not persistent (Cloud Run, serverless, containers without
mounted volumes). Covers installation, usage with LocalConversation,
schema, locking behaviour, and the file_store / persistence_dir
mutually-exclusive semantics.

Co-authored-by: openhands <openhands@all-hands.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants