gog
यह क्या करती है
यह AI एजेंट को Gmail, Calendar, Drive और Sheets जैसी Google Workspace सेवाओं के साथ काम करने के लिए gog कमांड के चरण बताती है। यह उन लोगों के लिए है जो अपना ज़्यादातर काम Google अकाउंट से करते हैं।
कब इस्तेमाल करें
- ✓जब आप चाहते हों कि आपका एजेंट आपके Gmail अकाउंट में ईमेल खोजे या भेजे।
- ✓जब आपको अपने Google Calendar में कोई इवेंट जांचना या जोड़ना हो।
- ✓जब आप Google Drive, Sheets या Docs में कोई फ़ाइल ढूंढना या खोलना चाहते हों।
Skill का लिंक
https://github.com/openclaw/openclaw/blob/main/skills/gog/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“कल मेरे Google Calendar में क्या है, और क्या मेरे अकाउंटेंट के मेरे पास कोई बिना पढ़े ईमेल हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल gog कमांड उस अकाउंट पर चलाती है जो होस्ट पर पहले से अधिकृत है। केवल तब दोबारा साइन-इन सेट करती है जब टूल प्रमाणीकरण त्रुटि बताए।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
gog
Use gog for Gmail/Calendar/Drive/Contacts/Sheets/Docs. Requires OAuth setup.
Prefer an already-authorized host account: run the requested gog command first. Enter setup only after an authentication error. Never ask for passwords, client secrets, or refresh tokens in chat.
Setup (once)
gog auth credentials /path/to/client_secret.jsongog auth add you@gmail.com --services gmail,calendar,drive,contacts,docs,sheetsgog auth list
Remote / headless Gateway hosts
When the Gateway host has no local browser display:
- Prefer a live callback listener on the Gateway host. From the machine with the browser, forward the exact callback port (
ssh -L <port>:127.0.0.1:<port> user@gateway-host), open the authorization URLgogprints, and let the redirect complete on that forwarded port. - When a live listener is unavailable, the operator picks one paste-mode path in a trusted shell on the Gateway host. Callback URLs must never enter chat or agent tool input:
--manual: the operator pastes the full redirect URL intogog's interactive prompt.--remote --step 1: printsauth_url(andstate_reused) then exits. After browser consent, the operator runs--remote --step 2 --auth-url <callback-url>in the trusted shell. A failedlocalhostpage load after consent is expected.
- Keep the same resolved config context across remote steps:
GOG_CONFIG_DIRtakes precedence over--home, which takes precedence overGOG_HOME. Also preserve--client, services/scopes, redirect URI, and consent options. Matching unexpired manual state may be reused (state_reused=true). - If desktop keyring is unavailable, configure the file backend (
gog auth keyring file) and setGOG_KEYRING_PASSWORDin the Gateway environment so non-interactive agent/--no-inputruns can read tokens.gog auth doctorreports when the password is missing. - Callback received is not the same as token stored. If token exchange or identity lookup fails behind a proxy, restart from step 1 after the operator approves scoped egress or proxy exceptions for the required Google endpoints. Do not bypass host network policy or reuse failed or expired state.
For diagnostics, inspect every entry reported by gog auth list --check; its exit status does not prove every stored token is valid. Likewise, inspect the status reported by gog auth doctor rather than relying only on its exit code.
Common commands
- Gmail search:
gog gmail search 'newer_than:7d' --max 10 - Gmail messages search (per email, ignores threading):
gog gmail messages search "in:inbox from:ryanair.com" --max 20 --account you@example.com - Gmail send (plain):
gog gmail send --to a@b.com --subject "Hi" --body "Hello" - Gmail send (multi-line):
gog gmail send --to a@b.com --subject "Hi" --body-file ./message.txt - Gmail send (stdin):
gog gmail send --to a@b.com --subject "Hi" --body-file - - Gmail send (HTML):
gog gmail send --to a@b.com --subject "Hi" --body-html "<p>Hello</p>" - Gmail draft:
gog gmail drafts create --to a@b.com --subject "Hi" --body-file ./message.txt - Gmail send draft:
gog gmail drafts send <draftId> - Gmail reply:
gog gmail send --to a@b.com --subject "Re: Hi" --body "Reply" --reply-to-message-id <msgId> - Calendar list events:
gog calendar events <calendarId> --from <iso> --to <iso> - Calendar create event:
gog calendar create <calendarId> --summary "Title" --from <iso> --to <iso> - Calendar create with color:
gog calendar create <calendarId> --summary "Title" --from <iso> --to <iso> --event-color 7 - Calendar update event:
gog calendar update <calendarId> <eventId> --summary "New Title" --event-color 4 - Calendar show colors:
gog calendar colors - Drive search:
gog drive search "query" --max 10 - Contacts:
gog contacts list --max 20 - Sheets get:
gog sheets get <sheetId> "Tab!A1:D10" --json - Sheets update:
gog sheets update <sheetId> "Tab!A1:B2" --values-json '[["A","B"],["1","2"]]' --input USER_ENTERED - Sheets append:
gog sheets append <sheetId> "Tab!A:C" --values-json '[["x","y","z"]]' --insert INSERT_ROWS - Sheets clear:
gog sheets clear <sheetId> "Tab!A2:Z" - Sheets metadata:
gog sheets metadata <sheetId> --json - Docs export:
gog docs export <docId> --format txt --out /tmp/doc.txt - Docs cat:
gog docs cat <docId>
Calendar Colors
- Use
gog calendar colorsto see all available event colors (IDs 1-11) - Add colors to events with
--event-color <id>flag - Event color IDs (from `gog
अक्सर पूछे जाने वाले सवाल
क्या मुझे चैट में अपना पासवर्ड साझा करना होगा?
नहीं। स्किल चैट में कभी पासवर्ड, client secrets या refresh tokens नहीं मांगती।
अगर कंप्यूटर पर ब्राउज़र न हो तो?
स्किल में रिमोट साइन-इन के चरण हैं, जैसे पोर्ट फ़ॉरवर्ड करना या paste-आधारित तरीका, जो callback लिंक चैट से बाहर रखते हैं।
कौन-सी Google सेवाएं कवर होती हैं?
यह Gmail, Calendar, Drive, Contacts, Sheets और Docs को कवर करती है।
जानकारी
लेखक का मूल विवरण
Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
repo: openclaw/openclaw
लोकप्रियता
- GitHub स्टार
- 394k
- रैंकिंग में स्थान
- #58
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
discord-user-post
394kयह आपके एजेंट को, आपकी मंज़ूरी के बाद, चैनल की पुष्टि करके आपके नाम से Discord डेस्कटॉप ऐप के ज़रिए संदेश भेजने देती है।
discrawl
394kयह आपके एजेंट को Discord संदेशों के सेव किए गए स्थानीय आर्काइव में खोजने, उसका सारांश बनाने और उसकी ताज़गी जांचने में मदद करती है।
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
graincrawl
394kयह आपके एजेंट को सेव की गई Granola मीटिंग नोट्स और ट्रांसक्रिप्ट में खोजने, उनकी ताज़गी जांचने और किसी अवधि के हिसाब से गिनती करने देती है।
मिलती-जुलती skills
to-questionnaire
310kवह सवाल जिसका जवाब आप अकेले नहीं दे सकते, उसे ईमेल या मीटिंग में किसी और व्यक्ति के भरने के लिए लिखित प्रश्नावली में बदलती है।
email-ops
280kएजेंट को emails मैनेज करने देता है, inbox व्यवस्थित करता है और भेजे गए emails की पुष्टि करता है। ज़रूरी संदेश सही तरीके से भेजे और ट्रैक किए जाएँ, यह सुनिश्चित करने में मदद करता है।
messages-ops
280kआपके एजेंट को messages और verification codes पढ़ने में मदद करता है। जवाब देने से पहले बातचीत जाँचने या यह साबित करने के लिए उपयोगी है कि कौन सा मैसेज देखा गया था।