This chapter covers deployment options from development to production.
The SDK automatically detects your deployment environment:
The run() method automatically:
In TypeScript, run() is an alias for serve() and only starts an HTTP server.
For serverless deployments (Lambda, Cloud Functions, Azure, CGI) call
agent.runServerless(event, context, platform?) from your platform handler,
or use the ServerlessAdapter.createLambdaHandler / createGcfHandler /
createAzureHandler helpers. See the Serverless guide.
The SignalWire TypeScript SDK (@signalwire/sdk) is ESM-only. Your
package.json must set "type": "module", or your entry file must be named
.mjs. Otherwise Node will try to load it as CommonJS and imports will fail.
The simplest way to run your agent locally:
All languages default to http://localhost:3000.