---
title: Connect Gemini CLI
description: Add Hostino MCP to Gemini CLI
sidebar:
  order: 10
  badge:
    text: Alpha
    variant: success
---

**Gemini CLI** supports remote MCP servers with automatic OAuth discovery.

:::note
Google has announced that Gemini CLI is replaced by the Antigravity CLI, but it still works for some accounts. For Antigravity, see [Connect Google Antigravity](/en/ai-mcp/connect-antigravity/).
:::

## 1. Add

```bash
gemini mcp add --transport http -s user hostino https://mcp.hostino.ai/mcp
```

Without `-s user` the server is registered for the current project only. Or directly in `~/.gemini/settings.json`:

```json
{
  "mcpServers": {
    "hostino": { "httpUrl": "https://mcp.hostino.ai/mcp" }
  }
}
```

:::caution
The key must be **`httpUrl`**. In Gemini CLI the `url` key means SSE, which does not work with the Hostino server.
:::

## 2. Sign in

In Gemini CLI, type:

```text
/mcp auth hostino
```

A browser opens for sign-in. Tokens are stored in `~/.gemini/mcp-oauth-tokens.json`; to sign in again, run the same command or delete that file.

Gemini CLI needs a browser on the same machine to sign in. It does not work over SSH without a browser or inside a container.

## Next steps

- [Tools and outputs](/en/ai-mcp/remote-mcp/)
- [Troubleshooting](/en/ai-mcp/troubleshooting/)
