Lightweight
Durable Execution

Highly performant & efficient to build reliable AI agents and workflows.

Ask AI about DexChatGPTClaude

Trusted in production by

Zero dependencies

Fast and efficient

One 16-vCPU AWS EC2 instance.

p90 read latency at 35k/s
1.0 ms

From our benchmark. Temporal Cloud starts at 500 Actions/s and charges $50 per million Actions.

Easy to operate

binary
22 MB
memory to start
12 MB

Your data stays in your bucket. Unlimited history data storage. A standby takes over on failure.

Dex ServerLocal diskcache
Object storageS3GCSAzure BlobAliyun OSSTencent COS
Standby
Fewer stepsMore steps
Fewer approvalsMore approvals
Fewer runsMore runs

No runs yet.

    ResetPauseSound off

    Paused

    No Replay

    You deploy new code mid-run

    TemporalReplay

    1. 1from datetime import timedelta ⋯
    2. 3from temporalio import activity, workflow ⋯
    3. 21@workflow.defn
    4. 22class ReplyWorkflow: ⋯
    5. 30 @workflow.run
    6. 31 async def run(self, ticket: str) -> str:
    7. 32 draft = await workflow.execute_activity( ⋯✓
    8. + await workflow.execute_activity( ⋯✕ mismatch
    9. 40 await workflow.wait_condition(lambda: self.approved)
    10. 41 return await workflow.execute_activity( ⋯
    Python+9

    History Events

    1. Workflow Execution Started

      #1

    2. Activity Task Scheduled

      #5draft_reply

    3. Activity Task Started

      #6

    4. Activity Task Completed

      #7

    5. Workflow Execution Signaled

      #11approve_reply

    6. Activity Task Scheduled

      #15send_reply

    Stuck until you add versioning

    DexNo replay

    1. 1from dex import ( ⋯
    2. 9class DraftReplyStep(Step[str]): ⋯✓
    3. − return go_to(SendReplyStep, f"draft reply for {input}")
    4. + return go_to(NotifyReviewerStep, f"draft reply for {input}") ⋯
    5. +class NotifyReviewerStep(Step[str]): ⋯
    6. 19class SendReplyStep(Step[str]):
    7. 20 def wait_for(self, context: Context, input: str) -> Wait: ⋯✓
    8. 23 def execute(self, context: Context, input: str) -> StepDecision: ⋯✓
    9. 27class ReplyFlow(Flow[str]): ⋯
    Python+8 −2

    History Events

    1. Flow Started

      #1

    2. Step Execute Completed

      #2DraftReplyStep

    3. Rpc Execution Completed

      #3approve_reply

    4. Step Wait For Completed

      #4SendReplyStep

    5. Step Execute Completed

      #5SendReplyStep

    6. Flow Closed

      #6

    Done. New runs take the new step

    DexTemporal
    CodeOrdinary code, no restrictionsSafe to change while Flows run.Deterministic code, version branchesChanges need a version branch or multiple Worker versions in production.
    Run state data64 MBData-nativeBuilt-in key-value store, up to 64 MB.1 MBVery limited sizeHistory and payload size limits. Usually under 1 MB.
    Run history sizeNo limitConfigurable retention.50K events or 50 MBLonger runs need Continue-As-New.

    Full comparison

    What developers say

    • Before iWF [the predecessor of Dex], our engineering teams were constantly running into problems with traditional replay-based workflow models. The developer experience was frustrating. Even something as simple as adding a log line or making a small code change could break workflow replay because of the strict determinism…

      more
      Xiqian HanPrincipal Engineer, Indeed
    • My team was among the first engineering teams at Indeed to adopt Indeed Workflow (iWF) [the predecessor of Dex]. At the time, we were building a refund system, one of the most business-critical systems in the Finance and Billing organization, where reliability, consistency, and fault tolerance were essential…

      more
      Dun MaoStaff Software Engineer, Indeed
    • During our time at DynamoDB, Long showed a brilliant talent for data storage, especially the performance and reliability of distributed systems. I'm excited to see him combine durable execution and data storage into one platform. He's probably the only person on earth who could do this!

      Jiaqi HuoFormer Software Engineer, AWS DynamoDB

    Keep your agent framework

    Add Dex to make its runs durable.

    • A crash reruns only the call in flight.
    • Approvals can wait for days.
    • New code takes effect at the next Step.

    Read the docs

    $ pip install dex-agents-pydantic-ai "pydantic-ai-slim[openai]"
    agent.pyPydantic AI · Python
    agent = Agent("openai:gpt-5.2", instructions="You help customers with their orders.")
    # @agent.tool find_order, refund_order, email_customer: unchanged
    
    flow = pydantic_ai_session_flow(
        agent,
        flow_type="OrderAgent",
        tool_policies={
            "find_order": ToolPolicy(ToolEffect.READ),
            "refund_order": ToolPolicy(ToolEffect.IDEMPOTENT_WRITE, requires_approval=True),
            "email_customer": ToolPolicy(ToolEffect.NON_IDEMPOTENT_WRITE),
        },
    )
    1. Install

      $ npm install @superdurable/dex
      $ npm install @superdurable/connectors-sdk@0.1.1 @superdurable/connector-google-gmail
    2. Add the Dex skills

      $ npx skills add superdurable/dex-skills --skill '*' --agent claude-code --global

      Or --agent codex, --agent cursor.

    3. Run locally (optional)

      $ brew install superdurable/tap/dexcli
      $ dexcli dev

    Open-source connectors