Skip to content

Configuration Reference

ynab-connect configuration

Top-Level Configuration

The configuration file is a YAML file with the following top-level properties:

PropertyTypeRequiredDescription
ynabObjectYesYNAB API configuration
browserObjectNoBrowser automation configuration (optional)
serverObjectNo2FA server configuration (optional)
accountsArrayYesList of accounts to sync

Ynab Configuration

YNAB API configuration

PropertyTypeRequiredDescription
accessTokenStringYesYour YNAB personal access token
budgetIdStringYesThe ID of your YNAB budget

See the Create YNAB Token guide for instructions on obtaining these values.

Browser Configuration

Browser automation configuration (optional)

PropertyTypeRequiredDescription
endpointStringYesURL of a browserless endpoint for headless browser automation

See the Browser documentation for more information.

Server Configuration

2FA server configuration (optional)

PropertyTypeRequiredDescription
portIntegerYesPort number for the 2FA server

Accounts Configuration

List of accounts to sync

Common Account Fields

All account types share these fields:

PropertyTypeRequiredDescription
nameStringYesUnique name for this account
ynabAccountIdStringYesThe ID of the YNAB account to sync to
intervalStringYesCron expression for sync schedule (e.g., '0 2 * * *' for daily at 2 AM)

Account Types

Trading212

Type: trading212

PropertyTypeRequiredDescription
type"trading212"YesConnector type
trading212ApiKeyStringYesYour Trading 212 API key
trading212SecretKeyStringYesYour Trading 212 API secret

See the Trading212 connector documentation for setup instructions.

Uk Student Loan

Type: uk_student_loan

PropertyTypeRequiredDescription
type"uk_student_loan"YesConnector type
emailEmailYesEmail address for login
passwordStringYesPassword for login
secretAnswerStringYesSecret answer for security question

See the Uk Student Loan connector documentation for setup instructions.

Standard Life Pension

Type: standard_life_pension

PropertyTypeRequiredDescription
type"standard_life_pension"YesConnector type
usernameStringYesUsername for login
passwordStringYesPassword for login
policyNumberStringYesPolicy number for the pension account

See the Standard Life Pension connector documentation for setup instructions.

Ig Trading

Type: ig_trading

PropertyTypeRequiredDescription
type"ig_trading"YesConnector type
igUsernameStringYesUsername for IG login
igPasswordStringYesPassword for IG login
igApiKeyStringYesYour IG API key
igAccountIdStringYesThe ID of the IG account to query

See the Ig Trading connector documentation for setup instructions.

Notes

  • You can configure multiple accounts of the same type
  • The interval field uses cron syntax. Use crontab.guru to help create cron expressions
  • Make sure each account has a unique name
  • The configuration file should be placed at /config.yaml in production, or in the project root for development