{"id":50869998,"url":"https://github.com/kamil-rudnicki/google-chat-cli","last_synced_at":"2026-06-15T04:04:33.473Z","repository":{"id":364788289,"uuid":"1269184853","full_name":"kamil-rudnicki/google-chat-cli","owner":"kamil-rudnicki","description":"Google Chat CLI","archived":false,"fork":false,"pushed_at":"2026-06-14T15:19:20.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-14T15:21:54.418Z","etag":null,"topics":["agents","cli","google-chat"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kamil-rudnicki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-14T12:04:41.000Z","updated_at":"2026-06-14T15:19:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kamil-rudnicki/google-chat-cli","commit_stats":null,"previous_names":["kamil-rudnicki/google-chat-cli"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kamil-rudnicki/google-chat-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamil-rudnicki%2Fgoogle-chat-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamil-rudnicki%2Fgoogle-chat-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamil-rudnicki%2Fgoogle-chat-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamil-rudnicki%2Fgoogle-chat-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamil-rudnicki","download_url":"https://codeload.github.com/kamil-rudnicki/google-chat-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamil-rudnicki%2Fgoogle-chat-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34346894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agents","cli","google-chat"],"created_at":"2026-06-15T04:04:31.089Z","updated_at":"2026-06-15T04:04:33.466Z","avatar_url":"https://github.com/kamil-rudnicki.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Chat CLI\n\n`gchat` is a Rust CLI for Google Chat. It is script-first: successful commands print pretty JSON to stdout, failures print pretty JSON to stderr, and nothing prints ad-hoc terminal text.\n\n##  Install\n\n### Homebrew\n\n```bash\nbrew tap kamil-rudnicki/gchat\nbrew install gchat\ngchat --version\ngchat auth credentials ~/Downloads/client_secret_....json\ngchat auth add you@example.com\ngchat chat list\n```\n\n## Use\n\n```bash\ngchat auth list\ngchat chat list\ngchat chat messages spaces/AAAA --max 10\ngchat chat send --space spaces/AAAA --text \"Hello\"\ngchat chat dm space person@example.com\ngchat chat dm send person@example.com --text \"Hello\"\ngchat chat threads spaces/AAAA\ngchat search \"invoice\"\ngchat search unread\ngchat mark read\n\n# Show entire thread\ngchat chat messages spaces/AAAAJrp7YDg \\\n  --thread spaces/AAAAJrp7YDg/threads/3TAd8wa_By4 \\\n  --all\n\n# Find all threads that contain specific text\ngchat search \"what is a status of project PROJ-328?\" --all --max 5000 \\\n  | jq -r '.data.results[] | (.thread.name // .message.thread.name // empty)' \\\n  | sort -u\n\n# Find matching messages and include the full threads they belong to\ngchat search \"what is a status of project PROJ-328?\" --expand-threads --all --max 5000\n\n# Get all unread messages\ngchat search unread --all --max 5000\ngchat search unread --include-marked --all --max 5000\n\n# Faster unread export: BASIC view omits read/mute metadata; no display-name\n# enrichment skips best-effort follow-up lookups.\ngchat --no-display-names search unread --view basic --include-marked --all\n\n# Display-name lookups are cached for 24h in:\n# ~/.config/gchat/cache/display-names.json\n\n# Filter truly unread messages as Google API is being moody\ngchat search unread --include-marked --all --max 5000 \\\n  | jq '.data.results |= map(select(.read == false)) | .meta.count = (.data.results | length)'\n\n# Stop showing the current unread backlog in future unread searches.\n# This stores a local cutoff; it doesn't change Google Chat thread read state.\ngchat mark read\n\n# Try Google's remote space read-state update as well.\n# This doesn't clear unread replies inside threads.\ngchat mark read --remote --all --max 5000\n```\n\n## Configure Google OAuth Client\n\nUse a Google OAuth 2.0 client that is meant for this CLI.\n\nBest option: create an OAuth client with application type `Desktop app`, download its client-secret JSON, then import that file with `gchat auth credentials`.\nIf you use a `Web application` OAuth client instead, add this exact value under **Authorized redirect URIs** in Google Cloud Console:\n\n```text\nhttp://127.0.0.1:53682/callback\n```\n\nImport a Google OAuth desktop-client JSON file:\n\n```bash\ngchat auth credentials ~/Downloads/client_secret_....json\n```\n\nThen authorize an account:\n\n```bash\ngchat auth add you@example.com\n```\n\nThe default config root is `~/.config/gchat`.\n\nEvery command supports `--account \u003cemail\u003e` when more than one account is configured.\n\n## Docs\n\n- [Developer notes](docs/DEVELOPER.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamil-rudnicki%2Fgoogle-chat-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamil-rudnicki%2Fgoogle-chat-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamil-rudnicki%2Fgoogle-chat-cli/lists"}