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 Act tools deliberately

Provide an OpenRouter OAuthClientProvider when the application needs Act scopes. Persist threadId and the last consumed cursor outside model messages and return Darwin’s typed requests and operation states 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.
Review OpenRouter’s MCP tools documentation for current adapter behavior.
Last modified on September 29, 2026