Counting visitors…
Browse all docs
Start · 9Find your path through RunifoldLearn Runifold in 45 minutesUnderstand the complete Runifold platformYour first trustworthy runChoose the right execution APIChoose crates and Cargo featuresBuild common Runifold applicationsRunifold frequently asked questionsTroubleshoot Runifold applications
Execution kernel · 7Understand RunContextCoordinate external effects safelyBound work with budgets and cancellationHandle errors and retries safelyEvents, journals, and execution evidenceDesign capability-safe executionRecover safely from checkpoints
Models & providers · 7Route across models without duplicate outputChoose and configure a providerUse the provider-neutral model protocolBuild on the Provider Runtime contractUse OpenAI control-plane and Realtime APIsTest and benchmark provider adaptersSet up OpenAI, Anthropic, Gemini, and Ollama
Agents · 7Build and configure an AgentGive an Agent typed toolsAdd conversations and semantic memoryDelegate to child Agents safelyReturn structured Rust valuesStream without losing semanticsGround an Agent with retrieval
Durable workflows · 7Compose deterministic workflowsMake workflows durableOperate durable workflow workersCoordinate timers, signals, and durable waitsRun multi-tenant workflow infrastructureRun parallel branches and safe racesVersion and evolve durable workflows
Integrations · 7Connect through MCPChoose stores and persistence boundariesExpose durable work through MCP TasksBuild and evaluate retrieval pipelinesUse MCP Resources, Prompts, and SamplingCache MCP responses without crossing authorityDeploy Runifold in a Rust web service
Quality & operations · 10Test without the networkEvaluate quality and prevent regressionsObserve the complete run treeRun safely in browsers and at the edgeRead reliability claims preciselyRun reproducible evaluations in CIOperate Runifold with SLOsGovern Task retention and deletionArchive audit evidence to S3-compatible WORM storageManage compatibility and trusted releases
Docs/Models and providers
NEW TO RUNIFOLD?Build the complete mental model in 45 minutes
Models and providers

Choose and configure a provider

Compare native adapters, compatible endpoints, regional configuration, and verification levels.

Practical guide·10 min

Support matrix

Runifold exposes Provider adapters behind one canonical model interface. In 0.9, the runtime lives in runifold and concrete adapters live in runifold-providers; enable only the latter crate's Features you deploy.

Provider pathFeatureBest for
OpenAIopenaiOpenAI Responses-compatible models
AnthropicanthropicNative Claude semantics
GeminigeminiNative Google Gemini
BedrockbedrockAWS-managed model access
OpenAI-compatibleopenaiNamed compatible and regional modules

The repository README is the release-specific source of truth for the complete matrix and verification status.

Native or compatible

Prefer a native adapter when you need provider-specific reasoning, tool, usage, or streaming semantics. Use a compatible protocol when interchangeability is more important and the endpoint has been verified.

“OpenAI-compatible” describes a wire shape, not identical behavior. Feature support, error classification, usage accounting, and streaming can still vary.

Configuration patterns

Construct the client from application configuration, then build a resilient runtime and an Agent. Keep credentials in the process secret store.

use runifold::ProviderModelExt;
use runifold_providers::openai::OpenAiClient;
 
let runtime = OpenAiClient::from_api_key(
    std::env::var("OPENAI_API_KEY")?
)?.runtime("gpt-5")?;

For compatible or regional endpoints, validate the base URL against an allowlist. Never accept an arbitrary model endpoint from end-user input.

Capability contract

Model features are negotiated explicitly. Tools, strict structured output, reasoning, vision, and streaming may be supported, unsupported, or unknown.

Choose fail-closed behavior for requirements that affect correctness. An explicit degradation is appropriate only when the product can safely explain and measure it.

Verification levels

Separate four claims:

  1. the adapter compiles;
  2. deterministic contract tests pass;
  3. live smoke tests pass against the real service;
  4. the exact model and feature combination is production-observed.

Pin versions, record the tested model identifier, and rerun live verification before relying on a new provider feature.