The Okinta CLI lets you use your workspace from a terminal and in your own scripts. It covers every API operation, with JSON output.
Needs Node.js 20 or later.
npm install -g @okinta/cliCreate a key in Settings → API, then paste it once. It is stored in your computer's keychain (macOS Keychain, Windows Credential Manager, Linux Secret Service), never in a plain file when a keychain is available.
okinta loginCommands follow the API: okinta <resource> <action>. okinta help lists them all.
okinta contacts list --limit 10
okinta invoices get 3f6c…
okinta reports profit-and-loss --from 2026-01-01 --to 2026-03-31
okinta contacts create --data '{"first_name":"Ada","email":"[email protected]"}'
okinta invoices pdf 3f6c… --out invoice.pdfjq and your scripts. --all follows the pages for you.OKINTA_API_KEY environment variable in CI instead of okinta login.okinta api <METHOD> <path> calls any endpoint directly.okinta contacts list --all | jq -r '.[].email'
okinta api GET /meCoding agents such as Claude Code, Codex, Cursor or Gemini CLI can run okinta in your terminal, and so can GitHub Actions, cron jobs, n8n or Zapier code steps. Prefer MCP when the app supports it.
okinta invoices list --status overdue --all
# GitHub Actions
env:
OKINTA_API_KEY: ${{ secrets.OKINTA_API_KEY }}The CLI only uses the public API, with the same keys, permissions and limits. It never reaches more than the key's creator can open in the app.