The open standard for how anything works

Define. Record.
Optimize.

Every process — APIs, teams, companies, human-AI collaboration — can be defined, recorded, and improved. Two YAML files. One standard.

Open source · Apache 2.0 · 9 CLI commands · 113 workflow examples

See it in action

OSOP uses its own format to explain itself. Click Visual to see the flow. Click .osop to see the YAML.

Stripe Payment Flow (API SOP)

stripe-payment-flow.osop.yaml
POST /v1/customersapi

Create a Stripe customer with email and metadata.

sequentialPOST /v1/payment_intents
POST /v1/payment_intentsapi

Create a payment intent. Amount, currency, customer ID.

sequentialPOST /v1/payment_intents/{id}/confirm
POST /v1/payment_intents/{id}/confirmapi

Confirm the payment with a payment method.

sequentialGET /v1/payment_intents/{id}
fallbackPOST /v1/payment_intents
GET /v1/payment_intents/{id}api

Verify the payment succeeded.

conditionalAI Generate Receipt
AI Generate Receiptagent

AI generates a personalized receipt email.

The Optimization Loop

the-loop.osop.yaml
osop runcli

Execute the workflow. Agent nodes call LLMs. API nodes send HTTP requests.

sequential.osoplog Generated
.osoplog Generatedsystem

Every node: timestamps, duration, cost, tools, AI reasoning, human decisions.

sequentialosop synthesize
osop synthesizeagent

Feed multiple .osoplog to AI. It writes an optimized .osop.

sequentialosop diff
osop diffcli

Compare old vs new. Per-step duration, cost, status changes.

sequentialHuman Reviews
Human Reviewshuman

Accept, modify, or reject. The human decides.

looposop run

Everything serves the two pillars

CLI, editor, SDKs, converters, MCP server, agent integrations. All open source.

It started with wanting to know what the AI did. Then I realized every team has the same problem — processes are invisible. Every API sequence, every company workflow, every human-AI collaboration. If you can't see it, you can't improve it. OSOP makes it visible.

— Why OSOP exists

Two YAML files. That's it.

.osop defines what should happen. .osoplog records what did happen. Everything else builds on top.

pip install osop