# TestNeo credentials for n8n ## Recommended (self-hosted n8n) Set process environment variables (Docker Compose example): ```yaml services: n8n: image: n8nio/n8n:latest environment: - TESTNEO_BASE_URL=https://app.testneo.ai - TESTNEO_WEB_APP_URL=https://app.testneo.ai - TESTNEO_API_KEY=tn_YOUR_KEY - TESTNEO_PROJECT_ID=14 - TESTNEO_TEST_CASE_ID=530 - TESTNEO_ENVIRONMENT_NAME=staging - TESTNEO_USE_AGENT=false # true only for VPN/internal apps — local agent must be running ``` Use **`https://app.testneo.ai`** in production. `127.0.0.1:8001` is self-hosted dev only — not for customer n8n. Templates read `$env.TESTNEO_*` in the **Edit Config** node. When `TESTNEO_USE_AGENT=true`, Template 1 sends `use_agent: true` on execute — confirm `GET /api/web/v1/agents/my-agent` shows `agent_connected: true` first. ## Alternative — Header Auth credential 1. n8n → Credentials → **Header Auth** 2. Name: `Authorization` 3. Value: `Bearer tn_YOUR_KEY` 4. Attach to each HTTP Request node (replace the inline Bearer expression) ## Do not - Commit `tn_…` keys into workflow JSON or git - Share webhook URLs publicly without auth (add n8n webhook auth or a shared secret header if the agent callback is internet-facing)