Skip to main content
Use ChatSyncs from Gemini CLI, Google’s AI agent for the terminal.

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.
Unlike the other apps, Gemini CLI connects with your API key directly, not through the ChatSyncs browser sign-in page. Gemini CLI asks sign-in pages for an extra security detail that ChatSyncs doesn’t send yet. The key method below works today.

Connect

1

Open a terminal

Mac: the Terminal app. Windows: PowerShell. Check Gemini CLI is there by running gemini --version: it should print a version number.
2

Add ChatSyncs with your key

In a terminal, run this command, with 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.
3

Check it's listed

Run 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

Your key was stored in ~/.gemini/settings.json; removing the server deletes it from there. If the key may have been seen by anyone else, regenerate it.

Frequently asked

It’s stored in plain text in 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.
Gemini CLI has a "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.
Once ChatSyncs supports Gemini CLI’s extra sign-in check, this page will be updated. The key method will keep working either way.

Gotchas

  • “Missing issuer parameter in response.” You added ChatSyncs without the --header part, so Gemini tried browser sign-in. Remove it and add it again with the command above.
  • Added it but it’s missing in another folder. You left out --scope user, so it was saved only for the folder you were in. Remove it with gemini mcp remove chatsyncs and add it again with --scope user.
  • Every action says the key is missing or invalid. Check the header reads exactly Authorization: Bearer followed by your key, with nothing else and no extra spaces.