Build OpenAI SDK agent flows that call Swytchcode toolchains.
5
Quickstart steps
1
Standard SDK path
Tool-safe
Execution
Fast
Developer onboarding
CLI
Pull the manifest, set your policy, execute. No SDK sprawl, no boilerplate. Just the tool you need, right now.
npm install @swytchcode/runtime 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 OpenAI SDK packages.
npm install @swytchcode/runtime openai dotenvAuthenticate with Swytchcode so the runtime can fetch tools.
swytchcode loginInitialize Swytchcode with the OpenAI provider and load the toolkit.
import { Swytchcode } from '@swytchcode/runtime'
import { OpenAIProvider } from '@swytchcode/runtime/providers/openai'
const swx = new Swytchcode(new OpenAIProvider())
const tools = await swx.tools.get({ toolkits: ['github'] })Call the OpenAI SDK with `tools` so Swytchcode handles runtime execution.
const response = await client.responses.create({
model: 'gpt-4.1',
tools,
input: 'List my open GitHub issues and summarize them.',
})Run your app and let Swytchcode turn the model's tool calls into safe API actions.
node main.jsWorks with
Install the CLI and pull your first manifest in under a minute. No account required.