n8n
n8n is a self-hostable workflow automation platform. Its OpenAI node and generic HTTP Request node both connect to Routerly out of the box.
Install
Run n8n via Docker:
docker run -it --rm -p 5678:5678 n8nio/n8n
Or follow the full n8n installation guide.
Configure
Option A — OpenAI node (recommended)
- In n8n, go to Credentials → New → OpenAI API.
- Set:
- API Key →
sk-rt-YOUR_PROJECT_TOKEN - Base URL →
http://localhost:3000/v1
- API Key →
- Save the credential with a recognisable name (e.g. Routerly).
- Add an OpenAI node to your workflow and select the new credential.
Option B — HTTP Request node
For full control over the request body:
- Add an HTTP Request node.
- Set Method to
POSTand URL tohttp://localhost:3000/v1/chat/completions. - Add a header:
Authorization: Bearer sk-rt-YOUR_PROJECT_TOKEN. - Use JSON Body:
{
"model": "gpt-5-mini",
"messages": [
{ "role": "user", "content": "{{ $json.prompt }}" }
]
}
Usage
Connect the Routerly credential to any OpenAI node in your workflows. Cost data for each call is visible in the Routerly dashboard under Usage.