Running n8n Assistant on a self-hosted instance

Enabling the n8n Assistant on your own servers means deciding which model provider and key it uses, where workflow context is sent, which sandbox runs generated code and which edition includes the feature.

On this page

What the n8n Assistant does on a self-hosted instance and who needs it

A team running n8n on servers it controls often wants help building workflows without sending its workflow designs to an outside service by default. The n8n Assistant is the feature meant to do that work: it builds and edits workflows from plain-language requests, so the people deciding whether to enable it need to know what leaves the instance when it runs. On a self-hosted instance, switching the Assistant on is not a single toggle. It involves choosing a model provider, supplying that provider's API key, and deciding which parts of a workflow, prompt or sample data the Assistant may send to that provider. Those three decisions belong to the security, compliance and platform owners, not only to the people who build workflows.

Confirm the Assistant's availability before you plan around it. No Assistant-specific facts were researched for this page, so feature availability by edition, the model options offered, how keys are stored, and how the sandbox behaves all need to be checked against n8n's current documentation for the exact version and edition you run. Start with the n8n pricing page for edition boundaries and the n8n release notes for changes in the version you plan to install. Ask n8n in writing which model providers the Assistant supports on self-hosted instances, whether a provider can be pointed at a private endpoint, and what data the Assistant sends with each request.

DeployOpen plans and implements the setup: the provider and key configuration, the data flow review, the sandbox settings and the access rules that decide who may use the Assistant. The first deliverable is a written map of what each request sends, where it goes and who can approve it, which your security and compliance reviewers can check before anything is switched on. Teams that already run n8n in a regulated setting should bring their data classification rules to that first session, because they determine whether sample data or production credentials can ever reach the Assistant.

How an Assistant request travels from your instance to a model provider

The request starts in a user's browser and reaches the self-hosted n8n main instance inside your trust boundary, which reads its own workflow and session context from the database. The point to scrutinize is the hand-off where prompt and workflow context leave your network for the model provider, and whether your own API key or a key managed by n8n is used on that path. Where code runs in a sandbox is marked separately. Confirm the exact payload contents and sandbox behavior with n8n before you approve data flows.

Assistant request path, key path and the sandbox boundary on a self-hosted instance.

Which model key, sandbox and edition choices to settle before enabling

This table lists the decisions to settle before turning on the Assistant on your own instance: the model key, where the model runs, the code sandbox, who may use it and which plan you need. Read each row as a question to answer with your security, data protection and platform owners before enabling the feature. The main takeaway is that where prompts go and who can use the feature matter as much as the setup itself.

DecisionWhat it controls and when it fitsWhat to confirm with n8n
Model provider and bring-your-own keyWhich external provider receives Assistant prompts, and who pays and holds the key. Fits when your organization already has an approved provider agreement.Which providers your edition and version support, how the key is stored and encrypted, and the provider's data retention terms.
Hosted versus local model endpointWhether prompts and workflow context leave your network. Fits when data residency or confidentiality rules prohibit sending workflow details to an external service.Whether the Assistant can use a model endpoint you run, which models are validated, and how output quality compares for workflow building.
Sandbox for generated codeWhere code the Assistant writes, such as Code node logic, is executed and what it can reach. Fits when generated code must stay within your isolation controls.Which sandbox modes exist in your release, the default setting, and how they interact with your existing code execution isolation settings.
Users and projects allowed to use the AssistantWhich people can invoke the Assistant and on which projects or workflows. Fits when only builders in approved teams should generate automations.Whether access follows roles and projects, whether it can be limited per user group, and how usage is logged for review.
Data included in requestsWhat the Assistant sends to the model, such as workflow structure, node names, parameter values or sample data. Fits when a data classification review must sign off on what leaves the instance.The exact context sent with each request, whether credential values are excluded, and whether sample data can be turned off.
Edition or planWhether the Assistant is available on the edition you run. Community is free for self-hosted use, while SSO, environments and log streaming need Business or Enterprise.Whether the Assistant is included in your edition or plan, and any licensing terms for embedded or enterprise use.
Release versionWhich features exist in your build. n8n ships minor releases roughly weekly, so Assistant behavior can change between versions.The version in which the Assistant feature you plan to enable first appeared, and the upgrade notes that affect it.

Where prompts and workflow context go when the model is outside your network

Before you enable the Assistant with a hosted model provider, treat every prompt and every piece of workflow context the Assistant includes as data leaving your network. The provider processes that content under its own terms, so your data classification, the provider contract and its retention settings need review and sign-off before rollout, not after. Bring your security, privacy and procurement teams into that review, because a bring-your-own key shifts the commercial relationship to the provider even though n8n still runs the instance on your servers.

Decide what the Assistant may see by separating workflow structure from sensitive values. Node names, node types, connection layout and error messages are usually the content needed to help build or fix a workflow. Credential values, API tokens, connection strings and personal data in test payloads are a different category and should be kept out of anything sent to a model. Write this rule down as an allowed and prohibited list, then check how your team's workflows actually look, since pinned data and sample execution output often carry personal data without anyone noticing. Confirm with n8n exactly which context fields the Assistant transmits, because the list can change between releases.

A local or private model endpoint keeps traffic inside your network only if the endpoint itself runs in your infrastructure. An address that resolves to an internal name is not enough if the gateway forwards requests to a provider outside your boundary. Verify the network path with your own tests, and ask the provider and n8n for written answers on which data is sent, how long it is retained, whether it is used for training, and where it is processed. Record those answers with the data classification decision so the approval can be audited later.

Choosing an Assistant setup by edition and data sensitivity

The Community edition is free to self-host and carries no license fee from n8n, so the costs sit with your team: servers, database, proxy, certificates, and the time spent operating the instance. The edition does not include SSO, Git-backed environments or log streaming, so access control for the Assistant relies on the basic user management you configure yourself. Whether the Assistant is available on a Community instance is a separate question from the edition itself, and you should confirm it on n8n's pricing page before you plan around it.

  • Feature availability: Confirm on the pricing page whether the Assistant is offered on the self-hosted Community edition, since plan entitlements can change.
  • Model keys: If the Assistant is available, confirm that you can supply your own model provider key rather than depending on a hosted key.
  • Access control: Without SSO, decide who can open the Assistant and who can accept its generated workflows, and document it.
  • Outbound data: Prompts and workflow context sent to the provider leave your network, so review what your team will type into it.
  • Support: Community use carries no vendor support commitment, so plan internal ownership for upgrades and incidents.

Before relying on this tab, check the pricing page for Assistant availability on the Community edition and confirm the current license terms in the Sustainable Use License.

How to enable the Assistant on a self-hosted instance, step by step

This sequence takes a self-hosted n8n team from an edition and version check to a tested, access-restricted Assistant that sends data only to a model endpoint the organization has approved.

  1. Confirm edition and version support

    The platform owner checks which n8n edition and release line the instance runs against the current release notes and the pricing page, and confirms whether the Assistant is available on that edition before any other work begins. Ask the vendor or your account contact to confirm in writing that the Assistant feature and the plan you hold cover your deployment, since plan tiers differ on features such as SSO and environments. The check is complete when the team has a dated note recording the edition, the exact version and the vendor's answer on Assistant availability.

  2. Classify the data the Assistant may see

    The data owner and security team agree which information the Assistant can receive when it builds or edits workflows. Workflow designs, node names and sample payloads can contain customer identifiers, credentials or health and financial records, so the team lists permitted data types and forbids the rest. The output is a short classification record that names the data classes allowed, the data classes excluded and the people who approved the list. Without this record, later steps cannot be judged against a standard.

  3. Choose and provision the model endpoint

    The platform team selects the model provider or private endpoint that will serve the Assistant, weighing the provider's data retention terms, region, contractual protections and whether the organization already has an approved agreement. The team confirms with the provider which data is logged, how long it is kept and whether it is used for training, and records the answers. Provisioning ends with a dedicated endpoint or project that holds only the Assistant's traffic, so its usage can be separated from other workloads in audits.

  4. Store the model key in the approved secrets process

    The platform team places the provider key in the organization's approved secrets store rather than in workflow files, environment notes or shared chat, and limits who can read or rotate it. The n8n administrator then registers the key as a credential so it is encrypted at rest with the instance encryption key. Verification is a rotation test: the team replaces the key in the secrets store, confirms the Assistant still works after the update and confirms the old key no longer authenticates.

  5. Set the sandbox choice

    The platform team decides how code the Assistant generates will be executed and documents that decision alongside the data classification. Confirm in the release notes and vendor documentation which execution isolation options the version supports, and whether generated code can reach internal networks or credentials. The check is a test run in which the Assistant produces a workflow with a code step, and the team confirms the step runs only in the chosen environment and cannot read secrets or call hosts outside the approved list.

  6. Restrict access to approved users and projects

    The administrator limits Assistant use to the named group of builders and the projects they need, using the instance's role and project controls, and removes access for everyone else. If single sign-on is in use and your plan includes it, group membership in the identity provider should drive the grant. The check is a negative test: a user outside the approved group signs in, attempts to open the Assistant and is refused, and the attempt appears in the audit trail.

  7. Test with non-sensitive workflows

    Before the Assistant is used on production systems, approved builders ask it to create and modify workflows built from synthetic data and dummy records. The platform team watches the network path during these requests and confirms that the test traffic reaches only the approved endpoint, with no calls to other model providers. Record the endpoint hostname, the request count and the outcome of each test. The step closes when the results match the data classification and the access tests from earlier steps, and any gap is logged with an owner and a fix date.

Security controls to set before the Assistant reads your workflows

The Assistant reads workflow content, credential references and execution context, so the controls below need to be in place before it is enabled for anyone. Each card names a control, the risk it addresses and what to verify in your own instance.

Keep model keys out of workflows

Store each model provider key as an n8n credential rather than pasting it into a node parameter, Code node or expression. Workflows that the Assistant reads or generates should reference credentials by name, so the key itself never appears in prompts or exported JSON. Check that exports and shared workflows contain no literal keys, and confirm which users can open the credential. Because n8n encrypts stored credentials with the instance encryption key, protect that key as carefully as the provider key itself and keep a copy in your secrets system.

Queue mode docs

Limit who can invoke the Assistant

The Assistant acts with the permissions of the user who calls it, so a user with broad project access can have it read and change workflows they should not touch. Decide which roles may use it, and confirm that project and role boundaries apply to what it reads and writes. Review whether users on a self-hosted free edition can reach the feature at all, since plan limits change, and confirm that current role settings match your policy before rollout.

Contain code execution risk

Assistant-generated Code nodes and expressions run inside your n8n runtime, so generated code is an execution risk, not only a quality issue. Decide whether generated code may run without review, and where it runs. Confirm the sandbox setting for your version and deployment, and restrict Code node use for roles that do not need it. Test a generated snippet that tries to read environment variables or reach the filesystem before allowing it on production hosts.

Log Assistant actions and changes

Record which user asked the Assistant for a change, which workflow it modified and when. Without this trail, a workflow altered by generated logic is hard to attribute during an incident or access review. Check which audit and execution history features your plan includes, and forward n8n logs to a central store. Log streaming is listed on the Business and Enterprise plans, so confirm whether that plan is required for your setup.

Restrict egress to the chosen provider

Each prompt the Assistant sends leaves your network for the model provider, and any workflow or node that makes outbound calls can send data elsewhere. Allow outbound traffic only to the provider endpoints you approved, using firewall or proxy rules on the n8n host or its container network. Test by blocking an unapproved destination and confirming the request fails and is logged. Ask the provider which regions and endpoints its API uses so the allowlist is complete.

Patch on every n8n upgrade

n8n uses semantic versioning and ships minor releases roughly weekly, so the Assistant and its prompts change often. Plan a regular upgrade window, read the release notes for Assistant and security changes, and test a copy of your instance before updating production. Pin the version you tested, and record which version each environment runs so you can confirm the patch level during audits.

Latest version cited
2.43
n8n release notes

What to confirm with n8n before you commit to a rollout

Treat the documentation for the exact version you run as the record, and treat a sales conversation as a starting point only. Before you commit, get written answers on four points: whether the Assistant is available on your edition, which model providers it supports on self-hosted instances, whether you can bring your own model keys, and what data leaves your server. The n8n pricing page lists which plans include SSO, environments and log streaming, but it does not settle whether the Assistant is tied to a particular plan, so ask n8n to name the plan and the minimum version in writing. Confirm the same for any Business or Enterprise features your rollout depends on, and keep the answers in your change record.

