Connect Gemini CLI to your account

9 views
Short answer: In your terminal run gemini mcp add --scope user --transport http sib https://ai.sib.host/mcp. Then open Gemini CLI and type /mcp auth sib. Your browser opens the sign-in page of this site; sign in and click "Allow". No key is needed.

Gemini CLI is Google's assistant in the terminal. With this connection, Gemini also sees your services at سیب هاست while it works on your site. Account sign-in only works on a computer with a browser; on a server without one, use the key method.

Quick reference

Server namesib
Connection address (MCP)https://ai.sib.host/mcp
Server typehttp
Configuration file~/.gemini/settings.json (on Windows %USERPROFILE%\.gemini\settings.json)
Recommended methodSign in with your account on this site (OAuth) with /mcp auth sib
Second methodAPI key with the -H option
Check the statusgemini mcp list in the terminal or /mcp inside Gemini CLI
Manage and revokeClient area > AI assistant

Command to connect with your account

gemini mcp add --scope user --transport http sib https://ai.sib.host/mcp

Quick diagnosis

Message you seeWhat it means and what to do
sib only shows up in one folderThe command ran without --scope user, so sib was saved for that project only. Remove it with gemini mcp remove sib and run the full command above.
/mcp shows sib as disconnected or needing a sign-inYou have not signed in yet or the connection has expired. Type /mcp auth sib again.
The browser did not openGemini CLI runs on a computer without a browser, for example over SSH. Account sign-in does not work there; use the key method.
You have reached your key limitEach app connection counts as a key. Revoke an old key on the AI assistant page.

Steps

  1. Add the server: Run the command above once in your terminal. --scope user makes sib available in every folder.
  2. Open Gemini CLI: Run gemini and type /mcp auth sib inside it.
  3. Sign in: Your browser opens the sign-in page of this site. Sign in with your account.
  4. Choose the access: Choose the services, the access level and how long it lasts, then click "Allow". The "Connected" message means the browser part is done.
  5. Try it: Go back to the terminal, check with /mcp that sib is connected and ask "Show my services at سیب هاست".

Connect with a key (second method)

Create a key with the "Create a new key" form on the AI assistant page. Then run this command with your own key instead of the one above:

gemini mcp add --scope user --transport http sib https://ai.sib.host/mcp -H "Authorization: Bearer YOUR_KEY"

Troubleshooting and tips

  • The key is saved in a file: With the key method, the key is written to settings.json. Do not send this file to anyone, and if it leaks, revoke the key on the AI assistant page.
  • When the connection expires: Each connection lasts as long as you chose, for example 90 days. After that, type /mcp auth sib again.
  • Remove the connection from Gemini CLI: Run gemini mcp remove sib. To cut access completely, also revoke the connection on the AI assistant page.
  • Note: If it still does not connect, see Troubleshooting the AI assistant connection.
Need more help? If you run into an error while following these steps, open a ticket with technical support and our team will look into it. Open a ticket
Was this article helpful?
No, I need more help
Didn't find your answer?
Under 3 minutes
Submit Support Ticket