Skip to content

Investigate Gemini CLI sign-in and ACP support for a Google backend #78

Closed

Description

@CompleteDotTech

Decision requested and triage

Determine whether Modex can add Google account sign-in and coding turns through the official Gemini CLI, and produce a bounded implementation plan or an evidence-backed blocker.

Priority: P3 (exploration); type: feasibility/architecture decision; status: ready for research, provider enablement gated. Google has documented CLI authentication and an integration protocol. Modex has no Gemini backend today. This issue can close with a documented no-go; it does not promise a login button or universal subscription eligibility.

Primary evidence

  • Gemini CLI authentication: Google browser login, cached credentials, account/Cloud-project requirements.
  • Gemini ACP integration: JSON-RPC over stdio through gemini --acp.
  • Headless execution: structured output is another surface to assess; streaming alone does not prove interactive approval support.
  • Gemini API OAuth: a separate Cloud-project/registered-client path. This source does not establish that arbitrary third-party API clients can spend a consumer Gemini subscription.

Investigation and exit criteria

  • Write a dated capability/eligibility matrix distinguishing Google identity login, Gemini API OAuth, Vertex credentials, and Google-account access through Gemini CLI. Cite official sources; identify account, organization, geography or project conditions without assuming universal support.
  • Select a proposed CLI contract after inspecting the installed/pinned version's capabilities. Verify actual ACP wire methods and auth/status behavior; document minimum version and supported OS matrix.
  • Design first login, cached login, denied/cancelled login, expiry, reauthentication, account switching and logout. Credentials remain with the official CLI; document effects on users sharing that CLI outside Modex.
  • Map streaming, tool approvals/denial, read-only/plan modes, cancellation, session resume, model discovery, cwd/worktrees and child-process cleanup to the Backend contract. Record gaps and safe disabled behavior; do not bypass approvals to make a probe succeed.
  • Define subscription/quota/billing feedback and distinguish authenticated from model-access verified. Any real account/model probe is separately authorized and must record its outcome; fixtures are not entitlement evidence.
  • Produce a go/no-go decision and bounded follow-up issues if approved, including backend/types/store/routing/UI integration, regression coverage and native-platform validation. Keep Google unselectable until an actual tested backend exists.
  • Record the required maintainer decision to extend AGENTS.md's current Claude/Codex-only provider set. Retain CLI-owned coding execution; API OAuth is not a workaround for this scope gate.

Dependencies and coordination

Research is independent of #75 and the OpenAI/Claude login work. Any eventual implementation should consume that status contract. The provider union and runner currently register only Claude, Codex and mock.

No provider login, credential transfer, paid model request, or architecture change is authorized by closing this research ticket. Its deliverable is the evidence and decision; approved implementation must update README/docs/status.md and pass normal build/unit/UI checks.

Suggested labels: enhancement, question. Priority and dependency triage are recorded above.

Activity

  1. added a commit that references this issue on Oct 3, 2026
    4e5979b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions