How to Deploy the 2026 n8n Assistant Self-Hosted Sandbox?

How to Deploy the 2026 n8n Assistant Self-Hosted Sandbox?

Deploying the n8n Assistant self-hosted sandbox means configuring more than the n8n application: you also need a model provider and a separate sandbox service; web search is optional. This approach suits teams that want Assistant code execution on their own infrastructure and can verify the network and resource requirements against their actual workflows.

This guide is for developers enabling Assistant on self-hosted n8n, small teams separating automation from code execution, and technical leads evaluating a reliable long-term host.

Deployment decision: keep the n8n application and sandbox on a network where they can reach each other, configure the model provider independently, and add web search only if the team needs it.

Last updated November 17, 2026. The feature and setup details below were checked against the official n8n changelog, Assistant self-hosting instructions, and Sandbox Service configuration and architecture documentation. Recheck those documents before deployment because supported settings can change.

What the self-hosted Assistant needs

Treat the deployment as separate services with separate jobs. That avoids a common setup error: assuming that the Assistant’s code execution environment is also where model inference happens.

  • n8n: Hosts the automation application and its workflows. It provides the interface in which the Assistant is configured.
  • Sandbox service: Provides the execution environment used by Assistant tasks. Its API needs to be reachable by n8n.
  • Model provider: Supplies the model used by the Assistant. Configure it separately from the sandbox; a reachable sandbox does not prove that model access works.
  • Web search: An optional connection. Enable it only if the desired Assistant workflow needs search; it is not a prerequisite for every self-hosted setup.

The official changelog records that n8n Assistant self-hosted configuration was expanded with n8n 2.35 on August 18, 2026. Check the official changelog entry and the current self-hosting setup guide to confirm that the version you plan to deploy supports the settings you need.

Do not confuse this Assistant sandbox with the Task Runner used for n8n Code nodes. They address different execution paths. A change to one does not, by itself, configure or validate the other. The Sandbox Service architecture guide describes the service boundary; follow the Assistant setup documentation for the Assistant-specific connection.

The Assistant’s sandbox also does not make the model local. If the chosen model provider is external, requests still go to that provider. For private documents or sensitive workflow inputs, decide what information can leave your environment before choosing a provider. A self-hosted application gives you control over its hosting location, but it does not automatically make every connected service private.

Before deployment: server and network checks

Start by checking the deployment you already have, or plan to create. Confirm the operating system is supported by your Docker installation method, that Docker Engine and Compose are installed, and that persistent data has an intentional location. Use the official Docker Engine installation documentation for system-specific installation instructions.

Then map the service paths before starting containers:

  • Which network will connect n8n to the sandbox API?
  • Which hostname and port will n8n use for that API?
  • Which interfaces must remain private to the application network?
  • Where will n8n data and any sandbox-related persistent files be stored?
  • How will credentials be protected and backed up?

The exact answers depend on the official Compose configuration and the network layout. Do not assume that a service name, port, environment variable, health-check path, or volume location is universal. Copy these values from the current n8n documentation and deployment files, then check that the names resolve from the n8n container itself.

A container being reachable from a browser or host shell is not sufficient evidence that n8n can reach it. Conversely, an API or health check exposed to the host does not mean that broad access is required. Keep internal registration and control traffic within the network scope required by the documented setup. Do not expose internal interfaces publicly just to make a connectivity test pass.

For server capacity, use the real workload as the basis rather than treating a generic minimum as a production recommendation. The n8n application, sandbox execution, workflow data, database, file operations, and any local model all contribute different resource demands. Measure them separately during representative jobs. If model inference runs through an external provider, its compute load is not the same as running that model on the n8n host.

Why does n8n Assistant need a separate sandbox service?

The sandbox gives Assistant code execution a distinct service boundary. That separation lets the application request execution through the documented API instead of treating arbitrary code as part of the n8n web process. It also makes network reachability, service health, and execution logs explicit deployment concerns.

