Xero is a leading cloud-based accounting platform used by millions of small businesses worldwide. This CLI provides full access to the Xero API, allowing you to manage invoices, contacts, bank transactions, and financial reports directly from your terminal.
Six months ago, everyone was talking about MCPs. And I was like, screw MCPs. Every MCP would be better as a CLI.
Install the CLI globally using npm:
npm install -g @ktmcp-cli/xero # Set up OAuth2 credentials
xero auth login --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET
# Verify authentication
xero auth status # Get all invoices
xero invoices list
# Filter by status
xero invoices list --status AUTHORISED
# Export as JSON
xero invoices list --format json # Create a new invoice
xero invoices create \
--contact-id CONTACT_ID \
--line-items '[{"description":"Service","quantity":1,"unitAmount":100}]' \
--due-date 2026-03-31 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.