AI Workflow Runtime
Your AI agents,
made reliable.

Define multi-step AI workflows. We handle the retries, the waits, the crashes, and the cost tracking. All while you sleep.

Durable ExecutionLLM OrchestrationHuman ApprovalsCost TrackingAuto RetriesEvent TimelineTool TracingWebhooksMulti-TenantType-Safe SDKDurable ExecutionLLM OrchestrationHuman ApprovalsCost TrackingAuto RetriesEvent TimelineTool TracingWebhooksMulti-TenantType-Safe SDK
6

Step Types

task, wait, condition, event, LLM, approval

2

LLM Providers

OpenAI + Anthropic with auto-fallback

0

Lost Executions

PostgreSQL-backed durable state

Workflow Length

hours, days, weeks — no timeout

01

How Stevora works

01

Define your workflow

Typed steps in code. LLM calls, timed waits, conditional branches, human approval gates. No visual builder, no YAML.

02

One API call to start

POST your input. We persist the state, enqueue execution, and your workflow begins immediately. Idempotency keys prevent duplicates.

03

We execute durably

Steps run in sequence. Failures retry with exponential backoff. Wait steps resume after hours or days. Server crashes lose nothing.

04

Full observability

Every LLM call logged with tokens and cost. Every tool invocation traced. Every state transition recorded.

02

How the pieces fit

Crash-proof

Server restarts mid-workflow? Execution resumes from the last completed step. Zero data loss.

Queue-backed

BullMQ ensures every step is processed exactly once. Redis is a queue, not the source of truth.

Observable

Every state transition, LLM call, tool invocation, and approval decision is recorded as an event.

03

Six building blocks

Every AI workflow is a sequence of these six step types. Combine them to build anything from a simple chatbot to a multi-day sales pipeline.

{}

Task Step

Execute custom business logic with full access to workflow state. Register typed handlers that receive context and return structured results.

{ "type": "task", "name": "enrich-lead",
  "handler": "enrichCompanyData",
  "retryPolicy": { "maxRetries": 3 } }
Read full documentation
04

Built for production AI

{}

LLM Adapter

Unified interface for OpenAI and Anthropic. Model fallback chains. Every call traced.

$

Cost Tracking

Per-call, per-workflow, per-workspace. Know exactly what your agents spend.

~

Durable State

PostgreSQL is the source of truth. Redis crashes? We rebuild. Server restarts? Resume.

!

Smart Retries

Exponential backoff per step. Configurable max attempts. Dead-letter after exhaustion.

?

Human Review

Approval steps pause the workflow. Approve, reject, or edit AI outputs before they ship.

*

Guardrails

Schema validation on LLM outputs. Content safety checks. Auto-retry with feedback.

05

What you can build

Every team building with LLMs hits the same wall: production reliability. Here's what Stevora makes possible.

AI SDR Outreach

Sales

Research prospects with LLM, draft personalized emails, pause for human approval, send, and wait for replies. Multi-day workflows that run autonomously.

1LLM: Research company
2Condition: Check fit
3LLM: Draft email
4Approval: Human review
5Task: Send email
6External Event: Await reply

Content Pipeline

Marketing

Generate articles with AI, validate tone and factual accuracy through guardrails, queue for editorial review, then publish to your CMS.

1LLM: Generate draft
2LLM: Fact-check
3Approval: Editor review
4Task: Publish to CMS
5Task: Notify Slack

Customer Support Bot

Support

Classify incoming tickets, attempt auto-resolution with tool-calling LLMs, escalate to human agents when confidence is low, track resolution cost.

1LLM: Classify ticket
2Condition: Can auto-resolve?
3LLM: Draft response (tools)
4Approval: Agent review
5Task: Send reply

Data Enrichment

Data

Ingest a batch of records, call external APIs to enrich each one, validate with schema guardrails, retry failures, write results back.

1Task: Fetch batch
2LLM: Extract fields
3Task: Call enrichment API
4Condition: Valid?
5Task: Write to DB
06

Ship in minutes

One import. Type-safe from definition to execution. The SDK handles polling, error recovery, and response parsing.

TypeScript-first

Full type safety from definitions to results

Polling built-in

waitForCompletion() with configurable timeout

Structured errors

AgentRuntimeError with code, status, details

Zero config

One API key, one import, ship immediately

workflow.ts
1import { AgentRuntime } from '@stevora/sdk'23const stevora = new AgentRuntime({4  apiKey: process.env.STEVORA_KEY5})67// Define → launch → observe. That’s it.8const run = await stevora.workflows.create({9  definitionId: 'ai-sdr-outreach',10  input: { prospect: 'Sarah Chen' },11  idempotencyKey: 'sarah-q2-2026'12})1314// LLM calls, retries, waits, approvals15// — all handled durably16const result = await stevora.workflows.waitForCompletion(17  run.id, { timeoutMs: 300_000 }18)1920// Every token accounted for21const { totalCostDollars } = await stevora.workflows.getCost(run.id)
TypeScript21 lines
07

Open source, self-hostable

Stevora runs on your infrastructure. No data leaves your network. Deploy with a single docker compose up.

Self-host anywhere

Docker image, docker-compose, or deploy to any VPS. You own the infrastructure.

No vendor lock-in

Standard PostgreSQL + Redis. Swap providers, fork the code, extend anything.

Full source access

Read every line. Audit the security. Contribute back. MIT licensed.

terminal
$ git clone https://github.com/abhi-apple/stevora$ cd stevora$ cp .env.example .env$ docker compose up -d PostgreSQL ........... healthy Redis ................ healthy Stevora API .......... :3000 Stevora Worker ....... readyReady at http://localhost:3000
08

Simple, honest pricing

Start free. Scale when you need to. Self-host for free forever — or let us handle the infrastructure.

MonthlyAnnualSave 20%

Free

$0

For side projects and experimentation.

  • 1,000 runs / month
  • 3 workflow definitions
  • 7-day event retention
  • Community support
  • Single workspace
Start free
Recommended

Pro

$29/mo

For startups shipping AI-powered products.

  • 10,000 runs / month
  • Unlimited workflows
  • 30-day retention
  • Email support
  • $0.005 / extra run
  • Webhook integrations
Start building

Team

$99/mo

For teams with production workloads.

  • 50,000 runs / month
  • Unlimited workflows
  • 90-day retention
  • Priority support
  • $0.003 / extra run
  • Team workspaces & RBAC
  • SSO / SAML
Contact us

Enterprise

Custom volume, SLA, dedicated support, on-prem deployment, HIPAA/SOC2.

Talk to us

Stop rebuilding infrastructure

Your AI agents should be shipping value, not failing silently at 3am.

No credit card required