This boundary is useful, but it is not a substitute for security review. Confirm what the sandbox can access, which network paths it can use, and where its files are written. Do not grant access to unrelated services or secrets because a test task needs one narrow capability. A successful health check only confirms the check’s defined response; it does not prove that the service is isolated correctly or that real tasks can read and return results.

A community post describes one operator’s Assistant sandbox deployment experience. Treat it as an individual report, not a universal host or network requirement. The community deployment discussion can help identify issues worth checking, but its platform-specific workaround should not be copied as a general procedure.

For self-hosted knowledge features, check the current Assistant documentation for any additional prerequisites. Do not assume that enabling the sandbox alone enables every knowledge-related capability. Each connected feature may have its own configuration, credentials, or service requirements.

Starting the sandbox with Docker Compose

Use the official Compose route for the n8n deployment and the current Sandbox Service instructions for the sandbox components. The n8n Docker Compose guide covers the application deployment path. Follow the current Assistant and sandbox documentation for the required sandbox API, Runner relationship, authentication, and service discovery.

Do not paste environment variables from an old example unless they match the version being deployed. The names and supported options must be checked against the current official files. The same applies to secrets: generate and store them according to the official instructions, keep them out of public repositories and shell history where practical, and ensure the services that need them receive them through the intended mechanism.

A cautious deployment sequence is:

  • Review the current files. Confirm the supported n8n version, required services, secrets, ports, networks, health checks, and persistence paths in the official documentation.
  • Prepare the host. Install Docker Engine and Compose using the instructions for the chosen operating system. Create and protect the persistent directories required by the deployment.
  • Configure service discovery. Put n8n and the sandbox components on the documented network. Use the service address that the n8n container can resolve, not an assumed host-local address.
  • Validate the Compose definition. From the directory containing the deployment file, run:
docker compose config --quiet

A successful command indicates that Compose can parse the configuration. It does not confirm that a secret is valid, that a port is open, or that containers can communicate.

  • Start the documented services. After reviewing the resolved configuration, start them with:
docker compose up -d
  • Inspect container state and logs. Use:
docker compose ps
docker compose logs --tail=100 <sandbox-service-name>

Replace the placeholder with the service name in the current Compose file. Look for startup failures, authentication errors, repeated restarts, and network or registration problems. A generic Up state is not proof that the Assistant can execute a task.

Do not add a port mapping just because a health check is not visible from outside the container network. First determine whether the documented check is meant to be accessed from the host, from another container, or through a specific internal route.

Connecting n8n to the Sandbox API and model provider

Configure the sandbox connection and model provider as two separate tasks. In n8n, use the Assistant settings documented for the deployed version. Select the documented sandbox type, enter the API address reachable from n8n, and configure the required authentication. Then set up the model provider using its own credentials and model settings.

The exact setting names and supported values should come from the current Assistant self-hosting guide. Avoid relying on a blog snippet or an older deployment file for variable names. If the Assistant settings are present but execution fails, test the service address from the n8n container’s network context and inspect both services’ logs. If execution works but the model response fails, investigate the provider configuration separately.

Web search is optional. Leave it unconfigured if the intended workflows do not need search. If the team enables it, treat it as another external connection: review credentials, network access, and the data sent to that service. A working sandbox and model connection do not imply that web search is configured, and the absence of search should not be mistaken for a broken sandbox.

If your workflow handles internal documents, document which components receive the document text. The sandbox, n8n database, model provider, and optional search connection may have different data paths. IronCPU’s privacy information can help you review the hosting provider’s published privacy terms, but it cannot replace checking the policies of the model and search services you connect.

How can you verify code execution after deployment?

Use layered acceptance checks. A single successful response can miss a broken restart path, a persistence issue, or a task that never exercises file access.

  • Check service status. Confirm the required containers remain running and review recent logs for repeated errors. Use the documented health check if the deployment provides one.
  • Test API reachability from n8n’s network. Use the hostname, port, and health route specified by the current deployment documentation. For a manual check, the command shape is:
