# HTTP routing

## Auto Reroute

After having detected the [provider](provider "provider") by default, the known URL will be rerouted to it.

### Provider Endpoint

Example: If openrouter is detected:

* all OpenAI’s New Responses API HTTP request ([https://api.openai.com/v1/responses](https://api.openai.com/v1/responses "https://api.openai.com/v1/responses"))
* will be rerouted to *https\://openrouter.ai/api/v1/responses*

### Local Proxy Endpoint

If you configure the endpoint to the [proxy of the AITM service](../commands/service "../commands/service")

Example: If openrouter is detected:

* all OpenAI’s New Responses API HTTP request ([http://localhost:8080/openai](http://localhost:8080/openai "http://localhost:8080/openai"))
* will be rerouted to *https\://openrouter.ai/api/v1*

## Configuration

### Disable Auto Reroute

You can disable auto-reroute with the cli flag *-nar* or *--no-auto-reroute*
