Skip to main content
Use OpenRouter’s MCP adapter to discover Darwin’s tools and pass them directly to the Agent SDK. Install the two SDKs and Zod:

Add Action tools deliberately

Provide an OpenRouter OAuthClientProvider when the application needs Action scopes. Persist actionId outside model messages and return Darwin’s structured pauses to the application without rewriting them as success prose.
Keep Darwin and OpenRouter credentials on the server. Provider tokens, payment data, and approval payloads do not belong in prompts or client-visible tool arguments.
View the complete Darwin recipe or OpenRouter’s MCP tools documentation.
Last modified on September 22, 2026