curl -fsS "http://<sandbox-api-host>:<documented-port>/<documented-health-path>"

Replace every placeholder with values from the current configuration. Do not infer a health path or port from another version’s example.
- Run a harmless Assistant task. Use a small task with no secrets or customer data. Confirm that code execution completes and that the result appears in n8n.
- Check file behavior separately. If the intended workflow needs file reads or writes, test only the documented paths with disposable content. Confirm where the files persist and which service can access them.
- Test after a restart. Restart the documented services and repeat the task. Check that credentials, configuration, and required persistent data remain available.
- Record evidence. Keep the deployed versions, relevant Compose configuration, sanitized logs, test result, and observed resource use with the operational runbook.

A healthy response might show that the API returned its documented status and the test task completed. The exact output depends on the version and health-check implementation, so there is no universal response string to copy. Acceptance should also include a failed-path check: confirm that missing credentials or an unavailable sandbox produces a visible error rather than silently appearing to succeed.

For production use, repeat the test with representative workflow operations and realistic file sizes. Observe CPU, memory, storage growth, and logs during those jobs. Do not turn one successful task into a claim about throughput or concurrency. The deployment guide does not establish a universal resource threshold for every workflow.

Choosing a long-running server after acceptance

Choose a host only after separating the deployment’s resource needs. The n8n application and sandbox consume CPU and memory while jobs run. Persistent workflow data and files need planned storage and backup. A local model adds a separate, potentially substantial memory and compute requirement. An external model provider shifts inference away from the host, but it does not remove the need to secure provider credentials or assess data handling.

Use this decision list:

  • If the workflow is short-lived, light, and already fits a small shared environment, keep that setup and monitor its actual resource use. A dedicated physical server may not be justified.
  • If multiple services or sustained jobs compete for shared CPU, memory, or storage, compare a dedicated server against the measured workload. Do not assume that a VPS allocation guarantees exclusive physical resources.
  • If the model runs through an external API, size the host for n8n, the sandbox, storage, and workflow load, not for model inference that occurs elsewhere.
  • If local CPU inference is part of the plan, estimate model memory from parameter count × quantized bits ÷ 8, then add context-cache and runtime overhead. This is a planning formula, not a speed estimate. Benchmark the chosen model and workload before committing.
  • If model training or high-throughput large-model inference is required, evaluate a GPU-capable platform separately. IronCPU does not provide a GPU option for this server setup.

For teams whose measured workload points to dedicated capacity, IronCPU lists AMD EPYC servers with 32 cores and 64 threads, 128 GB or 256 GB of DDR4-3200 ECC memory, and two directly connected 1 TB NVMe drives. These are product specifications, not a promise of Assistant performance; check the current IronCPU server options before selecting a configuration. The memory cannot be upgraded in place, so select the appropriate listed tier rather than assuming a later expansion. The two NVMe drives are not hardware RAID; plan software redundancy and an off-machine backup if the data requires them.

This dedicated-host option is most relevant when measured workflows need more predictable CPU and memory availability, or when the team wants the n8n application and sandbox on an exclusively rented machine. Shared VPS and public-cloud instances can be more convenient for light or temporary workloads, but shared CPU contention, allocation limits, and usage-based charges can make sustained workloads harder to predict. Self-hosting in a company’s own facility avoids a rental host but adds hardware procurement, replacement, network, and operational responsibilities.

Before ordering, verify the needed operating system, memory tier, storage arrangement, and network option against the current product page. Review how IronCPU billing works if the deployment plan depends on a specific billing period. If the sandbox has passed connectivity, task, file, and restart checks—and a shared environment is no longer meeting the team’s measured needs—compare the workload with IronCPU’s dedicated AMD server options rather than sizing from an unverified minimum.

AMD EPYC 7543P dedicated server,from $445.3/month

Turn workload plans into a server configuration

Choose 128 GB or 256 GB of DDR4-3200 ECC RDIMM with the AMD EPYC 7543P. Check the configuration page for available options.