Gemini CLI
Add Autousers to Google's Gemini CLI via native HTTP OAuth or Bearer token.
Option 1 — OAuth (recommended)
Register the server. Gemini CLI auto-discovers the OAuth endpoints from the Autousers MCP server on first connection.
gemini mcp add --transport http autousers https://mcp.autousers.ai/mcpRegister Autousers MCP server
Open Gemini CLI and trigger the OAuth flow. A browser window opens for sign-in; tokens are cached at ~/.gemini/mcp-oauth-tokens.json and refreshed automatically.
gemini
> /mcp auth autousersRun inside the gemini chat prompt
Option 2 — Bearer token (headless / CI)
Generate an API key at /settings/api-keys, export it, then register the server with a static Authorization header.
export AUTOUSERS_API_KEY=ak_live_...
gemini mcp add --transport http \
--header "Authorization: Bearer $AUTOUSERS_API_KEY" \
autousers https://mcp.autousers.ai/mcpRegister with API key (no browser required)
Verify
gemini mcp listExpect: autousers: https://mcp.autousers.ai/mcp (http) - Connected
Then open gemini and run /mcp — you should see autousers listed with all 39 tools. Try "list my evaluations" to confirm an authenticated tool call works end-to-end.
Re-authenticate or remove
# Re-run OAuth (e.g. after revoking access)
gemini mcp auth autousers
# Remove the server entirely
gemini mcp remove autousersManage the connection
