Template4 min read
Bun Deployment Template for OpenClaw
Bun's speed and native TypeScript support make it a great OpenClaw choice. 3x faster than Node.js.
A Bun template for OpenClaw deployments. Bun's native TypeScript support and fast startup make it excellent for OpenClaw.
Why Bun
- 3x faster than Node.js for many workloads
- Native TypeScript: No build step needed
- Fast startup: Better cold start performance
- Compatibility: Mostly drop-in Node.js replacement
Quick Start
npx degit openclaw/bun-template my-bun-bot
cd my-bun-bot
bun run src/index.ts
fly launch && fly deploy
Health Check
Bun.serve({
port: 3000,
fetch(req) {
if (req.url.endsWith('/health')) {
return Response.json({ status: 'ok' })
}
return Response.json({ message: 'OpenClaw Bun bot' })
},
})