Gateway URLs are available on the Enterprise plan only.
Gateway URL
The Gateway URL is the base URL of your self-hosted AI gateway. Setting it changes two things in the dashboard:- Code snippets — the
baseURLshown in the Model Catalog and Getting Started pages will use your gateway URL instead ofhttps://api.portkey.ai/v1. - Playground completions — prompt completions triggered from the dashboard are proxied through this URL.
https://api.portkey.ai/v1.
The trailing
/v1 is automatically normalised. Whether you enter https://gateway.yourcompany.com or https://gateway.yourcompany.com/v1, the dashboard will always use the /v1-suffixed form.MCP Gateway URL
The MCP Gateway URL is the base URL of your self-hosted MCP gateway. It is used to construct the endpoint URL for each MCP server registered in your organisation. For an MCP server with slugmy-server, the resulting endpoint URL will be:
https://mcp.portkey.ai.
How to Configure
- Navigate to Settings in the Portkey dashboard.
- Under the Organisation section, click General.
- Scroll to the Gateway URLs section.
- Enter your gateway’s base URL in the Gateway URL field (e.g.
https://gateway.yourcompany.com). - Enter your MCP gateway’s base URL in the MCP Gateway URL field if applicable (e.g.
https://mcp.yourcompany.com). - Click outside the input field. The value saves automatically — there is no separate save button.
Private and Self-Hosted Deployments
If you are running a private or self-hosted deployment of Portkey, the Gateway URL shown in the dashboard is controlled at the infrastructure level by your deployment team via the
INTERNAL_GATEWAY_URL or GATEWAY_BASE_URL environment variable. In this case, the value entered in the UI has no effect — contact your deployment administrator to change the gateway endpoint.
