Installation
Install the SDK or MCP server for OptimAI Search workflows.
Use the direct SDK path for application code. Use the MCP path for coding assistants and agent runtimes.
SDK
pnpm add @optimai-network/x402-sdkMCP server
npx -y @optimai-network/search-mcpEnvironment
OPTIMAI_API_KEY=sk-...Never commit API keys. For production, store them in the platform secret manager.
For MCP-specific setup, continue with Search MCP. For paid request flows, continue with x402 SDK.