The data question carries the most risk, so ask for a list rather than a summary. Ask which content reaches the model provider: prompts you type, workflow JSON, node parameters, sample execution data, or credential names. Ask whether the provider retains that content, for how long, and whether you can opt out of retention. Ask where Assistant conversations are stored on your instance and who can read them, and whether your sandbox setting changes what is sent. Check each answer against your data classification, since a workflow that touches personal or health data may need an approved provider and a documented legal basis before the Assistant sees it.

The feature will change between releases, so tie every answer to a version number. n8n uses semantic versioning and ships minor releases roughly weekly, and n8n 2.43 was released on 6 October 2026. Check the n8n release notes to see whether your installed version includes the Assistant and whether later minor releases alter its providers, data flows or edition rules. Ask n8n how it announces changes to data handling, and plan a retest of the Assistant after every upgrade. Record the version, the date you checked and the name of the person who confirmed each answer.

Limits to confirm in your environment before enabling

The Assistant depends on your edition, your license terms, the model provider you connect and the n8n version you run. Each of the limits below is something to confirm in writing or in a test instance before you enable the feature on a production server.

Edition gating

Business and Enterprise features are not included in the Community edition, so confirm that the Assistant and every feature it relies on are available on the edition you license. Pricing and feature tables change, so check the current plan details on the pricing page against your own quote. Ask in writing which plan your instance needs before you plan the rollout.

n8n pricing page

The .ee license boundary

Files with .ee in their name or directory fall outside the Sustainable Use License and require a valid n8n Enterprise License. Confirm whether the Assistant code path touches any .ee files in the version you install, and whether your team's use of those files is covered by your license. Have legal review this before the Assistant reaches users.

n8n license text

Sustainable Use License scope

The Sustainable Use License permits use for your own internal business purposes, so confirm that your deployment fits that description. Serving the Assistant to customers, partners or other organizations may fall outside it. Ask counsel whether any external or embedded use needs a different arrangement before you extend access beyond your staff.

Model and provider availability

The Assistant needs a model you can reach from your network. Confirm that your chosen provider offers the model in your region, that your egress rules allow the connection, and that your data residency terms match what your compliance team has approved. If you run a local model instead, confirm that the hardware and endpoint support the features you need.

Model usage costs

Model usage is billed by the provider you connect with your own keys, so n8n's license fee does not cover it. Ask finance to estimate usage from your expected Assistant requests, set spending limits with the provider, and confirm who owns the key and who can rotate it. Repeat this review whenever you change the model or add users.

Version compatibility

Assistant behavior and availability can change between n8n releases, and n8n ships minor releases roughly weekly. Confirm that the Assistant features you want are present in the exact version you run, and test the upgrade path on a staging copy before you move production. Record the version you validated so later upgrades can be checked against it.

Cited release
2.43
n8n release notes

What buyers ask before enabling the n8n Assistant

Is the n8n Assistant included in the Community edition?

Confirm this before you plan the work, because the plan information available for this page does not establish whether the Assistant is offered on the free Community edition. Check n8n's pricing page and the documentation for your exact version, then ask n8n in writing which edition and deployment type include the Assistant. The Community edition is free to self-host, but the pricing page places SSO, environments with Git and log streaming in the Business and Enterprise plans. If the Assistant requires a plan you do not hold, the setup steps on this page apply after the upgrade, and the upgrade cost becomes part of your budget.

What does enabling the Assistant cost beyond the n8n plan?

The n8n plan fee is separate from model usage. You connect your own model provider key, so the provider bills usage under its own pricing and terms, which this page cannot state for you. Plan for four components: the n8n plan (the pricing page lists Business at 667 euros per month billed annually, self-hosted only), model provider usage, the one-time setup effort, and ongoing review time for the Assistant's output and access. Provider usage grows with how often builders prompt the Assistant and how much workflow context each request carries. Ask for a usage estimate from your provider's published terms, and ask any partner for a quote built from a written scope.

How long does a self-hosted Assistant rollout take?

The duration depends on scope, not on a fixed period, and no researched figure is available for it here. The main drivers are the current state of the instance (a test server or a production deployment in queue mode), how many provider keys and models you approve, the network path from the n8n host to the provider, SSO and role mapping, and how much testing you require before opening access to builders. Approval steps for data leaving your network often take longer than the technical change. DeployOpen plans fixed-scope engagements, and the timeline is agreed in writing before work starts, so the schedule follows from the scope you agree.

