{"id":46534027,"url":"https://github.com/ttempaa/cursor-openai-enabler","last_synced_at":"2026-05-03T22:04:38.832Z","repository":{"id":342688374,"uuid":"1170351485","full_name":"ttempaa/cursor-openai-enabler","owner":"ttempaa","description":"Cursor IDE extension that automatically re-enables the \"OpenAI API Key\" toggle when it randomly resets itself.","archived":false,"fork":false,"pushed_at":"2026-03-08T22:57:22.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-09T03:22:04.773Z","etag":null,"topics":["cursor","cursor-ai","cursor-ide","fix","openai"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ttempaa.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":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-02T02:55:56.000Z","updated_at":"2026-03-08T22:48:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ttempaa/cursor-openai-enabler","commit_stats":null,"previous_names":["ttempaa/cursor-openai-enabler"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ttempaa/cursor-openai-enabler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttempaa%2Fcursor-openai-enabler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttempaa%2Fcursor-openai-enabler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttempaa%2Fcursor-openai-enabler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttempaa%2Fcursor-openai-enabler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttempaa","download_url":"https://codeload.github.com/ttempaa/cursor-openai-enabler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttempaa%2Fcursor-openai-enabler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32586189,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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":["cursor","cursor-ai","cursor-ide","fix","openai"],"created_at":"2026-03-06T23:08:13.687Z","updated_at":"2026-05-03T22:04:38.827Z","avatar_url":"https://github.com/ttempaa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cursor-openai-enabler\n\nCursor IDE extension that automatically re-enables the \"OpenAI API Key\" toggle when it randomly resets itself.\n\n## Problem\n\nCursor has a [known bug](https://forum.cursor.com/t/openai-api-key-randomly-toggling-off-in-settings/24724) where the \"Override OpenAI Base URL\" / \"OpenAI API Key\" toggle keeps turning off by itself. There is no official fix yet.\n\n## How it works\n\n1. The extension reads Cursor's internal SQLite database (`state.vscdb`) to detect when `useOpenAIKey` resets to `false`\n2. When detected, it calls Cursor's built-in `aiSettings.usingOpenAIKey.toggle` command to re-enable it\n3. Shows a notification when the fix is applied\n\nDetection runs via:\n- **File watcher** on `state.vscdb` (reacts in ~1 second)\n- **Polling fallback** every 30 seconds\n\n## Install\n\n### From release\n\n1. Download the latest `.vsix` from [Releases](https://github.com/ttempaa/cursor-openai-enabler/releases)\n2. Install via CLI:\n   ```\n   cursor --install-extension cursor-openai-enabler-x.x.x.vsix\n   ```\n   Or in Cursor: `Ctrl+Shift+P` → \"Extensions: Install from VSIX...\"\n\n### Build from source\n\nRequires [Bun](https://bun.sh/).\n\n```bash\nbun install\nbun run build\nbun run package\n```\n\n## Commands\n\nThe extension provides two commands. Open the Command Palette (`Ctrl+Shift+P`) to run them.\n\nBoth commands are useful when you want to temporarily switch to a different model. They turn off the OpenAI key and prevent the extension from automatically re-enabling it.\n\nThe difference is which side is \"primary\":\n\n- **Cursor OpenAI Enabler: Toggle Extension** (`cursor-openai-enabler.toggle`): controls the **extension itself**. When paused, all monitoring stops completely and the OpenAI key is turned off as a side effect. When resumed, monitoring starts and the key is re-enabled if needed. The state persists across Cursor restarts.\n- **Cursor OpenAI Enabler: Toggle OpenAI Key** (`cursor-openai-enabler.toggleOpenAIKey`): controls the **key directly**. It toggles the OpenAI API Key setting in Cursor and the extension syncs its state to match. When the key is turned on, monitoring becomes active; when turned off, monitoring pauses.\n\nThe extension also shows a status bar button (`OpenAI Key`) that reflects the current state. Click it to run **Toggle Extension**.\n\n## Logs\n\nThe extension writes diagnostic messages to the Output panel:\n\n- Open `View` → `Output`\n- Select `Cursor OpenAI Enabler`\n- Log lines include timestamps with milliseconds\n\n## How it finds the database\n\nThe path is derived automatically from the extension's `globalStorageUri`, so it works regardless of OS:\n\n| OS | Path |\n|---|---|\n| Windows | `%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb` |\n| macOS | `~/Library/Application Support/Cursor/User/globalStorage/state.vscdb` |\n| Linux | `~/.config/Cursor/User/globalStorage/state.vscdb` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttempaa%2Fcursor-openai-enabler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttempaa%2Fcursor-openai-enabler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttempaa%2Fcursor-openai-enabler/lists"}