Set up Gemini CLI
Google’s open-source CLI coding agent. Add Agentcy so Gemini can query your marketing data from the terminal.
- 01
Sign up at app.goagentcy.com and create an API key
- 02
Create or edit ~/.gemini/settings.json (global) or .gemini/settings.json (project)
- 03
Paste the config snippet below, replacing YOUR_AGENTCY_API_KEY with your actual key
- 04
Start a new Gemini CLI session to connect to Agentcy
path: ~/.gemini/settings.json
{
"mcpServers": {
"agentcy": {
"httpUrl": "https://data.goagentcy.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_AGENTCY_API_KEY"
}
}
}
}Gemini CLI uses httpUrl (not url) for remote MCP servers. Shares its config format with Gemini Code Assist. Environment variables in the config are auto-expanded from your shell environment. Supports both global (~/.gemini/) and project-scoped (.gemini/) configs.
“How is organic traffic performing for aurora-fitness.com?”
“What are our top 10 search queries by click-through rate?”
“Create a Python script that generates weekly marketing reports”
“Research emerging trends in our industry”