***

title: manualSetProxyUrl
slug: /reference/typescript/agents/agent-base/manual-set-proxy-url
description: Manually set the proxy URL base for webhook callbacks.
max-toc-depth: 3
---------------------

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

[ref-agentbase]: /docs/server-sdks/reference/typescript/agents/agent-base

Manually set the proxy URL base used when constructing webhook callback URLs in the
SWML document. Use this when your agent is behind a reverse proxy, tunnel, or load
balancer and the auto-detected URL is incorrect.

<Tip>
  You can also set the `SWML_PROXY_URL_BASE` environment variable for the same effect
  without calling this method.
</Tip>

## **Parameters**

<ParamField path="url" type="string" required={true} toc={true}>
  The external-facing base URL (e.g., `"https://abc123.ngrok.io"`). Trailing
  slashes are automatically stripped.
</ParamField>

## **Returns**

[`AgentBase`][ref-agentbase] -- Returns `this` for method chaining.

## **Example**

```typescript {5}
import { AgentBase } from '@signalwire/sdk';

const agent = new AgentBase({ name: 'support', route: '/support' });
agent.setPromptText('You are a helpful assistant.');
agent.manualSetProxyUrl('https://abc123.ngrok.io');
await agent.serve();
```