Skip to main content
This page has been superseded by Distributed Storage — OSS. Content below is kept for reference.

OSS State Store

agentscope-extensions-oss persists AgentScope agent state in Alibaba Cloud Object Storage Service (OSS). Ideal for large-capacity data and Alibaba Cloud ecosystems.

Add the dependency

Quickstart

Key layout

The (userId, sessionId) pair is packed into OSS object paths: Anonymous sessions (userId is null) use __anon__ as the user segment.

Builder reference

Security

  • Use RAM Role + STS temporary credentials in production — avoid hardcoded AK/SK
  • Configure bucket lifecycle rules (e.g. 7-day auto-expiry) to control storage costs