agent37-n8n template runs n8n, the open-source workflow automation tool, on an Agent37 instance: an always-on computer serving n8n’s visual editor, webhooks, hundreds of app integrations, and AI nodes, from the official n8n image. It is a web app, not an agent harness: there is no chat API on this instance, and https://{instanceId}.agent37.app/v1/responses does not exist on it. Every create mints a public URL for the editor, https://n8n-{instanceId}.agent37.app, and n8n’s own owner account, fixed at create, guards it.
Paste this into your coding agent
Create the instance
One call to the hosting API athttps://api.agent37.com, with the n8n owner password you choose as instance env:
curl
N8N_OWNER_PASSWORD (8 characters or more) is required: without it the create returns 400 invalid_request. The owner’s email defaults to your workspace owner’s address (or, from the dashboard, the account that clicked create); pass N8N_OWNER_EMAIL to use another. The API never returns the password.
The 201 response carries the instance id and, in public_ports, the editor’s public URL. The template mints a public port on 5678 with the fixed prefix n8n on every create, so public_ports[0].url is https://n8n-{instanceId}.agent37.app. Trimmed to the fields that matter here:
public_ports entry for port 5678 yourself (say a different prefix): the template uses yours and adds no default. Other declared ports are kept alongside the default. Unlike the other system templates there is no gateway on 3737 and no terminal or file browser port; SSH still works, log in as node. The template offers the same three shapes as every other; 2 vCPU / 4 GB is fine for a single-user n8n. Pin a release with agent37-n8n@<tag>, like any system template.
Webhooks and OAuth
The public URL is permanent and unauthenticated, which is what webhooks and OAuth callbacks need: an external service POSTs tohttps://n8n-{instanceId}.agent37.app/webhook/... with no credential, and an OAuth provider redirects back to the same host. n8n’s webhook paths are unguessable per node, so the URL supplies reachability, not trust. The OAuth redirect URLs n8n shows when you create a credential already use the public URL; copy them into the provider as shown.
AI nodes on the managed model
On every boot the image seeds an n8n credential named Agent37 managed model, of type OpenAI, pointed at the managed LLM endpoint with the instance’s managed token. In the editor, pick it on the OpenAI Chat Model node (or any OpenAI-compatible node); the model list comes from the managed endpoint,default plus the other managed models. Usage bills to the workspace wallet under the instance’s budget, exactly like managed usage on any other template; see Managed services. Add your own OpenAI, Anthropic, or OpenRouter credentials in n8n as usual when you want a specific provider.
What persists
Everything n8n stores (workflows, credentials, execution history, its encryption key) lives in its SQLite database on the instance’s persistent disk. It survives stop, start, restart, resize, and image updates. No external database is needed.Auto-sleep and schedules
auto_sleep is off by default. With it on, n8n’s Schedule triggers do not fire while the instance sleeps; an incoming webhook does wake it, after a cold-start delay. Leave auto-sleep off for scheduled workflows.
Settings
Pass anyN8N_* variable n8n documents as instance env. The image sets N8N_EDITOR_BASE_URL and N8N_WEBHOOK_URL from the public port automatically, so those need no setting.