***

title: run
slug: /reference/typescript/agents/agent-base/run
description: Alias for serve(). Starts the HTTP server.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[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**

None.

## **Returns**

`Promise<void>` -- 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();
```