n8n/.env.eval.example
Mutasem Aldmour b67ef426e8
test: Add Instance AI flight-status-change workflow eval (#33228)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-30 06:55:40 +00:00

37 lines
1.6 KiB
Plaintext

# Example env for running Instance AI workflow evals locally.
#
# Copy to `.env.eval` (gitignored) and fill in real values:
# cp .env.eval.example .env.eval
#
# Load it alongside .env.local when booting the instance and running the eval:
# E2E_TESTS=true N8N_AI_ASSISTANT_BASE_URL= ANTHROPIC_API_KEY="$ANTHROPIC_KEY" \
# npx dotenvx run -f .env.local -f .env.eval -- pnpm dev:ai
# cd packages/@n8n/instance-ai && \
# npx dotenvx run -f ../../../.env.local -f ../../../.env.eval -- \
# pnpm eval:instance-ai --filter <slug> --keep-workflows --verbose
#
# See .agents/skills/create-instance-ai-eval/reference.md for the full recipe
# and packages/@n8n/instance-ai/evaluations/README.md for the harness docs.
N8N_LOG_LEVEL=debug
# Enable AI features and the instance-ai module.
N8N_AI_ENABLED=true
N8N_ENABLED_MODULES=instance-ai
# Anthropic key used by the builder (non-proxy mode) and the eval helper
# (mock generation, verifier, user-proxy, expectation judge). Also export the
# same value as ANTHROPIC_API_KEY when booting — @ai-sdk/anthropic reads that
# env var directly and N8N_AI_ANTHROPIC_KEY alone is not wired into it.
N8N_AI_ANTHROPIC_KEY=sk-ant-api03-REPLACE_ME
# Sandbox where the builder executes its workflow-build code.
N8N_INSTANCE_AI_SANDBOX_ENABLED=true
N8N_INSTANCE_AI_SANDBOX_PROVIDER=daytona
# Daytona direct-mode credentials. Required because direct mode is forced by
# booting with N8N_AI_ASSISTANT_BASE_URL= (empty) — proxy-vended Daytona tokens
# are not relied on. Get a key from https://app.daytona.io.
DAYTONA_API_KEY=dtn_REPLACE_ME
DAYTONA_API_URL=https://app.daytona.io/api