{"id":48994640,"url":"https://github.com/expert-vision-software/gemiterm","last_synced_at":"2026-05-12T13:02:11.105Z","repository":{"id":346064564,"uuid":"1188368117","full_name":"Expert-Vision-Software/gemiterm","owner":"Expert-Vision-Software","description":"A cli tool to access web-based gemini chats.","archived":false,"fork":false,"pushed_at":"2026-05-05T04:12:32.000Z","size":332,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-05T04:24:10.672Z","etag":null,"topics":["agent-tools","ai","cli","gemini-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Expert-Vision-Software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"docs/ROADMAP.md","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-03-22T01:17:27.000Z","updated_at":"2026-05-05T04:05:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Expert-Vision-Software/gemiterm","commit_stats":null,"previous_names":["diegohb/webgemini-cli"],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/Expert-Vision-Software/gemiterm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Expert-Vision-Software%2Fgemiterm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Expert-Vision-Software%2Fgemiterm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Expert-Vision-Software%2Fgemiterm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Expert-Vision-Software%2Fgemiterm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Expert-Vision-Software","download_url":"https://codeload.github.com/Expert-Vision-Software/gemiterm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Expert-Vision-Software%2Fgemiterm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32940110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["agent-tools","ai","cli","gemini-api"],"created_at":"2026-04-18T16:06:05.195Z","updated_at":"2026-05-12T13:02:11.099Z","avatar_url":"https://github.com/Expert-Vision-Software.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GemiTerm\n\nAccess and manage your Gemini web chats from the command line. GemiTerm bridges Playwright-based Google authentication to let you list, fetch, export, and continue conversations trapped in the Gemini web interface — without a standard API.\n\n## Installation\n\n### Windows (standalone - no Python required)\n\nOpen PowerShell and run:\n\n```powershell\nirm https://raw.githubusercontent.com/expert-vision-software/GemiTerm/main/install.ps1 | iex\n```\n\nThis downloads the latest `GemiTerm.exe`, installs Chromium browser, and adds GemiTerm to your PATH.\n\n**Uninstall:**\n```powershell\nirm https://raw.githubusercontent.com/expert-vision-software/GemiTerm/main/install.ps1 | iex -- -uninstall\n```\n\n### Linux\n\nDownload the `GemiTerm` binary from the [latest release](https://github.com/expert-vision-software/GemiTerm/releases/latest).\n\n```bash\nchmod +x GemiTerm\n./GemiTerm install-browser  # install Chromium if needed\n```\n\n### pip/pipx (requires Python)\n\n```bash\npip install gemiterm       # global install\npipx install gemiterm      # global install (isolated)\npipx run gemiterm auth     # temporary run (npx equivalent)\n```\n\n### From Source\n\n```bash\npip install -e .\nplaywright install chromium\n```\n\n## Prerequisites\n\n- **Chromium Browser**: GemiTerm will attempt to use your system Chrome if available, otherwise it installs Playwright's Chromium automatically.\n- **Google Account**: A Google account with access to Gemini (https://gemini.google.com)\n\n## Usage\n\n### Authentication\n\nBefore using the CLI, you need to authenticate with your Google account:\n\n```bash\ngemiterm auth\n```\n\nThis will open a browser window for you to log in with your Google account. Cookies will be saved for future use.\n\n### Check Status\n\nVerify your authentication status:\n\n```bash\ngemiterm status\n```\n\n### List Chats\n\nDisplay all your Gemini chats in a table:\n\n```bash\ngemiterm list\n```\n\nOptions:\n- `-n, --limit N`: Maximum number of chats to display (default: 10, max: 50)\n\n### Fetch Chat History\n\nFetch and display the message history of a specific conversation:\n\n```bash\ngemiterm fetch \u003cconversation_id\u003e\n```\n\nOptions:\n- `--format, -f`: Output format - `text` (default) or `json`\n\n### Continue a Chat\n\nSend a message to an existing conversation:\n\n```bash\ngemiterm continue \u003cconversation_id\u003e \u003cmessage\u003e\n```\n\n### Export Chat\n\nExport a conversation to a Markdown file:\n\n```bash\ngemiterm export \u003cconversation_id\u003e\n```\n\nOptions:\n- `-o, --output PATH`: Custom output file path\n- `-f, --format FORMAT`: Export format - `markdown` (default) or `json`\n- `--include-metadata`: Include full metadata in export\n\n### Export All Chats\n\nExport all conversations to a directory with an index file:\n\n```bash\ngemiterm export-all\n```\n\nOptions:\n- `-o, --output-dir PATH`: Directory to export to (default: `./exports`)\n- `--since ISO_DATE`: Export only conversations newer than this date\n- `--include-metadata`: Include full metadata in each export\n\n### Verbose Logging\n\nEnable detailed logging for debugging:\n\n```bash\ngemiterm -v \u003ccommand\u003e\n```\n\n## Configuration\n\n### Configuration Directory\n\nDefault location: `~/.config/gemiterm/`\n\nOverride with environment variable:\n```bash\nexport GEMITERM_CONFIG_DIR=/custom/path\n```\n\n### Storage File\n\nThe storage file (`storage_state.json`) contains your authentication cookies. It is located in the configuration directory.\n\n### Environment Variables\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `GEMITERM_CONFIG_DIR` | Configuration directory | `~/.config/gemiterm/` |\n| `GEMITERM_VERBOSE` | Enable verbose logging | `false` |\n\n## Troubleshooting\n\n### Browser Automation Issues\n\nIf browser automation fails or is unavailable, you can manually extract cookies from your browser:\n\n1. Install the \"EditThisCookie\" extension or similar in your browser\n2. Go to https://gemini.google.com and log in\n3. Export the cookies in JSON format\n4. Save them to `~/.config/gemiterm/storage_state.json` with the following format:\n   ```json\n   {\n     \"cookies\": [\n       {\"name\": \"__Secure-1PSID\", \"value\": \"your_value_here\", ...},\n       {\"name\": \"__Secure-1PSIDTS\", \"value\": \"your_value_here\", ...}\n     ]\n   }\n   ```\n\n### Session Expired\n\nIf you see \"Session expired\" errors:\n\n1. Run `gemiterm auth` to re-authenticate\n2. If the issue persists, delete `storage_state.json` and run `gemiterm auth` again\n\n### API Errors\n\nIf you encounter API errors:\n\n1. Run `gemiterm status` to check your authentication state\n2. Ensure you have a valid Google account with Gemini access\n3. Try re-authenticating with `gemiterm auth`\n\n### Verbose Logging\n\nUse the `-v` or `--verbose` flag to enable detailed logging for debugging:\n\n```bash\ngemiterm -v list\n```\n\n## Future Enhancements\n\n- Interactive CLI mode with menu-driven navigation\n- REPL mode for conversational interaction\n- Support for conversation creation and deletion\n- Export to multiple formats (HTML, PDF)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpert-vision-software%2Fgemiterm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexpert-vision-software%2Fgemiterm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpert-vision-software%2Fgemiterm/lists"}