> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # run > Alias for serve(). Starts the HTTP server. [serve]: /docs/server-sdks/reference/typescript/agents/agent-base/serve Alias for [`serve()`][serve]. Starts the Hono HTTP server and begins listening for requests. ## **Parameters** **`opts`** `object` Optional host and port overrides. --- **`opts.host`** `string` Host to bind the server to. Falls back to the constructor's `host` option. --- **`opts.port`** `number` Port to listen on. Falls back to the constructor's `port` option. --- ## **Returns** `Promise` -- Resolves once the server is running. ## **Example** ```typescript {5} import { AgentBase } from '@signalwire/sdk'; const agent = new AgentBase({ name: 'my-agent', route: '/agent' }); agent.setPromptText('You are a helpful assistant.'); await agent.run(); ``` > Alias for serve(). Starts the HTTP server.