Before you start
- Gemini CLI installed and signed in. Run
gemini --version. If it isn’t found, install it from geminicli.com. - A terminal. On a Mac, open the Terminal app (Applications → Utilities). On Windows,
open PowerShell from the Start menu. In paths below,
~means your home folder. - Your ChatSyncs API key, from the API Developer Console. How to find it.
Connect
Open a terminal
gemini --version: it should print a version number.Add ChatSyncs with your key
YOUR_CHATSYNCS_API_KEY replaced by your key (keep the
word Bearer and the space after it):--scope user makes ChatSyncs available in every folder, not just the current one.Check it's listed
gemini, then type /mcp and press Enter. chatsyncs is listed as connected, with
its tools.Prefer editing the file?
The command above edits~/.gemini/settings.json for you, which is the easiest way. If you’d
rather edit the file yourself, the ChatSyncs part looks like this. If the file already has other
settings, put "mcpServers" next to them inside the outer { }, separated by a comma:
Check it worked
In Gemini CLI, ask:“List my WhatsApp templates.”Gemini asks you to confirm the ChatSyncs tool call, then lists your templates.
Disconnect
~/.gemini/settings.json; removing the server deletes it from there.
If the key may have been seen by anyone else, regenerate it.
Frequently asked
Is it safe to put my key in that file?
Is it safe to put my key in that file?
settings.json (in the .gemini folder in your home folder),
and the command you typed may be kept in your terminal’s list of past commands. That’s fine on your own computer. Don’t
share or sync the file, and regenerate the key if you stop using Gemini CLI or the computer
is shared.Can I make Gemini skip the confirmations?
Can I make Gemini skip the confirmations?
"trust": true setting that skips every confirmation for a server.
Don’t use it with ChatSyncs: it would let Gemini send WhatsApp messages without asking.Will browser sign-in work later?
Will browser sign-in work later?

