Skip to content

Connect Pennylane to a tool built with Claude or ChatGPT (2026)

Your tool built with Claude needs to read Pennylane’s invoices to track unpaid bills or cash flow. The Pennylane token opens the company’s accounting, and it must end up neither in the code nor in the conversation. On while, it stays in while, and your AI never sees it. Here is how.

By Aloïs Oddon, co-founder of Nextmap. Facts checked on November 18, 2026.

View as Markdown

Connect the Pennylane API to a tool built with Claude or ChatGPT: the Pennylane company token kept in while, out of the code and out of the AI’s reach, and the tool reading customer and supplier invoices

Pennylane holds the accounting, the customer and supplier invoices, the bank reconciliations. A tool built with Claude or ChatGPT becomes valuable when it reads that data. It shows the overdue invoices to chase, the week’s cash flow, revenue by customer. To do that, it needs a Pennylane API token, and that token opens the accounting of the whole company.

That is where things often go wrong: the token ends up pasted into the code, or into the conversation with the AI, where it can leak. On while, the Pennylane token stays in while. The tool calls Pennylane without ever holding it, and your AI never sees it.

The short version. Generate a company token in Pennylane, read only if the tool writes nothing. Ask your AI to connect Pennylane, then paste the token into while through the link it gives you. The tool reads your invoices, every call is logged, and a write waits for the rule you approve.

What you need before you start

Two conditions come from Pennylane, and they take a minute to check1.

  • The Essential plan or higher. On the Starter plan, the Developers tab does not appear in the settings.
  • The right to administer the company. The executive, the internal accountant and the external accountant can create a token. If the tab is missing, ask one of them.

A token is always tied to a single company. If you track several in Pennylane, each one has its own token1.

Connect Pennylane to your tool, in three steps

The whole thing takes a few minutes, and you have no code to write.

  1. Generate a token in Pennylane. Open the company settings, then Connectivity and Developers, and click Generate an API Token. Give it a name that says what it is for, like “Payment reminders tool”. Choose Read only if the tool only reads, and a duration: 1 month, 6 months, 12 months or unlimited1.
  2. Ask your AI to connect Pennylane. It declares the connection in while and gives you a link.
  3. Paste the token into while. Pennylane shows it only once: copy it, open your AI’s link, paste it and confirm. Neither your AI nor the tool’s code sees it.

You, to your AI: Connect Pennylane to this tool, read only, and show the customer invoices more than 30 days overdue, sorted by amount.

The tool built with AI calls the Pennylane API through while: the company token is added to each call inside while, out of the code, every read of the invoices is logged and a write to the accounting waits for the rule a person approves
The tool calls Pennylane through while, which adds the token to each call.

What while does on each call

The tool calls Pennylane through while, without a token. while adds the token to each call, and logs it in the history. For the first seven days, reads go through and teach while what the tool calls. A write, like creating an invoice or a customer, goes through once you approve its rule. After that, an unexpected call is refused, and your AI is told.

For accounting, caution makes sense. You can ask for your approval before a sensitive call.

You, to your AI: Ask me before every invoice creation in Pennylane.

Pennylane accepts up to 25 requests every 5 seconds per token3. A tool that reads the week’s invoices stays far below that, and your AI takes it into account when it builds the tool.

The credentials of your software are detailed on our security page, and the same mechanism works for any API in connect an API with no credentials in the code.

When the token expires

A 1, 6 or 12 month token expires on its date. Generate a new one in Pennylane, then paste it into while: the tool uses it from the next call, without being put back in place, and your AI has nothing to redo. Then delete the old one in the Developers tab, where Pennylane also shows when each token was last used1.

What while adds around it

  • Your colleagues use the tool with a while account for up to 3 people, or, on the Pro plan, with their email account, Google or Microsoft. See keep a tool for your colleagues.
  • Your accountant can use it with an access link and a password, valid for 1, 7 or 30 days.
  • Connected software: one on the Libre plan, and 25 on the Pro plan, Pennylane included.
  • The tool’s data is backed up every day, and your tools are hosted in France by Nextmap.

For tool ideas around your numbers, see the quote tracker and expense reports, and for a related connection, connect Google Sheets.

Try it with your tool

Give this message to your AI, then ask it to connect Pennylane. The trial is free, with no sign-up, and your tool has its address in 3 minutes.

The message to give your AI
Read while.sh/agents and help me get started with while.

Sources

  1. Pennylane, Create a Company API Token, accessed November 18, 2026
  2. Pennylane, Getting started, accessed November 18, 2026
  3. Pennylane, Rate limiting in API v2, accessed November 18, 2026

Questions

How do you get a Pennylane API token?

In Pennylane, open the company settings, then Connectivity and Developers, and click Generate an API Token. Choose read only or read and write, then an expiration date1.

Which Pennylane plan do you need to use the API?

The Essential plan or higher. On the Starter plan, the Developers tab does not appear1.

Who can create an API token in Pennylane?

The people who administer the company in Pennylane: the executive, the internal accountant and the external accountant1.

Does my AI see the Pennylane token?

No. Your AI declares the connection to Pennylane and gives you a link. You paste the token into while there, and neither your AI nor the tool’s code sees it.

What do you do when the Pennylane token expires?

Generate a new one in Pennylane and paste it into while. The tool uses it from the next call, without being put back in place. Pennylane shows a token only once, and it cannot be retrieved later1.

How many calls does the Pennylane API accept?

Up to 25 requests every 5 seconds per token. Beyond that, Pennylane answers with a 429 error and says when to retry3.

Give your AI the message, and it takes care of the rest

Give this to your AI

Read while.sh/agents and help me get started with while.

Copy the message

In 3 minutes, with no sign-up, the tool has its own address. To keep it, create your account.

For a company project, write to the while team: hello@while.sh