Overview
Credentials in Codika workflows are never hardcoded. Instead, workflows use placeholder tokens that get replaced at deployment time with real credential IDs from n8n. This ensures every user gets their own isolated credentials. There are six credential placeholder types, each serving a different scope:| Type | Scope | Who provides | Fallback |
|---|---|---|---|
FLEXCRED | AI providers | Organization → Codika | Codika’s shared keys |
USERCRED | Per-user integrations | User (OAuth) | None (required) |
ORGCRED | Org-wide integrations | Organization admin | None (required) |
INSTCRED | Per-instance databases | User (at install) | None (required) |
SYSCREDS | System-level | Codika platform | None (system-managed) |
ORGSECRET | Org configuration | Organization settings | None (required) |
FLEXCRED — Flexible AI credentials
The most common credential type for AI-powered workflows. Uses the organization’s own API key if available, otherwise falls back to Codika’s shared pool (billed via credits).USERCRED — User integration credentials
OAuth tokens from the user’s connected integrations. Each user connects their own accounts (Gmail, Drive, Sheets, etc.) via the Codika dashboard.ORGCRED — Organization-level credentials
Shared credentials managed by organization admins. Used for services where the entire org shares one account (e.g., company Slack workspace, CRM).INSTCRED — Instance-level credentials
Per-deployment credentials configured during process installation. Used for database connections or external services that differ per deployment.How credentials appear in workflow JSON
Credentials are always specified on the n8n node that uses them — never on chain/agent wrapper nodes. For LLM workflows, credentials go on the model node, not the chain node:Integration UIDs
When listing required integrations inconfig.ts, use these standard UIDs:
| UID | Service |
|---|---|
anthropic | Anthropic (Claude) |
openai | OpenAI |
tavily | Tavily Web Search |
google_gmail | Google Gmail |
google_drive | Google Drive |
google_sheets | Google Sheets |
google_calendar | Google Calendar |
slack | Slack |
folk | Folk CRM |
pipedrive | Pipedrive |
calendly | Calendly |
notion | Notion |
microsoft | Microsoft (Teams, Outlook, OneDrive) |
Validation
The CLI validates credential patterns via theCK-CREDENTIALS rule:
- Using raw credential IDs instead of placeholders
- Wrong suffix for the credential type
- Credentials on the wrong node (e.g., on
chainLlminstead oflmChatAnthropic)