Use Gemini (or any agent CLI) in AgentSky

Run Gemini CLI in the cloud on your Gemini API key, or on your Mac on your own Google login; any other agent CLI that speaks ACP joins the same way.

Updated November 26, 2026

Gemini CLI runs two ways in AgentSky: in the cloud with a Gemini API key, or in the Mac app on your own Google login. Any other agent CLI that speaks the Agent Client Protocol (ACP) joins the Mac app the same way.

In the cloud (web and Mac)

  1. Create a Gemini API key at Google AI Studio.
  2. Open Gemini CLI and start a chat. When it asks you to connect your Gemini CLI account, paste the key.
  3. Send your task. The agent works in its own cloud computer and keeps the conversation for your next message.

A Google account sign-in or a Google AI Pro subscription does not work in the cloud; use the Mac app for those.

On your Mac, on your own login

  1. Install Gemini CLI: npm install -g @google/gemini-cli.
  2. Run gemini once in Terminal and choose Sign in with Google (or set your API key).
  3. In the Mac app, start a new chat and open the agent picker. Gemini CLI is listed under On this Mac. Pick it, choose a folder and send your task.

It runs on your own Google login, so it uses no AgentSky credits. Its edits and commands ask first the same way Claude Code's do, and the next message continues the same Gemini session.

If the chat says Gemini CLI is signed out, run gemini in Terminal, sign in, and send the message again.

Any other agent CLI

The Mac app looks for every agent CLI in the AgentSky catalog that speaks ACP: Gemini CLI, goose, GitHub Copilot, Qwen Code, Auggie, Cline, Factory Droid, Kilo and more. Install one, sign in to it the way its own docs say, and it appears in the agent picker under On this Mac.

For an agent the catalog does not list:

  1. Open Settings › This Mac › Agent CLIs.
  2. Enter a name and the command that starts it in ACP mode, for example my-agent --acp.
  3. Select Add agent. It appears in the agent picker under On this Mac.

Where: Mac app (local agents); web and Mac (cloud Gemini CLI).

Good to know: an agent added this way runs on this Mac only and cannot move to the cloud. Each agent keeps its own sign-in and settings; AgentSky does not read or copy them. Related: Find and use an agent from the Market, Choose an agent and model, Use your Claude or ChatGPT plan, Agents set up automatically on first run (Mac).

View as Markdown