SQLite storage backend plugin for the Orchid AI framework
pip install orchid-storage-sqlite Copy PIP instructions
SQLite storage backend package for the Orchid AI framework.
SQLite implementations of the framework's storage / persistence ABCs:
The visibility fragment and checkpointer auto-register through importlib.metadata entry points — no manual register_* calls.
pip install orchid-storage-sqlite Usage Reference the classes you need in your orchid.yml:
storage: class: orchid_storage_sqlite.chat_storage.OrchidSQLiteChatStorage dsn: ~/.orchid/chats.db config_storage: enabled: true class: orchid_storage_sqlite.config_storage.OrchidSQLiteConfigStorage dsn: ~/.orchid/chats.db checkpointer: type: sqlite dsn: ~/.orchid/checkpoints.db For MCP gateway / OAuth deployments, add:
mcp_token_store: class: orchid_storage_sqlite.mcp_token_store.OrchidSQLiteMCPTokenStore dsn: ~/.orchid/chats.db mcp_client_registration_store: class: orchid_storage_sqlite.mcp_client_registration_store.OrchidSQLiteMCPClientRegistrationStore dsn: ~/.orchid/chats.db mcp_gateway_state_store: class: orchid_storage_sqlite.mcp_gateway_state_store.OrchidSQLiteMCPGatewayStateStore dsn: ~/.orchid/chats.db For the events block (Pollen + Bloom):
events: enabled: true store: class: orchid_storage_sqlite.event_storage.SQLiteEventStorage extra_args: dsn: ~/.orchid/chats.db queue: class: orchid_storage_sqlite.event_queue.SQLiteSignalQueue Or build any of them programmatically:
from orchid_storage_sqlite import OrchidSQLiteChatStorage, SQLiteSignalQueue, SQLiteEventStorage storage = OrchidSQLiteChatStorage(dsn="~/.orchid/chats.db") await storage.init_db() Use :memory: for tests and ephemeral runs.
The single v001_initial_schema migration creates all framework tables (chat, MCP, events, agent_configs, conversation_summaries) in one pass; v002_ingestion_manifest adds the indexing manifest. All store classes share the same migration runner, so it does not matter which class triggers init_db() first; subsequent calls become no-ops thanks to CREATE TABLE IF NOT EXISTS.
Integrators can append their own migrations on top of this package's by setting extra_migrations_package (a dotted import path) on the storage class — their migrations run after the framework's and are recorded with an ext: prefix in the shared _migrations table.
cd orchid-storage-sqlite pip install -e ".[dev]" pytest tests/ -x ruff check orchid_storage_sqlite/ tests/ Tests use :memory: / tmp_path SQLite databases — no services required.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.




