Codat provides a unified API to access accounting, banking, and commerce data from over 20 platforms including Xero, QuickBooks, Sage, and more. Build powerful financial applications with normalized data.
Install the CLI globally using npm:
npm install -g @ktmcp-cli/codat # Set up API key
codat auth login --api-key YOUR_API_KEY
# Verify credentials
codat auth status # List all companies
codat companies list
# Get company details
codat companies get COMPANY_ID
# Create a new company
codat companies create --name "My Company" # Get company invoices
codat invoices list COMPANY_ID
# Get balance sheet
codat reports balance-sheet COMPANY_ID \
--period-start 2026-01-01 \
--period-end 2026-12-31
# Export to JSON
codat reports profit-loss COMPANY_ID --format json For complete documentation, API reference, and advanced usage examples, visit the GitHub repository. Each CLI includes comprehensive README.md, AGENT.md for AI integration, and OPENCLAW.md for tool definitions.