N8n cli creds

From 8Dvibes/n8n-cli · View interactive version

N8n cli creds is an AI agent skill from the GitHub repository 8Dvibes/n8n-cli. Audit n8n credentials and find gaps. Lists what exists, what workflows need, and what is missing. Use when auditing credentials, setting up new workflows, or troubleshooting auth failures.

How to use this skill

Skill file

/n8n-creds — Credential Management & Gap Analysis

Audit and manage n8n credentials across workflows.

Arguments

Procedure

Full Credential Audit

# Get all credentials
n8n-cli --json credentials list > /tmp/creds.json

# Get all workflows
n8n-cli --json workflows list > /tmp/workflows.json

For each workflow, extract credential references from nodes. Cross-reference against available credentials.

Report:

  1. Available credentials — what's configured on the instance
  2. In-use credentials — which workflows reference which credentials
  3. Unused credentials — configured but not referenced by any workflow (cleanup candidates)
  4. Missing credentials — workflows that reference credential types not available

Workflow Credential Check

n8n-cli --json workflows get <id>
n8n-cli --json credentials list

For the specific workflow:

Credential Type Lookup

Use the node catalog to find what credential types a node needs:

n8n-cli nodes get <node-name>

The credentials field shows which credential types are required.

For the schema of a specific credential type:

n8n-cli credentials schema <type-name>

Known Credential Gotchas

From debugging experience (L-20260130-001):

  1. Slack has TWO credential types that are NOT interchangeable:
  1. Credential key must match authentication type in the node config.

The credential exists but the TYPE must match.

  1. Bot vs User tokens — Slack bot tokens post as the bot, user tokens post as the human who authorized. Check which one you need.

Output Format

## n8n Credential Audit

### Available (N credentials)
| ID | Type | Name | Used By |
|----|------|------|---------|
| ... | slackOAuth2Api | Slack Bot | 3 workflows |

### Missing (N gaps)
| Workflow | Node | Needs | Status |
|----------|------|-------|--------|
| Email Flow | Gmail Node | gmailOAuth2 | NOT CONFIGURED |

### Unused (N cleanup candidates)
| ID | Type | Name |
|----|------|------|
| ... | httpHeaderAuth | Old API Key |
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.