Add or change a key after the install
Add the Gemini, Anthropic, Resend, Slack or Google Drive key to your Ledger in the Cloudflare dashboard, without running the installer again.
Updated 2026-10-17
The Ledger reads its keys from its Worker in Cloudflare. A Worker is the program that runs the Ledger. You add or change a key there.
Where
- Sign in at dash.cloudflare.com.
- Open Workers & Pages and click mtn-open-ledger.
- Open Settings, then Variables and Secrets.
- Click + Add. Pick Secret for keys and Text for plain settings. Type the name, paste the value.
- Click Deploy. The Ledger uses the new value within a minute.
Names are exact, in capital letters.
Which names
- Receipt reading with Gemini: Secret
GEMINI_API_KEYwith the key, and TextAI_PROVIDERwith the valuegemini. - Receipt reading with Anthropic: Secret
ANTHROPIC_API_KEYwith the key, and TextAI_PROVIDERwith the valueanthropic. - Email sending: Secret
MAIL_API_KEYwith the Resend key, and TextMAIL_FROMwith the sender, for exampleAcme Ltd <billing@acme.co.il>. - Slack alerts: Secret
SLACK_WEBHOOK_URL. - Google Drive expenses: Secret
GOOGLE_SERVICE_ACCOUNT_JSONwith the whole content of the JSON key file, from the first{to the last}. - MCP token: Secret
MCP_TOKEN, see Connect Claude.
Rules
- Never paste a key in an email, a chat or a document. Paste it only into Cloudflare or the installer.
- If a key leaks, make a new one at the provider, delete the old one there, and replace it here.
Still stuck? Write to us from the pricing page.
More help
- Before you install: what you need
- Install Open Ledger IL step by step
- Create the Cloudflare API token
- First sign-in and setup
- Give your accountant or assistant access
- Connect to the Tax Authority for allocation numbers
- From quote to receipt: your first documents
- Take payments with Grow, Cardcom or another provider
- Get your expenses into the Ledger
- Send documents by email, and keep them out of spam
- Connect Claude or another AI app (MCP)
- Updates and backups
- Common problems and how to fix them