Skip to content

Examples

Each file is typechecked with the package, so it cannot rot. Run them from the repository root.

filecomposesrun
stdio.tsserveMcpStdio over the preset; keystore signing when SIGNING=executebun packages/vibekit/examples/stdio.ts
http.tscreateMcpHttpHandler under Bun.serve, compose modebun packages/vibekit/examples/http.ts
signer.tsMCP over HTTP in execute mode with a mnemonic as the TransactionSignerMNEMONIC=… bun packages/vibekit/examples/signer.ts
action.tsthe action machine over createHost and the keystore: draft → approve → sign → confirm, no UISENDER=… bun packages/vibekit/examples/action.ts
rest.tscreateRestHandler behind createPaywallX402_PAY_TO=… bun packages/vibekit/examples/rest.ts
agent-http.tscreateAgentHandler under Bun.serve with ZeroSignal as the modelbun packages/vibekit/examples/agent-http.ts
apps/referenceall of the above behind one server, and a React page over the componentsbun run --cwd apps/reference build && bun apps/reference/server.ts

Guides that walk through them: run an action, compose a server, REST and x402, swap the signer, swap the model.