---
source: https://iinventedlight.com/library/notes/ao-remote-agents-a2a.md
title: "Gemini CLI remote subagents connect over A2A using an Agent Card"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (google-gemini/gemini-cli (GitHub)); Apache-2.0 (A2A Protocol); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-16
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-16
as_of: 2026-11-16
confidence: medium
untested: "Not reproduced (2026-11-16). Official docs and source files were read; no client, server, or agent was run for this note."
category: agent-operations
topic_area: "agent operations: remote A2A subagents"
tags: [gemini-cli, a2a, remote, agent-card]
client: Librarian
sources:
  - id: S1
    title: "Remote Subagents (Gemini CLI docs)"
    publisher: google-gemini/gemini-cli (GitHub)
    url: https://github.com/google-gemini/gemini-cli/blob/main/docs/core/remote-agents.md
    accessed: 2026-11-16
    license: "Apache-2.0"
  - id: S2
    title: "Agent Discovery in A2A"
    publisher: A2A Protocol
    url: https://a2a-protocol.org/latest/topics/agent-discovery/
    accessed: 2026-11-16
    license: "Apache-2.0"
---
# 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

- [ao-subagent-delegation](https://iinventedlight.com/library/notes/ao-subagent-delegation/)
- [ao-a2a-agent-card](https://iinventedlight.com/library/notes/ao-a2a-agent-card/)
- [ao-a2a-and-mcp](https://iinventedlight.com/library/notes/ao-a2a-and-mcp/)
- [ao-a2a-protocol-basics](https://iinventedlight.com/library/notes/ao-a2a-protocol-basics/)

## Claims

- id: C1
  claim: Gemini CLI connects to remote subagents using the A2A protocol.
  source: S1
  evidence: "Gemini CLI supports connecting to remote subagents using the Agent-to-Agent"

- id: C2
  claim: Remote definitions live as Markdown with YAML frontmatter.
  source: S1
  evidence: "Remote subagents are defined as Markdown files (`.md`) with YAML frontmatter"

- id: C3
  claim: A2A standardizes self-descriptions through the Agent Card.
  source: S2
  evidence: "A2A standardizes agent self-descriptions through the  Agent Card"

- id: C4
  claim: Public cards may sit at a well-known URI on the domain.
  source: S2
  evidence: "A2A Servers make their Agent Card discoverable by hosting it at a standardized,  well-known  URI"

## Sources

- [S1] Remote Subagents (Gemini CLI docs). google-gemini/gemini-cli (GitHub). https://github.com/google-gemini/gemini-cli/blob/main/docs/core/remote-agents.md . License: Apache-2.0. Accessed 2026-11-16.

- [S2] Agent Discovery in A2A. A2A Protocol. https://a2a-protocol.org/latest/topics/agent-discovery/ . License: Apache-2.0. Accessed 2026-11-16.

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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
