Skip to content

Claude Code

Claude Code uses an API key, not the Claude.ai OAuth connector.

  1. In TripLedger, open Settings → API keys and create a key. Pick the ledger it should bind to.
  2. Copy the full key (tl_...) immediately. It is shown once.
  3. Run:
Terminal window
claude mcp add --transport http tripledger https://my.tripledger.app/mcp --header "Authorization: Bearer tl_..."

Replace tl_... with the key you copied.

The key is a password. It will land in .mcp.json and in chat transcripts. Revoke it in Settings → API keys if you think it leaked. lastUsed on that screen is the abuse signal.

Changing your TripLedger password revokes every API key and every OAuth grant. Add the key again after a password change.

Read tools work on Free. Write tools need Pro. See API keys, OAuth, revocation, permissions, and limits.