Connect Vercel AI SDK models to Swytchcode toolsets.
5
Quickstart steps
1
SDK flow
Integrated
Tools
Safe
Execution
CLI
Pull the manifest, set your policy, execute. No SDK sprawl, no boilerplate. Just the tool you need, right now.
npm install @swytchcode/runtime ai @ai-sdk/openai dotenv
swytchcode login
swytchcode get githubHow it connects
Follow these steps to connect your agent, load a toolkit, and start executing tools through Swytchcode.
Install Swytchcode runtime and the Vercel AI SDK packages.
npm install @swytchcode/runtime ai @ai-sdk/openai dotenvAuthenticate with Swytchcode so your model can fetch tools.
swytchcode loginInitialize the Vercel provider and load the tools.
import { openai } from '@ai-sdk/openai'
import { generateText } from 'ai'
import { Swytchcode } from '@swytchcode/runtime'
import { VercelProvider } from '@swytchcode/runtime/providers/vercel'
const swx = new Swytchcode(new VercelProvider())
const tools = await swx.tools.get({ toolkits: ['github'] })Send a prompt through the Vercel AI SDK with Swytchcode-controlled tools.
const result = await generateText({
model: openai('gpt-4.1'),
tools,
prompt: 'Summarize my open pull requests from GitHub.',
})Run your app and let Swytchcode handle the runtime execution layer.
node main.jsWorks with
Install the CLI and pull your first manifest in under a minute. No account required.