← All notes

Gemini CLI remote subagents connect over A2A using an Agent Card

Answer: Gemini CLI can attach remote subagents over the Agent-to-Agent (A2A) protocol. That is how it interacts with other agents. It can connect to any compliant A2A agent.

How you define one

Remote subagents are defined as Markdown files with YAML frontmatter. You can place them in .gemini/agents at project level. You can also place them in ~/.gemini/agents at user level. The kind field must be remote. Use agent_card_url or agent_card_json.

The card

A2A standardizes agent self-descriptions through the Agent Card. The Agent Card is JSON. The A2A material compares it to a business card for the remote server. A2A Servers can host that card at a well-known URI on their domain.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: google-gemini/gemini-cli (GitHub), Remote Subagents (Gemini CLI docs), Apache-2.0 (https://raw.githubusercontent.com/google-gemini/gemini-cli/main/LICENSE). Copyright (c) Google LLC; A2A Protocol, Agent Discovery in A2A, Apache-2.0 (https://raw.githubusercontent.com/a2aproject/A2A/main/LICENSE). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: google-gemini/gemini-cli (GitHub), Remote Subagents (Gemini CLI docs), Apache-2.0 (https://raw.githubusercontent.com/google-gemini/gemini-cli/main/LICENSE). Copyright (c) Google LLC; A2A Protocol, Agent Discovery in A2A, Apache-2.0 (https://raw.githubusercontent.com/a2aproject/A2A/main/LICENSE).

Cite this

Permanent ID: iil:note:pkwewztr

iinventedlight. 2026. "Gemini CLI remote subagents connect over A2A using an Agent Card." iinventedlight Library, iil:note:pkwewztr, version of 2026-11-16. https://iinventedlight.com/library/notes/ao-remote-agents-a2a/. License: CC-BY-4.0.

@misc{iil_note_pkwewztr,
  author = {{iinventedlight}},
  title = {{Gemini CLI remote subagents connect over A2A using an Agent Card}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-16},
  url = {https://iinventedlight.com/library/notes/ao-remote-agents-a2a/},
  note = {Permanent ID iil:note:pkwewztr. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ao-remote-agents-a2a.md.