OpenClaw
This quickstart shows how to connect OpenClaw to Swytchcode and use the provider tools from the CLI and MCP server.
Step-by-step setup
Step 1: Install the Swytchcode CLI
npm install -g swytchcodeirm https://cli.swytchcode.com/install.ps1 | iexcurl -fsSL https://cli.swytchcode.com/install.sh | shUse swy as a shorter alias for swytchcode.
Step 2: Initialize Swytchcode for OpenClaw
cd /path/to/your/projectswy init --editor=openclaw --mode=sandboxThis creates:
.swytchcode/withtooling.json— the trust boundary that lists exactly which tools OpenClaw is allowed to callOPENCLAW.mdin the repo root — the agent contract file describing available tools and conventions for OpenClaw to follow~/.openclaw/settings.jsonwith the MCP server configuration
Step 3: Fetch an integration
Search for available integrations (or browse the full list at swytchcode.com/apis):
swy searchFetch one, such as Stripe:
swy get stripeStep 4: Add tools to the trust boundary (tooling.json)
Add a specific method:
swy add stripe.charge.createOr add all tools from a project:
swy add method --all stripeVerify the tool is enabled:
swy list toolingStep 5: Start the MCP server
The MCP server starts automatically when OpenClaw connects through the config written during initialization. If you need to start it manually:
swy mcp serveStep 6: Use OpenClaw
Open your project in OpenClaw. The agent now has access to the Swytchcode MCP tools.
You can give prompts such as:
Create a Stripe charge for $50 for customer cus_123.OpenClaw will:
- check
swy list toolingto verify the tool exists - call
swy info stripe.charge.createto inspect the schema - generate runtime code using
swy exec