What does our internal team need to provide?

Your team supplies decisions and access that only your organization can give. Name an owner for the n8n instance who can approve changes to the server and database. Assign someone to approve provider keys and the outbound network rules that allow requests to the provider. If you use SSO, an identity administrator must map groups to n8n roles. A data owner should decide which workflow content may appear in prompts, and a reviewer should own the process for checking what the Assistant builds before it reaches production. Finally, provide a non-production instance and a set of test cases that reflect your workflows.

Can we enable the n8n Assistant without a partner?

Yes, if your team already operates n8n and can manage the provider relationship. Start on a non-production instance, follow n8n's documentation for your version, and write policy for provider keys, data classes and who may use the Assistant before you enable it for builders. A small team usually struggles with the parts that take judgment: restricted networks, evidence for security reviewers, and testing generated workflows that call credentials. DeployOpen implements, hardens and documents self-hosted platforms inside your infrastructure and prepares evidence for compliance assessments, but it does not issue audit reports or certifications. Partner support is optional and should be weighed against the skills available in your team.

Where do Assistant prompts and workflow data go?

The Assistant sends prompts and some workflow context to the model provider you configure with your own key, so that data leaves your server and crosses your network boundary. Confirm for your version exactly what each request includes: node names, parameters, expressions, credential references, sample data or execution output. Then read the provider's retention and training terms for the account and region you use. Your n8n database still holds execution data and encrypted credentials, but a hosted model receives whatever the request contains. If workflow content cannot leave your network, you need a model endpoint you run yourself and a documented decision that the Assistant may use only that endpoint.

What should we confirm about the sandbox before enabling the Assistant?

Confirm the sandbox setting for your version before you let the Assistant generate workflows, because generated code and expressions run inside n8n and can reach the systems the instance can reach. Check which execution environment applies to the Code node's JavaScript and Python, what the sandbox isolates, and what it leaves open to the host, the network and stored credentials. Test on a non-production instance with a generated workflow that has no production credentials. Then review outbound access from the host and limit which credentials each workflow can use. Record the result, because a security reviewer will ask how generated code was contained.

How is a DeployOpen quote for Assistant work built?

A DeployOpen quote follows from a written scope, so the questions above become the scope inputs. The scope typically covers instance setup or review, provider key handling, the network path to the provider, SSO and role mapping, sandbox verification, documentation of the data flow, a test plan using your workflows, and handover to your team. Ask any provider to list each deliverable, the environments in scope, what your team must supply, and which items recur, such as the n8n plan, provider usage and any retainer for upgrades or testing. DeployOpen does not publish a price list, and the quote is issued after the scope is agreed.

How DeployOpen scopes and delivers an n8n Assistant rollout

DeployOpen plans, deploys and documents n8n inside your own infrastructure, including the Assistant setup, model connection and data handling choices. The work starts from a written scope that records which edition you run, which model provider receives prompts, and which controls your security and compliance teams need to review.

How we scope

  • Confirm your n8n edition and whether the Assistant features are available on it before any build begins.
  • Map which model provider keys will be used, and what workflow content, credentials or data could leave your network in prompts.
  • Record the sandbox choice, user groups allowed to use the Assistant, and the approval owner for each decision.
  • Agree deliverables, timelines and exclusions in writing, since most engagements are fixed-scope.

How we build

  • Deploy the self-hosted instance with the database, encryption key handling and network path your environment requires.
  • Configure bring-your-own model credentials and store them in n8n's credential system rather than in workflow content.
  • Set up the chosen sandbox and test that Assistant-generated workflows cannot reach resources outside their allowed scope.
  • Test prompt handling, permission boundaries and outbound traffic, then fix findings and retest the configuration.

How we hand over

  • Document the model provider data flow, edition limits and the settings that control what the Assistant can access.
  • Provide runbooks for rotating model keys, changing providers and reviewing Assistant-built workflows before publishing.
  • Walk your platform, security and compliance owners through the evidence they will need for their reviews.

How we support

  • Plan upgrades against n8n's release cadence so Assistant behavior and settings are checked before each rollout.
  • Offer ongoing support, upgrades and continuous testing as a retainer after handover.
  • Confirm with n8n, in writing, any Assistant capability or plan requirement your scope depends on before you commit to it.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.